Skip to content
Permalink
Browse files

Add --pull --no-fetch build options on refresh

  • Loading branch information
mederly committed Oct 15, 2018
1 parent 2d57d35 commit 6171bc2b45ea388d2d588bbd443806cc28ca6d76
Showing with 4 additions and 1 deletion.
  1. +4 −1 build.sh
@@ -4,6 +4,7 @@ cd "$(dirname "$0")"
source common.bash

SKIP_DOWNLOAD=0
REFRESH=""
while getopts "nhr?" opt; do
case $opt in
n)
@@ -17,6 +18,8 @@ while getopts "nhr?" opt; do
docker rmi -f $maintainer/$imagename:$tag
echo "Done"
fi
REFRESH="--no-cache --pull"
echo "Using 'refresh' mode: $REFRESH"
;;
h | ?)
echo "Options: -n skip download"
@@ -29,7 +32,7 @@ while getopts "nhr?" opt; do
esac
done
if [ "$SKIP_DOWNLOAD" = "0" ]; then ./download-midpoint || exit 1; fi
docker build --tag $maintainer/$imagename:$tag --build-arg maintainer=$maintainer --build-arg imagename=$imagename . || exit 1
docker build $REFRESH --tag $maintainer/$imagename:$tag --build-arg maintainer=$maintainer --build-arg imagename=$imagename . || exit 1
echo "---------------------------------------------------------------------------------------"
echo "The midPoint containers were successfully built. To start them, execute the following:"
echo ""

0 comments on commit 6171bc2

Please sign in to comment.
You can’t perform that action at this time.