mirror of
https://git.sindominio.net/estibadores/wordpress.git
synced 2024-11-22 02:31:07 +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
|
||||
|
||||
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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user