Debug docker

This commit is contained in:
Claude Brisson
2023-12-25 15:21:55 +01:00
parent 58c6c7fcf9
commit f6d4e8772b
3 changed files with 4 additions and 27 deletions

View File

@@ -1,16 +1,5 @@
#!/bin/bash
if ! test -f ../pairgoth.properties
then
echo "Missing pairgoth.properties file" >&2
exit 1
fi
grep -r '^smtp\.host' ../pairgoth.properties | sed -r -e 's/smtp\.host/SMTP_HOST/' -e 's/ //g' > .env
grep -r '^smtp\.port' ../pairgoth.properties | sed -r -e 's/smtp\.port/SMTP_PORT/' -e 's/ //g' >> .env
grep -r '^smtp\.user' ../pairgoth.properties | sed -r -e 's/smtp\.user/SMTP_USER/' -e 's/ //g' >> .env
grep -r '^smtp\.password' ../pairgoth.properties | sed -r -e 's/smtp\.password/SMTP_PASSWORD/' -e 's/ //g' >> .env
mkdir -p data/jetty data/maven
mkdir -p data/jetty
APP_UID=$(id -u) APP_GID=$(id -g) docker compose up