Commit 26098653 authored by Spiros Koulouzis's avatar Spiros Koulouzis

add env vars to deployer

parent faf71077
...@@ -28,4 +28,7 @@ RUN pip3 install --no-cache-dir -r requirements.txt ...@@ -28,4 +28,7 @@ RUN pip3 install --no-cache-dir -r requirements.txt
COPY . /usr/src/app COPY . /usr/src/app
CMD python3 __main__.py $RABBITMQ_HOST deployer CMD sed -i 's#http://127.0.0.1:8081/tosca-sure/1.0.0#$SURE_TOSCA_BASE_PATH#g' properties.ini && \
sed -i 's#http://127.0.0.1:3000/api#$SEMAPHORE_BASE_PATH#g' properties.ini && \
sed -i 's#host = 127.0.0.1#host = $RABBITMQ_HOST#g' properties.ini && \
python3 __main__.py $RABBITMQ_HOST deployer
...@@ -33,6 +33,8 @@ spec: ...@@ -33,6 +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
value: http://semaphore:3000/api
image: qcdis/deployer:3.0.0 image: qcdis/deployer:3.0.0
name: deployer name: deployer
imagePullPolicy: Always imagePullPolicy: Always
......
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