mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-14 17:02:49 +03:00
In dev.sh tests: use postgres:11.5-alpine-postgis image which boots 3 sec faster
This commit is contained in:
parent
9e0e42444b
commit
5827d652f6
@ -225,9 +225,8 @@ EOF
|
||||
CONF_FLAGS=$(echo "$CONF" | sed -e 's/^/-c /' | tr '\n' ' ')
|
||||
|
||||
|
||||
# The unofficial 'mdillon/postgis' comes with postgis installed, needed for tests:
|
||||
docker run --name "$PG_CONTAINER_NAME" -p 127.0.0.1:"$PG_PORT":$PG_PORT --expose="$PG_PORT" \
|
||||
-e POSTGRES_PASSWORD="$PGPASSWORD" -d mdillon/postgis:11 \
|
||||
-e POSTGRES_PASSWORD="$PGPASSWORD" -d circleci/postgres:11.5-alpine-postgis \
|
||||
$CONF_FLAGS
|
||||
|
||||
|
||||
@ -263,8 +262,9 @@ function cleanup {
|
||||
# Since scripts here are tailored to the env we've just launched:
|
||||
rm -r "$DEV_SHIM_PATH"
|
||||
|
||||
echo_pretty "Removing $PG_CONTAINER_NAME and its volumes in 5 seconds! PRESS CTRL-C TO ABORT."
|
||||
sleep 5
|
||||
echo_pretty "Removing $PG_CONTAINER_NAME and its volumes in 5 seconds!"
|
||||
echo_pretty " PRESS CTRL-C TO ABORT removal, or ENTER to clean up right away"
|
||||
read -t5 || true
|
||||
docker stop "$PG_CONTAINER_NAME"
|
||||
docker rm -v "$PG_CONTAINER_NAME"
|
||||
;;
|
||||
|
Loading…
Reference in New Issue
Block a user