Add individual docker run commands

This commit is contained in:
sid palas
2023-01-30 16:51:09 -05:00
parent 6ff07906a5
commit d02d3f8342
9 changed files with 230 additions and 37 deletions

View File

@ -1,19 +1,3 @@
.PHONY: compose-build
compose-build:
docker compose build
.PHONY: compose-up
compose-up:
docker compose up
.PHONY: compose-up-build
compose-up-build:
docker compose up --build
.PHONY: compose-down
compose-down:
docker compose down
.PHONY: build-sample
build-sample:
DOCKER_BUILDKIT=1 docker build \
@ -35,24 +19,6 @@ build-multiarch:
--push \
.
define ENTRYPOINT_CMD_DESCRIPTION
##############################
See Dockerfile.sample for image definition.
This series of docker run commands is meant
to help you understand the interaction between
CMD and ENTRYPOINT.
The image has the following:
ENTRYPOINT [ "echo", "Hey Team 👋 (entrypoint)" ]
CMD [ "+ (cmd)" ]
##############################
endef
export ENTRYPOINT_CMD_DESCRIPTION
.PHONY: run-sample-entrypoint-cmd
run-sample-entrypoint-cmd: build-sample
@echo "$$ENTRYPOINT_CMD_DESCRIPTION"
@ -70,4 +36,24 @@ run-sample-entrypoint-cmd: build-sample
@echo "##############################"
@echo "Overriden entrypoint with arguments (CMD is ignored):"
docker run --entrypoint echo sample "Hey Team 👋 (Overriden entrypoint + arguments)"
docker run --entrypoint echo sample "Hey Team 👋 (Overriden entrypoint + arguments)"
define ENTRYPOINT_CMD_DESCRIPTION
See Dockerfile.sample for image definition.
This series of docker run commands is meant
to help you understand the interaction between
CMD and ENTRYPOINT.
The image has the following:
ENTRYPOINT [ "echo", "Hey Team 👋 (entrypoint)" ]
CMD [ "+ (cmd)" ]
endef
export ENTRYPOINT_CMD_DESCRIPTION