Skip to content
Snippets Groups Projects
Verified Commit 32977d62 authored by Quentin Duchemin's avatar Quentin Duchemin
Browse files

[MISC] Create dumb secrets before stopping containers

So that docker-compose would not complain about missing file
parent a0792435
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment