File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,9 +2,13 @@ SAMPLE RUNS
22
33To build required images
44------------------------
5+ Examples
56
6- ./build-docker.sh
7+ 1) ./build-docker.sh
8+ DEFAULT: build single-node system based on latest iRODS release
79
10+ 2) IRODS_PACKAGE_VERSION="4.2.12-1~bionic" NO_CACHE='1' ./build-docker.sh
11+ Build (ignoring docker cache) single-node system based on specified package version string.
812
913simple examples
1014---------------
Original file line number Diff line number Diff line change @@ -10,6 +10,12 @@ DOCKER=docker
1010for dockerfile in [0-9]* .Dockerfile; do
1111 image_name=${dockerfile# [0-9]* _}
1212 image_name=${image_name% .Dockerfile}
13- $DOCKER build -f $dockerfile -t $image_name . ${IRODS_PACKAGE_VERSION: +" --build-arg=irods_package_version=$IRODS_PACKAGE_VERSION " } \
14- ${NO_CACHE+" --no-cache" } || exit
13+ if [ " $image_name " = " install-irods" ]; then
14+ package_version_option=${IRODS_PACKAGE_VERSION: +" --build-arg=irods_package_version=$IRODS_PACKAGE_VERSION " }
15+ else
16+ package_version_option=" "
17+ fi
18+ $DOCKER build -f $dockerfile -t $image_name . $package_version_option \
19+ ${NO_CACHE+" --no-cache" } ||
20+ { STATUS=$? ; echo " *** Failure while building [$image_name ]" ; exit $STATUS ; }
1521done
You can’t perform that action at this time.
0 commit comments