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
4 years ago
by
Spiros Koulouzis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added env var
parent
2b1add63
Changes
4
Show 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:
...
@@ -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
:
...
@@ -100,8 +102,7 @@ services:
...
@@ -100,8 +102,7 @@ services:
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
...
...
This diff is collapsed.
Click to expand it.
k8s/CONF/deployer-deployment.yaml
View file @
dc6f82fa
...
@@ -35,8 +35,6 @@ spec:
...
@@ -35,8 +35,6 @@ spec:
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
...
...
This diff is collapsed.
Click to expand it.
k8s/CONF/
deploy
er-deployment.yaml.template
→
k8s/CONF/
provision
er-deployment.yaml.template
View file @
dc6f82fa
...
@@ -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:
deploy
er
io.kompose.service:
provision
er
name:
deploy
er
name:
provision
er
spec:
spec:
selector:
selector:
matchLabels:
matchLabels:
io.kompose.service:
deploy
er
io.kompose.service:
provision
er
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:
deploy
er
io.kompose.service:
provision
er
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
...
...
This diff is collapsed.
Click to expand it.
provisioner/Dockerfile
View file @
dc6f82fa
...
@@ -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 && \
...
...
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