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
40024ae2
Commit
40024ae2
authored
5 years ago
by
Spiros Koulouzis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rename sure-tosca.base.path
parent
6894de4d
Changes
10
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
35 additions
and
28 deletions
+35
-28
docker_pull.sh
bin/docker_pull.sh
+7
-0
application.properties
commons/src/main/resources/application.properties
+1
-1
ToscaHelperTest.java
...t/java/nl/uva/sne/drip/commons/utils/ToscaHelperTest.java
+1
-1
application.properties
commons/src/test/resources/application.properties
+1
-1
docker-compose.yml
docker-compose.yml
+20
-20
Dockerfile
manager/Dockerfile
+1
-1
ToscaHelperConfig.java
...java/nl/uva/sne/drip/configuration/ToscaHelperConfig.java
+1
-1
application.properties
manager/src/main/resources/application.properties
+1
-1
Dockerfile
provisioner/Dockerfile
+1
-1
application.properties
provisioner/src/main/resources/application.properties
+1
-1
No files found.
bin/docker_pull.sh
0 → 100755
View file @
40024ae2
#!/bin/bash
docker pull alogo53/manager:3.0.0
docker pull alogo53/provisioner:3.0.0
docker pull alogo53/sure-tosca:3.0.0
docker pull alogo53/planner:3.0.0
docker pull alogo53/deployer:3.0.0
This diff is collapsed.
Click to expand it.
commons/src/main/resources/application.properties
View file @
40024ae2
...
...
@@ -5,4 +5,4 @@ message.broker.queue.provisioner=provisioner
message.broker.queue.planner
=
planner
message.broker.queue.deployer
=
deployer
sure
_
tosca.base.path
=
http://localhost:8081/tosca-sure/1.0.0
sure
-
tosca.base.path
=
http://localhost:8081/tosca-sure/1.0.0
This diff is collapsed.
Click to expand it.
commons/src/test/java/nl/uva/sne/drip/commons/utils/ToscaHelperTest.java
View file @
40024ae2
...
...
@@ -74,7 +74,7 @@ public class ToscaHelperTest {
objectMapper
.
setSerializationInclusion
(
JsonInclude
.
Include
.
NON_NULL
);
toscaTemplate
=
objectMapper
.
readValue
(
ymlStr
,
ToscaTemplate
.
class
);
String
serviceBasePath
=
prop
.
getProperty
(
"sure
_
tosca.base.path"
);
String
serviceBasePath
=
prop
.
getProperty
(
"sure
-
tosca.base.path"
);
serviceUp
=
isServiceUp
(
serviceBasePath
);
if
(
serviceUp
)
{
instance
=
new
ToscaHelper
(
serviceBasePath
);
...
...
This diff is collapsed.
Click to expand it.
commons/src/test/resources/application.properties
View file @
40024ae2
...
...
@@ -5,4 +5,4 @@ message.broker.queue.provisioner=provisioner
message.broker.queue.planner
=
planner
message.broker.queue.deployer
=
deployer
sure
_
tosca.base.path
=
http://localhost:8081/tosca-sure/1.0.0
sure
-
tosca.base.path
=
http://localhost:8081/tosca-sure/1.0.0
This diff is collapsed.
Click to expand it.
docker-compose.yml
View file @
40024ae2
...
...
@@ -91,18 +91,18 @@ services:
#image: jupyter/base-notebook
#
manager:
#
depends_on:
#
- rabbit
#
- mongo
#
- sure-tosca
#
image: alogo53/manager:3.0.0
#
environment:
#
RABBITMQ_HOST: rabbit
#
MONGO_HOST: mongo
#
SURE_TOSCA_BASE_PATH: http://sure-tosca:8081/tosca-sure/1.0.0
#
ports:
#
- "30000:8080"
manager
:
depends_on
:
-
rabbit
-
mongo
-
sure-tosca
image
:
alogo53/manager:3.0.0
environment
:
RABBITMQ_HOST
:
rabbit
MONGO_HOST
:
mongo
SURE_TOSCA_BASE_PATH
:
http://sure-tosca:8081/tosca-sure/1.0.0
ports
:
-
"
30000:8080"
sure-tosca
:
image
:
alogo53/sure-tosca:3.0.0
...
...
@@ -117,14 +117,14 @@ services:
environment
:
RABBITMQ_HOST
:
rabbit
provisioner
:
depends_on
:
-
rabbit
-
sure-tosca
image
:
alogo53/provisioner:3.0.0
environment
:
RABBITMQ_HOST
:
rabbit
SURE_TOSCA_BASE_PATH
:
http://sure-tosca:8081/tosca-sure/1.0.0
#
provisioner:
#
depends_on:
#
- rabbit
#
- sure-tosca
#
image: alogo53/provisioner:3.0.0
#
environment:
#
RABBITMQ_HOST: rabbit
#
SURE_TOSCA_BASE_PATH: http://sure-tosca:8081/tosca-sure/1.0.0
#volumes:
...
...
This diff is collapsed.
Click to expand it.
manager/Dockerfile
View file @
40024ae2
...
...
@@ -4,7 +4,7 @@ COPY target/manager-3.0.0.jar manager-3.0.0.jar
CMD
jar -xf 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=$MONGO_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 && \
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 manager-3.0.0.jar BOOT-INF/classes/application.properties && \
java -jar manager-3.0.0.jar
This diff is collapsed.
Click to expand it.
manager/src/main/java/nl/uva/sne/drip/configuration/ToscaHelperConfig.java
View file @
40024ae2
...
...
@@ -24,7 +24,7 @@ import org.springframework.context.annotation.PropertySources;
@ComponentScan
(
basePackages
=
{
"nl.uva.sne.drip"
,
"nl.uva.sne.drip.api"
,
"nl.uva.sne.drip.configuration"
,
"nl.uva.sne.drip.dao"
,
"nl.uva.sne.drip.model"
,
"nl.uva.sne.drip.service"
,
"nl.uva.sne.drip.commons.utils"
})
public
class
ToscaHelperConfig
{
@Value
(
"${sure
_
tosca.base.path}"
)
@Value
(
"${sure
-
tosca.base.path}"
)
private
String
sureToscaBasePath
;
@Bean
...
...
This diff is collapsed.
Click to expand it.
manager/src/main/resources/application.properties
View file @
40024ae2
...
...
@@ -17,4 +17,4 @@ db.name=drip
db.username
=
drip-user
db.password
=
drip-pass
sure_tosca.base.path
=
http://localhost:8081/tosca-sure/1.0.0
\ No newline at end of file
sure-tosca.base.path
=
http://localhost:8081/tosca-sure/1.0.0
\ No newline at end of file
This diff is collapsed.
Click to expand it.
provisioner/Dockerfile
View file @
40024ae2
...
...
@@ -5,7 +5,7 @@ COPY etc/ etc
CMD
jar -xf provisioner-3.0.0-jar-with-dependencies.jar application.properties && \
cat application.properties && \
sed -ie "s
#^message.broker.host=.*#message.broker.host=$RABBITMQ_HOST#" application.properties && \
sed -ie "s
#^sure
_
tosca.base.path=.*#sure-tosca.base.path=$SURE_TOSCA_BASE_PATH#" application.properties && \
sed -ie "s
#^sure
-
tosca.base.path=.*#sure-tosca.base.path=$SURE_TOSCA_BASE_PATH#" application.properties && \
echo "cloud.storm.db.path=/etc/UD" >> application.properties && \
cat application.properties && \
jar -uf provisioner-3.0.0-jar-with-dependencies.jar application.properties && \
...
...
This diff is collapsed.
Click to expand it.
provisioner/src/main/resources/application.properties
View file @
40024ae2
...
...
@@ -4,5 +4,5 @@ message.broker.password=guest
message.broker.queue.provisioner
=
provisioner
message.broker.queue.planner
=
planner
message.broker.queue.deployer
=
deployer
sure
_tosca.base.path
=
http://localhost:8081/tosca-sure/1.0.0
sure
-tosca.base.path
=
http://localhost:8081/tosca-sure/1.0.0/
cloud.storm.db.path
=
etc/UD
\ No newline at end of file
This diff is collapsed.
Click to expand it.
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