Commit 40024ae2 authored by Spiros Koulouzis's avatar Spiros Koulouzis

rename sure-tosca.base.path

parent 6894de4d
#!/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
...@@ -5,4 +5,4 @@ message.broker.queue.provisioner=provisioner ...@@ -5,4 +5,4 @@ message.broker.queue.provisioner=provisioner
message.broker.queue.planner=planner message.broker.queue.planner=planner
message.broker.queue.deployer=deployer 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
...@@ -74,7 +74,7 @@ public class ToscaHelperTest { ...@@ -74,7 +74,7 @@ public class ToscaHelperTest {
objectMapper.setSerializationInclusion(JsonInclude.Include.NON_NULL); objectMapper.setSerializationInclusion(JsonInclude.Include.NON_NULL);
toscaTemplate = objectMapper.readValue(ymlStr, ToscaTemplate.class); 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); serviceUp = isServiceUp(serviceBasePath);
if (serviceUp) { if (serviceUp) {
instance = new ToscaHelper(serviceBasePath); instance = new ToscaHelper(serviceBasePath);
......
...@@ -5,4 +5,4 @@ message.broker.queue.provisioner=provisioner ...@@ -5,4 +5,4 @@ message.broker.queue.provisioner=provisioner
message.broker.queue.planner=planner message.broker.queue.planner=planner
message.broker.queue.deployer=deployer 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
...@@ -91,18 +91,18 @@ services: ...@@ -91,18 +91,18 @@ services:
#image: jupyter/base-notebook #image: jupyter/base-notebook
#manager: manager:
#depends_on: depends_on:
#- rabbit - rabbit
#- mongo - mongo
#- sure-tosca - sure-tosca
#image: alogo53/manager:3.0.0 image: alogo53/manager:3.0.0
#environment: environment:
#RABBITMQ_HOST: rabbit RABBITMQ_HOST: rabbit
#MONGO_HOST: mongo MONGO_HOST: mongo
#SURE_TOSCA_BASE_PATH: http://sure-tosca:8081/tosca-sure/1.0.0 SURE_TOSCA_BASE_PATH: http://sure-tosca:8081/tosca-sure/1.0.0
#ports: ports:
#- "30000:8080" - "30000:8080"
sure-tosca: sure-tosca:
image: alogo53/sure-tosca:3.0.0 image: alogo53/sure-tosca:3.0.0
...@@ -117,14 +117,14 @@ services: ...@@ -117,14 +117,14 @@ services:
environment: environment:
RABBITMQ_HOST: rabbit RABBITMQ_HOST: rabbit
provisioner: #provisioner:
depends_on: #depends_on:
- rabbit #- rabbit
- sure-tosca #- sure-tosca
image: alogo53/provisioner:3.0.0 #image: alogo53/provisioner:3.0.0
environment: #environment:
RABBITMQ_HOST: rabbit #RABBITMQ_HOST: rabbit
SURE_TOSCA_BASE_PATH: http://sure-tosca:8081/tosca-sure/1.0.0 #SURE_TOSCA_BASE_PATH: http://sure-tosca:8081/tosca-sure/1.0.0
#volumes: #volumes:
......
...@@ -4,7 +4,7 @@ COPY target/manager-3.0.0.jar manager-3.0.0.jar ...@@ -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 && \ 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#^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#^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 && \ cat BOOT-INF/classes/application.properties && \
jar -uf manager-3.0.0.jar BOOT-INF/classes/application.properties && \ jar -uf manager-3.0.0.jar BOOT-INF/classes/application.properties && \
java -jar manager-3.0.0.jar java -jar manager-3.0.0.jar
...@@ -24,7 +24,7 @@ import org.springframework.context.annotation.PropertySources; ...@@ -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"}) @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 { public class ToscaHelperConfig {
@Value("${sure_tosca.base.path}") @Value("${sure-tosca.base.path}")
private String sureToscaBasePath; private String sureToscaBasePath;
@Bean @Bean
......
...@@ -17,4 +17,4 @@ db.name=drip ...@@ -17,4 +17,4 @@ db.name=drip
db.username=drip-user db.username=drip-user
db.password=drip-pass db.password=drip-pass
sure_tosca.base.path=http://localhost:8081/tosca-sure/1.0.0 sure-tosca.base.path=http://localhost:8081/tosca-sure/1.0.0
\ No newline at end of file \ No newline at end of file
...@@ -5,7 +5,7 @@ COPY etc/ etc ...@@ -5,7 +5,7 @@ COPY etc/ etc
CMD jar -xf provisioner-3.0.0-jar-with-dependencies.jar application.properties && \ CMD jar -xf provisioner-3.0.0-jar-with-dependencies.jar application.properties && \
cat application.properties && \ cat application.properties && \
sed -ie "s#^message.broker.host=.*#message.broker.host=$RABBITMQ_HOST#" 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 && \ echo "cloud.storm.db.path=/etc/UD" >> application.properties && \
cat application.properties && \ cat application.properties && \
jar -uf provisioner-3.0.0-jar-with-dependencies.jar application.properties && \ jar -uf provisioner-3.0.0-jar-with-dependencies.jar application.properties && \
......
...@@ -4,5 +4,5 @@ message.broker.password=guest ...@@ -4,5 +4,5 @@ message.broker.password=guest
message.broker.queue.provisioner=provisioner message.broker.queue.provisioner=provisioner
message.broker.queue.planner=planner message.broker.queue.planner=planner
message.broker.queue.deployer=deployer 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 cloud.storm.db.path=etc/UD
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment