Skip to content
Snippets Groups Projects
Commit 25caae3d authored by jurgenhaas's avatar jurgenhaas
Browse files

Make sure we receive the proper exit code from docker exec/run commands inside scripts

parent 9b25a1e4
No related branches found
No related tags found
No related merge requests found
Pipeline #405825 passed
......@@ -3,3 +3,6 @@
export $(cat .env | xargs)
cd tests/backstop
docker run --rm -t -v $(php /usr/local/bin/volume.php) -w $PWD --network=traefik_${COMPOSE_PROJECT_NAME} backstopjs/backstopjs "$@"
EC=$?
exit $EC
#!/bin/bash
docker compose "$@"
EC=$?
exit $EC
......@@ -5,6 +5,7 @@ function setPermissions {
}
docker compose exec ${LAKEDROPS_DEV_DC_OPTIONS} php drush "$@"
EC=$?
if [[ "$1" == "gen" ]]; then
setPermissions
......@@ -12,3 +13,5 @@ fi
if [[ "$1" == "generate" ]]; then
setPermissions
fi
exit $EC
#!/bin/bash
set -e
if [[ -z "$NODE_VERSION" ]]; then
NODE_VERSION=12-stretch-slim
fi
......@@ -40,3 +42,6 @@ else
registry.lakedrops.com/docker/node:${NODE_VERSION} >/dev/null
fi
docker exec -it -w ${PWD} ${NAME} ${NODE_CMD} "$@"
EC=$?
exit $EC
......@@ -2,3 +2,6 @@
export $(cat .env | xargs)
docker run --rm -v $(php /usr/local/bin/volume.php /app) phpstan/phpstan "$@"
EC=$?
exit $EC
#!/bin/bash
docker compose exec ${LAKEDROPS_DEV_DC_OPTIONS} php /var/www/html/vendor/bin/rector "$@"
EC=$?
exit $EC
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment