Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pull to adamant_env.sh #55

Merged
merged 1 commit into from
Jul 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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