Skip to content
Snippets Groups Projects
Commit 78eb59ad authored by David Trattnig's avatar David Trattnig
Browse files

Chore: Ability to bash into running container

parent 383ccbaf
No related branches found
No related tags found
1 merge request!3Liquidsoap 2 migration
......@@ -16,11 +16,12 @@ help:
@echo " docker.build - build docker image"
@echo " docker.push - push docker image"
@echo " docker.run - start app in container"
@echo " docker.run.bash - start bash in container"
@echo " docker.restart - restart container"
@echo " docker.stop - stop container"
@echo " docker.rm - stop and remove container"
@echo " docker.log - container logs for app"
@echo " docker.bash - enter bash in container"
@echo " docker.bash - enter bash in running container"
# Settings
......@@ -97,6 +98,11 @@ docker.run: DOCKER_ENTRY_POINT := -d
docker.run:
$(DOCKER_RUN)
.PHONY: docker.run.bash
docker.run.bash: DOCKER_ENTRY_POINT := -v "$(CURDIR)":"/srv" --entrypoint bash -it
docker.run.bash:
$(DOCKER_RUN)
.PHONY: docker.restart
docker.restart:
docker restart $(APP_NAME)
......@@ -114,6 +120,5 @@ docker.log:
docker logs $(APP_NAME) -f
.PHONY: docker.bash
docker.bash: DOCKER_ENTRY_POINT := -v "$(CURDIR)":"/srv" --entrypoint bash -it
docker.bash:
$(DOCKER_RUN)
docker exec -it $(APP_NAME) bash
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment