Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CONF
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
UvA
CONF
Commits
b88334e8
Commit
b88334e8
authored
Jan 26, 2020
by
Spiros Koulouzis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change tosca example & added docker for manager
parent
b8dc2f77
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
32 additions
and
5 deletions
+32
-5
application_example_updated.yaml
TOSCA/application_example_updated.yaml
+4
-4
Dockerfile
drip-manager/Dockerfile
+11
-0
RabbitMQConfig.java
...in/java/nl/uva/sne/drip/configuration/RabbitMQConfig.java
+3
-0
DRIPCaller.java
...manager/src/main/java/nl/uva/sne/drip/rpc/DRIPCaller.java
+1
-0
pom.xml
drip-provisioner/pom.xml
+10
-0
package.sh
package.sh
+3
-1
No files found.
TOSCA/application_example_updated.yaml
View file @
b88334e8
...
@@ -25,11 +25,11 @@ topology_template:
...
@@ -25,11 +25,11 @@ topology_template:
volumes
:
volumes
:
-
db_data:/var/lib/mongo
-
db_data:/var/lib/mongo
environment
:
environment
:
MONGO_INITDB_ROOT_USERNAME
:
rootUser
MONGO_INITDB_ROOT_PASSWORD
:
rootPassword
MONGO_INITDB_ROOT_PASSWORD
:
rootPassword
MONGO_INITDB_DATABASE
:
databaseName
MONGO_INITDB_DATABASE
:
databaseName
MONGO_INITDB_ROOT_USERNAME
:
rootUser
MONGO_USERNAME
:
databaseUser
MONGO_USERNAME
:
databaseUser
MONGO_PASSWORD:password
MONGO_PASSWORD
:
password
artifacts
:
artifacts
:
image
:
image
:
type
:
tosca.artifacts.Deployment.Image.Container.Docker
type
:
tosca.artifacts.Deployment.Image.Container.Docker
...
...
drip-manager/Dockerfile
0 → 100644
View file @
b88334e8
FROM
openjdk:11
COPY
target/drip-manager-3.0.0.jar drip-manager-3.0.0.jar
CMD
jar -xf drip-manager-3.0.0.jar BOOT-INF/classes/application.properties && \
sed -ie "s/^message.broker.host=.*/message.broker.host=$RABBITMQ_HOST/" BOOT-INF/classes/application.properties && \
sed -ie "s/^db.host=.*/db.host=$MONOG_HOST/" BOOT-INF/classes/application.properties && \
sed -ie "s/^sure-tosca.base.path=.*/sure-tosca.base.path=$SURE_TOSCA_BASE_PATH/" BOOT-INF/classes/application.properties && \
cat BOOT-INF/classes/application.properties && \
jar -uf drip-manager-3.0.0.jar BOOT-INF/classes/application.properties && \
java -jar drip-manager-3.0.0.jar
drip-manager/src/main/java/nl/uva/sne/drip/configuration/RabbitMQConfig.java
View file @
b88334e8
...
@@ -9,6 +9,8 @@ import com.rabbitmq.client.ConnectionFactory;
...
@@ -9,6 +9,8 @@ import com.rabbitmq.client.ConnectionFactory;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.context.annotation.Configuration
;
import
java.util.logging.Level
;
import
java.util.logging.Logger
;
/**
/**
*
*
...
@@ -30,6 +32,7 @@ public class RabbitMQConfig {
...
@@ -30,6 +32,7 @@ public class RabbitMQConfig {
connectionFactory
.
setHost
(
messageBrokerHost
);
connectionFactory
.
setHost
(
messageBrokerHost
);
connectionFactory
.
setUsername
(
messageBrokerUsername
);
connectionFactory
.
setUsername
(
messageBrokerUsername
);
connectionFactory
.
setPassword
(
messageBrokerPassword
);
connectionFactory
.
setPassword
(
messageBrokerPassword
);
Logger
.
getLogger
(
RabbitMQConfig
.
class
.
getName
()).
log
(
Level
.
INFO
,
"ConnectionFactory host: {0}"
,
connectionFactory
.
getHost
());
return
connectionFactory
;
return
connectionFactory
;
}
}
...
...
drip-manager/src/main/java/nl/uva/sne/drip/rpc/DRIPCaller.java
View file @
b88334e8
...
@@ -51,6 +51,7 @@ public class DRIPCaller implements AutoCloseable {
...
@@ -51,6 +51,7 @@ public class DRIPCaller implements AutoCloseable {
public
DRIPCaller
(
ConnectionFactory
factory
)
throws
IOException
,
TimeoutException
{
public
DRIPCaller
(
ConnectionFactory
factory
)
throws
IOException
,
TimeoutException
{
this
.
factory
=
factory
;
this
.
factory
=
factory
;
Logger
.
getLogger
(
DRIPCaller
.
class
.
getName
()).
log
(
Level
.
INFO
,
"ConnectionFactory host: {0}"
,
factory
.
getHost
());
// factory.setHost(messageBrokerHost);
// factory.setHost(messageBrokerHost);
// factory.setPort(AMQP.PROTOCOL.PORT);
// factory.setPort(AMQP.PROTOCOL.PORT);
// factory.setUsername(username);
// factory.setUsername(username);
...
...
drip-provisioner/pom.xml
View file @
b88334e8
...
@@ -15,6 +15,7 @@
...
@@ -15,6 +15,7 @@
<properties>
<properties>
<maven.compiler.source>
1.8
</maven.compiler.source>
<maven.compiler.source>
1.8
</maven.compiler.source>
<maven.compiler.target>
1.8
</maven.compiler.target>
<maven.compiler.target>
1.8
</maven.compiler.target>
<docker.image.prefix>
deth53
</docker.image.prefix>
</properties>
</properties>
...
@@ -101,6 +102,15 @@
...
@@ -101,6 +102,15 @@
</execution>
</execution>
</executions>
</executions>
</plugin>
</plugin>
<plugin>
<groupId>
com.spotify
</groupId>
<artifactId>
dockerfile-maven-plugin
</artifactId>
<version>
1.4.13
</version>
<configuration>
<repository>
${docker.image.prefix}/${project.artifactId}
</repository>
<tag>
${project.version}
</tag>
</configuration>
</plugin>
</plugins>
</plugins>
...
...
package.sh
→
package.sh
100644 → 100755
View file @
b88334e8
#!/bin/bash
#!/bin/bash
cd
drip-manager
&&
mvn
-Dmaven
.test.skip
=
true install
dockerfile:build
cd
drip-manager
&&
mvn
-Dmaven
.test.skip
=
true
dockerfile:build
cd
../
cd
drip-planner
&&
mvn
-Dmaven
.test.skip
=
true
dockerfile:build
cd
../
cd
../
cd
sure_tosca-flask-server
&&
docker build
-t
sure-tosca:3.0.0
.
cd
sure_tosca-flask-server
&&
docker build
-t
sure-tosca:3.0.0
.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment