Skip to content

Commit 25c9ed8

Browse files
snowzachjgraettinger
authored andcommitted
Add script option to ensure that the latest version of the flowctl docker image is being used
1 parent 7165626 commit 25c9ed8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

scripts/flowctl.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ DOCKER_UID="$UID"
2929
DOCKER_IMAGE="quay.io/estuary/flow:dev"
3030
DOCKER_EXTRA_OPTS=""
3131
DOCKER_COMMAND="flowctl"
32+
DOCKER_PULL="missing"
3233
FLOWCTL_DIRECTORY=$(pwd)
3334
FLOWCTL_SOURCE=""
3435
FLOWCTL_CONTAINAER_DIRECTORY="/home/flow/project"
@@ -108,6 +109,9 @@ for (( argpos=0; argpos < "${#ARGS[@]}"; argpos++ )); do
108109
--docker-image*)
109110
parse_option "--docker-image" DOCKER_IMAGE "consume" $ARGS
110111
;;
112+
--docker-pull*)
113+
parse_option "--docker-pull" DOCKER_PULL "consume" $ARGS
114+
;;
111115
--debug-script*)
112116
parse_option "--debug-script" DEBUG_SCRIPT "consume" $ARGS
113117
;;
@@ -182,6 +186,7 @@ CMD="${DOCKER_EXEC} run -it --rm \
182186
-v ${FLOWCTL_DIRECTORY}:${FLOWCTL_CONTAINAER_DIRECTORY} \
183187
-v ${DOCKER_SOCK}:/var/run/docker.sock \
184188
--network ${FLOWCTL_NETWORK} \
189+
--pull ${DOCKER_PULL} \
185190
${DOCKER_EXTRA_OPTS} \
186191
-v /var/tmp:/var/tmp -e TMPDIR=/var/tmp \
187192
-e HOME=/tmp \

0 commit comments

Comments
 (0)