Skip to content
Snippets Groups Projects
Commit ae1d54d8 authored by Christian Boettcher's avatar Christian Boettcher
Browse files

bring down old containers if possible

parent a54547aa
Branches
Tags
No related merge requests found
...@@ -89,6 +89,7 @@ full-deploy-production: ...@@ -89,6 +89,7 @@ full-deploy-production:
- pip install python-openstackclient - pip install python-openstackclient
- OLD_ID=`openstack server show $PRODUCTION_NAME -f value -c id` && server_exists=true || echo "No production server found. It might be a first time deployment" - OLD_ID=`openstack server show $PRODUCTION_NAME -f value -c id` && server_exists=true || echo "No production server found. It might be a first time deployment"
- if [ "$server_exists" = true ] ; then - if [ "$server_exists" = true ] ; then
ssh -oStrictHostKeyChecking=accept-new airflow@$PRODUCTION_IP "sudo docker-compose -f /home/airflow/data-logistics-service/dockers/docker-compose.yaml --project-directory /home/airflow/eflows-airflow down"
openstack server set --name $OLD_PROD_NAME $OLD_ID; openstack server set --name $OLD_PROD_NAME $OLD_ID;
fi fi
- openstack server remove volume $OLD_ID $VOLUME_ID - openstack server remove volume $OLD_ID $VOLUME_ID
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment