Skip to content

Commit

Permalink
Convert remaining docker commands to docker-compose
Browse files Browse the repository at this point in the history
  • Loading branch information
Jbsco committed Jun 20, 2024
1 parent 6949af6 commit cdaf5fe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docker/adamant_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,13 @@ case $1 in
execute "${DOCKER_COMPOSE_COMMAND} -f ${DOCKER_COMPOSE_CONFIG} stop"
;;
login )
execute "docker exec -it -u user ${DOCKER_CONTAINER_NAME} //bin//bash"
execute "${DOCKER_COMPOSE_COMMAND} -f ${DOCKER_COMPOSE_CONFIG} exec -it -u user ${PROJECT_NAME} //bin//bash"
;;
push )
execute "docker push ${DOCKER_IMAGE_NAME}"
execute "${DOCKER_COMPOSE_COMMAND} -f ${DOCKER_COMPOSE_CONFIG} push ${DOCKER_IMAGE_NAME}"
;;
build )
execute "docker build --progress=plain -t ${DOCKER_IMAGE_NAME} -f Dockerfile ."
execute "${DOCKER_COMPOSE_COMMAND} -f ${DOCKER_COMPOSE_CONFIG} build --progress=plain -t ${DOCKER_IMAGE_NAME} -f Dockerfile ."
;;
remove )
if [ "$2" == "force" ]
Expand Down

0 comments on commit cdaf5fe

Please sign in to comment.