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
dc6f82fa
Commit
dc6f82fa
authored
Jun 05, 2020
by
Spiros Koulouzis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added env var
parent
2b1add63
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
19 deletions
+12
-19
docker-compose.yml
docker-compose/docker-compose.yml
+4
-3
deployer-deployment.yaml
k8s/CONF/deployer-deployment.yaml
+1
-3
provisioner-deployment.yaml.template
k8s/CONF/provisioner-deployment.yaml.template
+6
-12
Dockerfile
provisioner/Dockerfile
+1
-1
No files found.
docker-compose/docker-compose.yml
View file @
dc6f82fa
...
...
@@ -90,6 +90,8 @@ services:
environment
:
RABBITMQ_HOST
:
rabbit
SURE_TOSCA_BASE_PATH
:
http://sure-tosca:8081/tosca-sure/1.0.0
CLOUD_STORM_SECRET
:
456
CREDENTIAL_SECRET
:
123
deployer
:
depends_on
:
...
...
@@ -99,9 +101,8 @@ services:
environment
:
RABBITMQ_HOST
:
rabbit
SURE_TOSCA_BASE_PATH
:
http://sure-tosca:8081/tosca-sure/1.0.0
SEMAPHORE_BASE_PATH
:
http://semaphore:3000/api
CREDENTIAL_SECRET
:
123
ENCRYPTION_PASSWORD
:
456
SEMAPHORE_BASE_PATH
:
http://semaphore:3000/api
...
...
k8s/CONF/deployer-deployment.yaml
View file @
dc6f82fa
...
...
@@ -34,9 +34,7 @@ spec:
-
name
:
SURE_TOSCA_BASE_PATH
value
:
http://sure-tosca:8081/tosca-sure/1.0.0
-
name
:
SEMAPHORE_BASE_PATH
value
:
http://semaphore:3000/api
-
name
:
CREDENTIAL_SECRET
value
:
top_secret
value
:
http://semaphore:3000/api
image
:
qcdis/deployer:3.0.0
name
:
deployer
imagePullPolicy
:
Always
...
...
k8s/CONF/
deploy
er-deployment.yaml.template
→
k8s/CONF/
provision
er-deployment.yaml.template
View file @
dc6f82fa
...
...
@@ -7,12 +7,12 @@ metadata:
kompose.version: 1.16.0 (0c01309)
creationTimestamp: null
labels:
io.kompose.service:
deploy
er
name:
deploy
er
io.kompose.service:
provision
er
name:
provision
er
spec:
selector:
matchLabels:
io.kompose.service:
deploy
er
io.kompose.service:
provision
er
replicas: 1
strategy:
type: RollingUpdate
...
...
@@ -25,7 +25,7 @@ spec:
metadata:
creationTimestamp: null
labels:
io.kompose.service:
deploy
er
io.kompose.service:
provision
er
spec:
containers:
- env:
...
...
@@ -33,14 +33,8 @@ spec:
value: rabbit
- name: SURE_TOSCA_BASE_PATH
value: http://sure-tosca:8081/tosca-sure/1.0.0
- name: SEMAPHORE_BASE_PATH
value: http://semaphore:3000/api
- name: CREDENTIAL_SECRET
value: top_secret
- name: ENCRYPTION_PASSWORD
value: top_secret
image: qcdis/deployer:3.0.0
name: deployer
image: qcdis/provisioner:3.0.0
name: provisioner
imagePullPolicy: Always
resources: {}
restartPolicy: Always
...
...
provisioner/Dockerfile
View file @
dc6f82fa
...
...
@@ -6,8 +6,8 @@ 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
#^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.secret=.*#cloud.storm.secret=$CLOUD_STORM_SECRET#" application.properties && \
sed -ie "s
#^credential.secret=.*#credential.secret=$CREDENTIAL_SECRET#" application.properties && \
cat application.properties && \
jar -uf provisioner-3.0.0-jar-with-dependencies.jar application.properties && \
...
...
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