-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile.help
More file actions
68 lines (66 loc) · 2.22 KB
/
Makefile.help
File metadata and controls
68 lines (66 loc) · 2.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# Help content for Makefile targets
HELP_BUILD = "Build the Docker image."
HELP_RUN = "Run the Docker container for default tests, such as tests in src/tests directory."
HELP_DEPLOY = "Deploy application using the Docker Hub image with user-provided code via volume mount."
HELP_RUN_IT = "Run the Docker container interactively with a shell."
HELP_EXEC = "Execute a command inside the running container."
HELP_LOG = "View the logs of the running container."
HELP_CLEAN = "Stop and delete the running container if it exists."
HELP_WAIT_CONTAINER_READY = "Wait for the container to be ready using an HTTP readiness check."
HELP_RUN_TEST = "Run a specific PHP test script inside the container."
HELP_RUN_ALL_TESTS = "Run all test scripts located in the tests directory and display results."
HELP_TEST = "Run validation tests, including build and all test scripts."
HELP_DEV_PIPELINE = "Run the complete development pipeline: build and test."
# Help target
help:
@echo ""
@echo "Usage:"
@echo ""
@echo $(HELP_BUILD)
@echo " make build"
@echo ""
@echo $(HELP_RUN)
@echo " make run"
@echo ""
@echo $(HELP_DEPLOY)
@echo " make deploy"
@echo ""
@echo $(HELP_RUN_IT)
@echo " make run-it"
@echo ""
@echo $(HELP_EXEC)
@echo " make exec"
@echo ""
@echo $(HELP_LOG)
@echo " make log"
@echo ""
@echo $(HELP_CLEAN)
@echo " make clean"
@echo ""
@echo $(HELP_WAIT_CONTAINER_READY)
@echo " make wait-container-ready"
@echo ""
@echo $(HELP_RUN_TEST)
@echo " make run-test"
@echo ""
@echo $(HELP_RUN_ALL_TESTS)
@echo " make run-all-tests"
@echo ""
@echo $(HELP_TEST)
@echo " make test"
@echo ""
@echo $(HELP_DEV_PIPELINE)
@echo " make dev-pipeline"
@echo ""
@echo "Variables:"
@echo " DOCKER_IMAGE (default: $(DOCKER_IMAGE))"
@echo " CONTAINER_NAME (default: $(CONTAINER_NAME))"
@echo " MULTIPLATFORM (default: $(MULTIPLATFORM))"
@echo " BUILD_PLATFORMS (default: $(BUILD_PLATFORMS))"
@echo " HOST_PORT (default: $(HOST_PORT))"
@echo " CONTAINER_PORT (default: $(CONTAINER_PORT))"
@echo " PHP_VERSION (default: $(PHP_VERSION))"
@echo " SRC_PATH (default: $(SRC_PATH))"
@echo " CONTAINER_SRC_PATH (default: $(CONTAINER_SRC_PATH))"
@echo " TEST_SCRIPT (default: $(TEST_SCRIPT))"
@echo " TESTS_PATH (default: $(TESTS_PATH))"