From cd2a8ae860f2bfb5e643554f5192c98415d11e58 Mon Sep 17 00:00:00 2001 From: CalebSLane Date: Thu, 21 Sep 2023 11:00:24 -0700 Subject: [PATCH] improve build script to notcie errors --- build.sh | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/build.sh b/build.sh index 74f931b59e..c3c3bb4ec3 100755 --- a/build.sh +++ b/build.sh @@ -91,12 +91,36 @@ echo "creating docker images" #create data import docker image #bash ${INSTALL_DIR}/buildProject.sh -dl ${CONSOLIDATED_SERVER_DIR} bash ${INSTALL_DIR}/buildProject.sh -dl ${PROJECT_DIR}/fhir -t hapi-fhir-jpaserver +if [ $? != 0 ] +then + echo + echo build failed hapi-fhir-jpaserver + exit $? +fi #create the frontend docker image bash ${INSTALL_DIR}/buildProject.sh -dl ${PROJECT_DIR}/frontend -t openelisglobal-frontend +if [ $? != 0 ] +then + echo + echo build failed openelisglobal-frontend + exit $? +fi #create the frontend docker image bash ${INSTALL_DIR}/buildProject.sh -dl ${PROJECT_DIR}/nginx-proxy -t nginx-proxy +if [ $? != 0 ] +then + echo + echo build failed nginx-proxy + exit $? +fi #create the docker image bash ${INSTALL_DIR}/buildProject.sh -dl ${PROJECT_DIR} -t openelisglobal +if [ $? != 0 ] +then + echo + echo build failed openelisglobal + exit $? +fi createLinuxInstaller() { context=$1