Skip to content

Commit

Permalink
Merge pull request lasp#27 from Jbsco/docker-pull
Browse files Browse the repository at this point in the history
Add `pull` to `adamant_env.sh`
  • Loading branch information
dinkelk authored Jul 1, 2024
2 parents 83d5316 + 4c5f24f commit 8c9d255
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 8c9d255

Please sign in to comment.