check if build was successful in scripts
This commit is contained in:
parent
05c39487d8
commit
0c3ed4152e
4
dev.sh
4
dev.sh
|
@ -11,6 +11,10 @@ cp docker-compose.dev docker-compose.yml
|
||||||
cp Dockerfile.dev Dockerfile
|
cp Dockerfile.dev Dockerfile
|
||||||
|
|
||||||
docker-compose build
|
docker-compose build
|
||||||
|
if [ $? != 0 ]; then
|
||||||
|
echo "Error while building; check logs" >&2
|
||||||
|
exit -1
|
||||||
|
fi
|
||||||
|
|
||||||
echo -e "\033[1;32mDevelopment environment set up successfully\033[0m"
|
echo -e "\033[1;32mDevelopment environment set up successfully\033[0m"
|
||||||
echo -e "Start it up with \033[1;32mdocker-compose up -d\033[0m!\n"
|
echo -e "Start it up with \033[1;32mdocker-compose up -d\033[0m!\n"
|
4
prod.sh
4
prod.sh
|
@ -11,6 +11,10 @@ cp docker-compose.prod docker-compose.yml
|
||||||
cp Dockerfile.prod Dockerfile
|
cp Dockerfile.prod Dockerfile
|
||||||
|
|
||||||
docker-compose build
|
docker-compose build
|
||||||
|
if [ $? != 0 ]; then
|
||||||
|
echo "Error while building; check logs" >&2
|
||||||
|
exit -1
|
||||||
|
fi
|
||||||
|
|
||||||
echo -e "\033[1;32mProduction environment set up successfully\033[0m"
|
echo -e "\033[1;32mProduction environment set up successfully\033[0m"
|
||||||
echo -e "Start it up with \033[1;32mdocker-compose up -d\033[0m!\n"
|
echo -e "Start it up with \033[1;32mdocker-compose up -d\033[0m!\n"
|
Loading…
Reference in New Issue