Skip to content

Commit 74629c0

Browse files
authored
Update image selection variables (#85)
Signed-off-by: Webster Mudge <[email protected]>
1 parent 2b775db commit 74629c0

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

quickstart.sh

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,25 +16,29 @@
1616

1717
set -e
1818

19-
IMAGE_NAME="ghcr.io/cloudera-labs/cldr-runner"
20-
provider=${provider:-full}
21-
IMAGE_VER=${image_ver:-latest}
22-
IMAGE_TAG=${provider}-${IMAGE_VER}
23-
IMAGE_FULL_NAME=${IMAGE_NAME}:${IMAGE_TAG}
24-
CONTAINER_NAME=cloudera-deploy
19+
IMAGE_NAME="${image_name:-ghcr.io/cloudera-labs/cldr-runner}"
20+
PROVIDER="${provider:-full}"
21+
IMAGE_VER="${image_ver:-latest}"
22+
IMAGE_NO_PULL="${no_pull:+true}"
23+
CONTAINER_NAME="${container:-cloudera-deploy}"
24+
25+
IMAGE_TAG="${PROVIDER}-${IMAGE_VER}"
26+
IMAGE_FULL_NAME="${IMAGE_NAME}:${IMAGE_TAG}"
2527

2628
# dir of script
2729
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )";
2830
# parent dir of that dir
2931
PARENT_DIRECTORY="${DIR%/*}"
3032

31-
PROJECT_DIR=${1:-${PARENT_DIRECTORY}}
33+
PROJECT_DIR="${1:-${PARENT_DIRECTORY}}"
3234

3335
echo "Checking if Docker is running..."
3436
{ docker info >/dev/null 2>&1; echo "Docker OK"; } || { echo "Docker is required and does not seem to be running - please start Docker and retry" ; exit 1; }
3537

36-
echo "Checking for updated execution container image '${IMAGE_FULL_NAME}'"
37-
docker pull "${IMAGE_FULL_NAME}"
38+
if [ "${IMAGE_NO_PULL}" != true ]; then
39+
echo "Checking for updated execution container image '${IMAGE_FULL_NAME}'"
40+
docker pull "${IMAGE_FULL_NAME}"
41+
fi
3842

3943
echo "Ensuring default credential paths are available in calling using profile for mounting to execution environment"
4044
for thisdir in ".aws" ".ssh" ".cdp" ".azure" ".kube" ".config" ".config/cloudera-deploy/log" ".config/cloudera-deploy/profiles"

0 commit comments

Comments
 (0)