Skip to content

Commit 53a6a37

Browse files
authored
Add support to specify IMAGE_VER when running quickstart (#20)
Allow download of profile template directly from repo when running quickstart.sh without cloning repo Improve console status messages during quickstart execution Signed-off-by: Daniel Chaffelson <chaffelson@gmail.com>
1 parent 82a3001 commit 53a6a37

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

quickstart.sh

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ set -e
1818

1919
IMAGE_NAME="ghcr.io/cloudera-labs/cldr-runner"
2020
provider=${provider:-full}
21-
IMAGE_VER=latest
21+
IMAGE_VER=${image_ver:-latest}
2222
IMAGE_TAG=${provider}-${IMAGE_VER}
2323
IMAGE_FULL_NAME=${IMAGE_NAME}:${IMAGE_TAG}
2424
CONTAINER_NAME=cloudera-deploy
@@ -43,10 +43,15 @@ done
4343

4444
echo "Ensure Default profile is present"
4545
if [ ! -f "${HOME}"/.config/cloudera-deploy/profiles/default ]; then
46-
cp "${DIR}/profile.yml" "${HOME}"/.config/cloudera-deploy/profiles/default
46+
if [ ! -f "${DIR}/profile.yml" ]; then
47+
curl "https://raw.githubusercontent.com/cloudera-labs/cloudera-deploy/main/profile.yml" -o "${HOME}"/.config/cloudera-deploy/profiles/default
48+
else
49+
cp "${DIR}/profile.yml" "${HOME}"/.config/cloudera-deploy/profiles/default
50+
fi
4751
fi
4852

49-
echo "Mounting ${PROJECT_DIR} to container and Project Directory /runner/project"
53+
echo "Mounting ${PROJECT_DIR} to container as Project Directory /runner/project"
54+
echo "Creating Container ${CONTAINER_NAME} from image ${IMAGE_FULL_NAME}"
5055

5156
if [ ! "$(docker ps -q -f name=${CONTAINER_NAME})" ]; then
5257
if [ "$(docker ps -aq -f status=exited -f name=${CONTAINER_NAME})" ]; then

0 commit comments

Comments
 (0)