auto-pull docker image

parent cee0f937
...@@ -4,10 +4,21 @@ ...@@ -4,10 +4,21 @@
COMMAND=$@ COMMAND=$@
echo "OSA_DOCKER_IMAGE == ${OSA_DOCKER_IMAGE:=integralsw/osa:11.0}"
echo "OSA_DOCKER_PULL == \"${OSA_DOCKER_PULL:=yes}\""
[ "$OSA_DOCKER_PULL" == "yes" ] && {
echo "will update image (set OSA_DOCKER_PULL to anything but \"yes\" to stop this)"
docker pull $OSA_DOCKER_IMAGE
}
echo "."
echo "."
echo "REP_BASE_PROD: ${REP_BASE_PROD:?please set this variable to the current data location}" echo "REP_BASE_PROD: ${REP_BASE_PROD:?please set this variable to the current data location}"
echo "CURRENT_IC: ${CURRENT_IC:?please set this variable to the current IC location (could be REP_BASE_PROD, but we would not like to assume...)}" echo "CURRENT_IC: ${CURRENT_IC:?please set this variable to the current IC location (could be REP_BASE_PROD, but we would not like to assume...)}"
echo "using WORKDIR: ${WORKDIR:=$PWD}" echo "using WORKDIR: ${WORKDIR:=$PWD}"
for directory in "$REP_BASE_PROD/scw" "$REP_BASE_PROD/aux" "$CURRENT_IC/ic" "$CURRENT_IC/idx" "$WORKDIR"; do for directory in "$REP_BASE_PROD/scw" "$REP_BASE_PROD/aux" "$CURRENT_IC/ic" "$CURRENT_IC/idx" "$WORKDIR"; do
[ -d $directory ] || { echo "directory \"$directory\" should exist"; exit 1; } [ -d $directory ] || { echo "directory \"$directory\" should exist"; exit 1; }
done done
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment