Use volume binary in test-dev, error exit if failed to delete volume

This commit is contained in:
Omar Brikaa 2022-02-22 17:37:14 +02:00
parent 4578a9d15b
commit 09a0ed250d
1 changed files with 2 additions and 2 deletions

4
piston
View File

@ -61,7 +61,7 @@ case "$SUBCOMMAND" in
build-dev)
echo "Removing the Nix volume if it exists"
docker volume rm -f $DEV_VOLUME_NAME
docker volume rm -f $DEV_VOLUME_NAME || exit 1
echo "Building the base docker image"
build_base dev
echo "Installing the required node modules"
@ -118,7 +118,7 @@ case "$SUBCOMMAND" in
-v $DEV_VOLUME_NAME:/nix \
--name piston_test_runner \
"$IMAGE_NAME_DEV:$IMAGE_TAG" \
piston-test $1
/piston/src/api/src/bin/test.js $1
;;
*)