Loading rosetta/build +13 −9 Original line number Original line Diff line number Diff line Loading @@ -7,20 +7,22 @@ if [ ! -d ./services ]; then exit 1 exit 1 fi fi # Set service and caching switch # Set service and cacheing if [[ "x$1" == "xnocache" ]] ; then if [[ "x$1" == "xnocache" ]] ; then NOCACHE=True NOCACHE=true SERVICE="" SERVICE="" elif [[ "x$2" == "xnocache" ]] ; then elif [[ "x$2" == "xnocache" ]] ; then NOCACHE=True NOCACHE=true SERVICE=$1 SERVICE=$1 else else NOCACHE=False if [[ "x$NOCACHE" == "x" ]] ; then # Set the default only if we did not get any NOCACHE env var NOCACHE=false fi SERVICE=$1 SERVICE=$1 fi fi if [[ "x$NOCACHE" == "xTrue" ]] ; then if [[ "x$NOCACHE" == "xtrue" ]] ; then BUILD_COMMAND="docker build --no-cache" BUILD_COMMAND="docker build --no-cache" else else BUILD_COMMAND="docker build" BUILD_COMMAND="docker build" Loading @@ -44,9 +46,11 @@ else # Build a specific image # Build a specific image echo "" echo "" echo "=================================" if [[ "x$NOCACHE" == "xtrue" ]] ; then echo " Building $SERVICE..." echo "-> Building $SERVICE (without cache)..." echo "=================================" else echo "-> Building $SERVICE..." fi echo "" echo "" $BUILD_COMMAND services/$SERVICE -t rosetta/$SERVICE $BUILD_COMMAND services/$SERVICE -t rosetta/$SERVICE Loading Loading
rosetta/build +13 −9 Original line number Original line Diff line number Diff line Loading @@ -7,20 +7,22 @@ if [ ! -d ./services ]; then exit 1 exit 1 fi fi # Set service and caching switch # Set service and cacheing if [[ "x$1" == "xnocache" ]] ; then if [[ "x$1" == "xnocache" ]] ; then NOCACHE=True NOCACHE=true SERVICE="" SERVICE="" elif [[ "x$2" == "xnocache" ]] ; then elif [[ "x$2" == "xnocache" ]] ; then NOCACHE=True NOCACHE=true SERVICE=$1 SERVICE=$1 else else NOCACHE=False if [[ "x$NOCACHE" == "x" ]] ; then # Set the default only if we did not get any NOCACHE env var NOCACHE=false fi SERVICE=$1 SERVICE=$1 fi fi if [[ "x$NOCACHE" == "xTrue" ]] ; then if [[ "x$NOCACHE" == "xtrue" ]] ; then BUILD_COMMAND="docker build --no-cache" BUILD_COMMAND="docker build --no-cache" else else BUILD_COMMAND="docker build" BUILD_COMMAND="docker build" Loading @@ -44,9 +46,11 @@ else # Build a specific image # Build a specific image echo "" echo "" echo "=================================" if [[ "x$NOCACHE" == "xtrue" ]] ; then echo " Building $SERVICE..." echo "-> Building $SERVICE (without cache)..." echo "=================================" else echo "-> Building $SERVICE..." fi echo "" echo "" $BUILD_COMMAND services/$SERVICE -t rosetta/$SERVICE $BUILD_COMMAND services/$SERVICE -t rosetta/$SERVICE Loading