From 4c5f24ff821a2fb0102acd83352feb34b2be88f7 Mon Sep 17 00:00:00 2001 From: Jacob Seman <90524106+Jbsco@users.noreply.github.com> Date: Mon, 1 Jul 2024 11:02:15 -0600 Subject: [PATCH] Add `pull` to `adamant_env.sh` --- docker/adamant_env.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docker/adamant_env.sh b/docker/adamant_env.sh index ff98980..dbb66e7 100755 --- a/docker/adamant_env.sh +++ b/docker/adamant_env.sh @@ -42,6 +42,7 @@ usage() { echo "* start: create and start the ${PROJECT_NAME} container" >&2 echo "* stop: stop the running ${PROJECT_NAME} container" >&2 echo "* login: login to the ${PROJECT_NAME} container" >&2 + echo "* pull: pull the latest image from the Docker registry" >&2 echo "* push: push the image to the Docker registry" >&2 echo "* build: build the image from the Dockerfile" >&2 echo "* remove: remove network and volumes for ${PROJECT_NAME}" >&2 @@ -64,6 +65,9 @@ case $1 in login ) execute "${DOCKER_COMPOSE_COMMAND} -f ${DOCKER_COMPOSE_CONFIG} exec -it -u user ${PROJECT_NAME} //bin//bash" ;; + pull ) + execute "${DOCKER_COMPOSE_COMMAND} -f ${DOCKER_COMPOSE_CONFIG} pull" + ;; push ) execute "${DOCKER_COMPOSE_COMMAND} -f ${DOCKER_COMPOSE_CONFIG} push" ;;