mirror of
https://git.sindominio.net/estibadores/wordpress.git
synced 2024-11-22 10:41:05 +01:00
Update: test
This commit is contained in:
parent
28cef88a39
commit
3b2a7ea1d9
6
test
Executable file → Normal file
6
test
Executable file → Normal file
@ -4,13 +4,18 @@ TMP=/tmp/wordpress
|
|||||||
TIMEOUT=120
|
TIMEOUT=120
|
||||||
|
|
||||||
tear_down () {
|
tear_down () {
|
||||||
|
echo "Clean"
|
||||||
|
cd $TMP
|
||||||
docker-compose stop
|
docker-compose stop
|
||||||
docker-compose down -v --remove-orphans
|
docker-compose down -v --remove-orphans
|
||||||
docker network prune -f
|
docker network prune -f
|
||||||
cd ..
|
cd ..
|
||||||
rm -rf $TMP
|
rm -rf $TMP
|
||||||
|
cd $HPATH
|
||||||
}
|
}
|
||||||
|
|
||||||
|
HPATH=$(pwd)
|
||||||
|
[ -d $TMP ] && tear_down
|
||||||
mkdir $TMP
|
mkdir $TMP
|
||||||
cat env.sample | sed "s/USER_GROUP.*$/USER_GROUP=`id -u`:`id -g`/" > $TMP/.env
|
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
|
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"
|
echo "No encontre 'Hello world!' en la web del contenedor"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user