Update: test

This commit is contained in:
Siroco 2023-02-25 01:09:15 +01:00
parent 28cef88a39
commit 3b2a7ea1d9
No known key found for this signature in database
GPG Key ID: 1324098302A514B0

6
test Executable file → Normal file
View File

@ -4,13 +4,18 @@ TMP=/tmp/wordpress
TIMEOUT=120
tear_down () {
echo "Clean"
cd $TMP
docker-compose stop
docker-compose down -v --remove-orphans
docker network prune -f
cd ..
rm -rf $TMP
cd $HPATH
}
HPATH=$(pwd)
[ -d $TMP ] && tear_down
mkdir $TMP
cat env.sample | sed "s/USER_GROUP.*$/USER_GROUP=`id -u`:`id -g`/" > $TMP/.env
cat docker-compose.yml | sed 's/registry.sindominio.net\/wordpress/wordpress/' > $TMP/docker-compose.yml
@ -44,4 +49,3 @@ then
echo "No encontre 'Hello world!' en la web del contenedor"
exit 1
fi