Do not purge all docker containers in the apps-test

This commit is contained in:
Johannes Zellner
2019-04-16 17:22:03 +02:00
parent e756a442f6
commit 9a349eff32
2 changed files with 3 additions and 1 deletions

View File

@@ -17,6 +17,9 @@ mkdir -p platformdata/addons/mail platformdata/nginx/cert platformdata/nginx/app
# put cert
openssl req -x509 -newkey rsa:2048 -keyout platformdata/nginx/cert/host.key -out platformdata/nginx/cert/host.cert -days 3650 -subj '/CN=localhost' -nodes -config <(cat /etc/ssl/openssl.cnf <(printf "\n[SAN]\nsubjectAltName=DNS:*.localhost"))
# clear out any containers
docker ps -qa | xargs --no-run-if-empty docker rm -f
# create docker network (while the infra code does this, most tests skip infra setup)
docker network create --subnet=172.18.0.0/16 cloudron || true