Skip to content

Commit

Permalink
Add pull to adamant_env.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Jbsco committed Jul 1, 2024
1 parent 83d5316 commit 4c5f24f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docker/adamant_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"
;;
Expand Down

0 comments on commit 4c5f24f

Please sign in to comment.