Skip to content

Commit 1328d59

Browse files
authored
Merge pull request #24900 from shuuji3/add-comments-to-makefile
Add comments for the commands using container in Makefile
2 parents a0dd4b5 + 4d44cd3 commit 1328d59

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ docker-serve:
5858
@echo -e "$(CCRED)**** The use of docker-serve is deprecated. Use container-serve instead. ****$(CCEND)"
5959
$(MAKE) container-serve
6060

61-
container-image:
61+
container-image: ## Build a container image for the preview of the website
6262
$(CONTAINER_ENGINE) build . \
6363
--network=host \
6464
--tag $(CONTAINER_IMAGE) \
@@ -67,7 +67,7 @@ container-image:
6767
container-build: module-check
6868
$(CONTAINER_RUN) --read-only --mount type=tmpfs,destination=/tmp,tmpfs-mode=01777 $(CONTAINER_IMAGE) sh -c "npm ci && hugo --minify"
6969

70-
container-serve: module-check
70+
container-serve: module-check ## Boot the development server using container. Run `make container-image` before this.
7171
$(CONTAINER_RUN) --read-only --mount type=tmpfs,destination=/tmp,tmpfs-mode=01777 -p 1313:1313 $(CONTAINER_IMAGE) hugo server --buildFuture --bind 0.0.0.0 --destination /tmp/hugo --cleanDestinationDir
7272

7373
test-examples:

0 commit comments

Comments
 (0)