Commit dc6f82fa authored by Spiros Koulouzis's avatar Spiros Koulouzis

added env var

parent 2b1add63
...@@ -90,6 +90,8 @@ services: ...@@ -90,6 +90,8 @@ services:
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
CLOUD_STORM_SECRET: 456
CREDENTIAL_SECRET: 123
deployer: deployer:
depends_on: depends_on:
...@@ -99,9 +101,8 @@ services: ...@@ -99,9 +101,8 @@ services:
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
SEMAPHORE_BASE_PATH: http://semaphore:3000/api SEMAPHORE_BASE_PATH: http://semaphore:3000/api
CREDENTIAL_SECRET: 123
ENCRYPTION_PASSWORD: 456
......
...@@ -34,9 +34,7 @@ spec: ...@@ -34,9 +34,7 @@ spec:
- name: SURE_TOSCA_BASE_PATH - name: SURE_TOSCA_BASE_PATH
value: http://sure-tosca:8081/tosca-sure/1.0.0 value: http://sure-tosca:8081/tosca-sure/1.0.0
- name: SEMAPHORE_BASE_PATH - name: SEMAPHORE_BASE_PATH
value: http://semaphore:3000/api value: http://semaphore:3000/api
- name: CREDENTIAL_SECRET
value: top_secret
image: qcdis/deployer:3.0.0 image: qcdis/deployer:3.0.0
name: deployer name: deployer
imagePullPolicy: Always imagePullPolicy: Always
......
...@@ -7,12 +7,12 @@ metadata: ...@@ -7,12 +7,12 @@ metadata:
kompose.version: 1.16.0 (0c01309) kompose.version: 1.16.0 (0c01309)
creationTimestamp: null creationTimestamp: null
labels: labels:
io.kompose.service: deployer io.kompose.service: provisioner
name: deployer name: provisioner
spec: spec:
selector: selector:
matchLabels: matchLabels:
io.kompose.service: deployer io.kompose.service: provisioner
replicas: 1 replicas: 1
strategy: strategy:
type: RollingUpdate type: RollingUpdate
...@@ -25,7 +25,7 @@ spec: ...@@ -25,7 +25,7 @@ spec:
metadata: metadata:
creationTimestamp: null creationTimestamp: null
labels: labels:
io.kompose.service: deployer io.kompose.service: provisioner
spec: spec:
containers: containers:
- env: - env:
...@@ -33,14 +33,8 @@ spec: ...@@ -33,14 +33,8 @@ spec:
value: rabbit value: rabbit
- name: SURE_TOSCA_BASE_PATH - name: SURE_TOSCA_BASE_PATH
value: http://sure-tosca:8081/tosca-sure/1.0.0 value: http://sure-tosca:8081/tosca-sure/1.0.0
- name: SEMAPHORE_BASE_PATH image: qcdis/provisioner:3.0.0
value: http://semaphore:3000/api name: provisioner
- name: CREDENTIAL_SECRET
value: top_secret
- name: ENCRYPTION_PASSWORD
value: top_secret
image: qcdis/deployer:3.0.0
name: deployer
imagePullPolicy: Always imagePullPolicy: Always
resources: {} resources: {}
restartPolicy: Always restartPolicy: Always
......
...@@ -6,8 +6,8 @@ CMD jar -xf provisioner-3.0.0-jar-with-dependencies.jar application.properties & ...@@ -6,8 +6,8 @@ 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 && \
sed -ie "s#^cloud.storm.secret=.*#cloud.storm.secret=$ENCRYPTION_PASSWORD#" application.properties && \
sed -ie "s#^cloud.storm.db.path=.*#cloud.storm.db.path=/etc/UD#" application.properties && \ sed -ie "s#^cloud.storm.db.path=.*#cloud.storm.db.path=/etc/UD#" application.properties && \
sed -ie "s#^cloud.storm.secret=.*#cloud.storm.secret=$CLOUD_STORM_SECRET#" application.properties && \
sed -ie "s#^credential.secret=.*#credential.secret=$CREDENTIAL_SECRET#" application.properties && \ sed -ie "s#^credential.secret=.*#credential.secret=$CREDENTIAL_SECRET#" 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 && \
......
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