From 32977d621311747699c4aae45f1b33083ef4d03a Mon Sep 17 00:00:00 2001 From: Quentin Duchemin <quentinduchemin@tuta.io> Date: Mon, 3 Feb 2020 23:01:17 +0100 Subject: [PATCH] [MISC] Create dumb secrets before stopping containers So that docker-compose would not complain about missing file --- docker_test.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/docker_test.sh b/docker_test.sh index 4f5039ff..0b96193f 100755 --- a/docker_test.sh +++ b/docker_test.sh @@ -33,6 +33,12 @@ fi cd "$1" echo -e "Starting procedure for \033[31m$1\e[0m..." + +echo -e "\n==== Create dumb secret files ====" +for f in *.secrets.example; do + mv -- "$f" "$(basename -- "$f" .secrets.example).secrets" +done + echo -e "\n==== Stop and remove existing containers ====" docker-compose down @@ -54,11 +60,6 @@ for f in $(grep -l -r ".picasoft.net" .); do sed -i "s/.picasoft.net/.test.picasoft.net/g" ${f} done -echo -e "\n==== Create dumb secret files ====" -for f in *.secrets.example; do - mv -- "$f" "$(basename -- "$f" .secrets.example).secrets" -done - echo -e "\n==== Remove and re-create named external volumes ====" for v in $(docker-compose config --volumes); do # Don't fail if volume does not exists -- GitLab