Arthur Heymans has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/36104 )
Change subject: util/docker/Makefile: Add documentation docker image targets ......................................................................
util/docker/Makefile: Add documentation docker image targets
Run - make -C util/docker doc.coreboot.org to build the docker image - make -C util/docker docker-build-docs to build the documentation - make -C docker-livehtml-docs to serve autoupdated documentation over http://0.0.0.0:8000
Change-Id: Ic07f216f8d90d6e212383250b852dc91575304c3 Signed-off-by: Arthur Heymans arthur@aheymans.xyz --- M util/docker/Makefile 1 file changed, 19 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/04/36104/1
diff --git a/util/docker/Makefile b/util/docker/Makefile index 6925b57..fbe3785 100644 --- a/util/docker/Makefile +++ b/util/docker/Makefile @@ -71,6 +71,10 @@ upload-coreboot-jenkins-node: test-docker-login $(DOCKER) push coreboot/coreboot-jenkins-node:$(COREBOOT_IMAGE_TAG)
+doc.coreboot.org: test-docker + $(DOCKER) build --force-rm -t doc.coreboot.org \ + $(top)/util/docker/doc.coreboot.org/ + docker-killall: test-docker @if [ -n "$$($(DOCKER) ps | grep 'coreboot')" ]; then \ $(DOCKER) kill $$($(DOCKER) ps | grep 'coreboot' | cut -f1 -d ' '); \ @@ -166,6 +170,20 @@ -it "$$(docker ps | grep coreboot-jenkins-node | cut -f1 -d' ')" \ /bin/bash -l
+docker-build-docs: test-docker +docker-build-docs: + $(DOCKER) run -it --rm \ + --user "$(id -u):$(id -g)" \ + -v "$(top)/:/data-in/:ro" \ + -v "$(top)Documentation/_build/:/data-out/" \ + doc.coreboot.org + +docker-livehtml-docs: test-docker +docker-livehtml-docs: + $(DOCKER) run -it --rm \ + --net=host -v "$(top)/:/data-in/:ro" \ + doc.coreboot.org livehtml + help: @echo "Commands for working with docker images:" @echo " coreboot-sdk - Build coreboot-sdk container" @@ -199,5 +217,5 @@ .PHONY: coreboot-sdk upload-coreboot-sdk .PHONY: clean-coreboot-containers clean-coreboot-images .PHONY: docker-abuild -.PHONY: docker-what-jenkins-does docker-shell docker-jenkins-server docker-jenkins-attach +.PHONY: docker-what-jenkins-does docker-shell docker-jenkins-server docker-jenkins-attach docker-build-docs .PHONY: help
Arthur Heymans has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/36104 )
Change subject: util/docker/Makefile: Add documentation docker image targets ......................................................................
Patch Set 1: Code-Review-2
Update help and fix.
Hello build bot (Jenkins), Martin Roth,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/36104
to look at the new patch set (#2).
Change subject: util/docker/Makefile: Add documentation docker image targets ......................................................................
util/docker/Makefile: Add documentation docker image targets
Run - make -C util/docker doc.coreboot.org to build the docker image - make -C util/docker docker-build-docs to build the documentation - make -C docker-livehtml-docs to serve autoupdated documentation over http://0.0.0.0:8000
Change-Id: Ic07f216f8d90d6e212383250b852dc91575304c3 Signed-off-by: Arthur Heymans arthur@aheymans.xyz --- M util/docker/Makefile 1 file changed, 23 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/04/36104/2
Arthur Heymans has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/36104 )
Change subject: util/docker/Makefile: Add documentation docker image targets ......................................................................
Patch Set 2: -Code-Review
Patrick Georgi has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/36104 )
Change subject: util/docker/Makefile: Add documentation docker image targets ......................................................................
Patch Set 2:
(1 comment)
https://review.coreboot.org/c/coreboot/+/36104/2//COMMIT_MSG Commit Message:
https://review.coreboot.org/c/coreboot/+/36104/2//COMMIT_MSG@12 PS2, Line 12: missing "util/docker"
Hello build bot (Jenkins), Patrick Georgi, Martin Roth,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/36104
to look at the new patch set (#3).
Change subject: util/docker/Makefile: Add documentation docker image targets ......................................................................
util/docker/Makefile: Add documentation docker image targets
Run - make -C util/docker doc.coreboot.org to build the docker image - make -C util/docker docker-build-docs to build the documentation - make -C util/docker-livehtml-docs to serve autoupdated documentation over http://0.0.0.0:8000
Change-Id: Ic07f216f8d90d6e212383250b852dc91575304c3 Signed-off-by: Arthur Heymans arthur@aheymans.xyz --- M util/docker/Makefile 1 file changed, 23 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/04/36104/3
Patrick Georgi has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/36104 )
Change subject: util/docker/Makefile: Add documentation docker image targets ......................................................................
Patch Set 3:
(1 comment)
https://review.coreboot.org/c/coreboot/+/36104/2//COMMIT_MSG Commit Message:
https://review.coreboot.org/c/coreboot/+/36104/2//COMMIT_MSG@12 PS2, Line 12:
missing "util/docker"
Done
Arthur Heymans has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/36104 )
Change subject: util/docker/Makefile: Add documentation docker image targets ......................................................................
Patch Set 3:
(1 comment)
https://review.coreboot.org/c/coreboot/+/36104/2/util/docker/Makefile File util/docker/Makefile:
https://review.coreboot.org/c/coreboot/+/36104/2/util/docker/Makefile@173 PS2, Line 173: docker-build-docs: test-docker
should these targets depend on the doc.coreboot.org target so the image gets built?
It's a phony, so no?
Hello build bot (Jenkins), Patrick Georgi, Martin Roth,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/36104
to look at the new patch set (#4).
Change subject: util/docker/Makefile: Add documentation docker image targets ......................................................................
util/docker/Makefile: Add documentation docker image targets
Run - make -C util/docker doc.coreboot.org to build the docker image - make -C util/docker docker-build-docs to build the documentation - make -C docker-livehtml-docs to serve autoupdated documentation over http://0.0.0.0:8000
Change-Id: Ic07f216f8d90d6e212383250b852dc91575304c3 Signed-off-by: Arthur Heymans arthur@aheymans.xyz --- M util/docker/Makefile 1 file changed, 23 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/04/36104/4
Patrick Georgi has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/36104 )
Change subject: util/docker/Makefile: Add documentation docker image targets ......................................................................
Patch Set 4: Code-Review+2
Patrick Georgi has submitted this change. ( https://review.coreboot.org/c/coreboot/+/36104 )
Change subject: util/docker/Makefile: Add documentation docker image targets ......................................................................
util/docker/Makefile: Add documentation docker image targets
Run - make -C util/docker doc.coreboot.org to build the docker image - make -C util/docker docker-build-docs to build the documentation - make -C docker-livehtml-docs to serve autoupdated documentation over http://0.0.0.0:8000
Change-Id: Ic07f216f8d90d6e212383250b852dc91575304c3 Signed-off-by: Arthur Heymans arthur@aheymans.xyz Reviewed-on: https://review.coreboot.org/c/coreboot/+/36104 Reviewed-by: Patrick Georgi pgeorgi@google.com Tested-by: build bot (Jenkins) no-reply@coreboot.org --- M util/docker/Makefile 1 file changed, 23 insertions(+), 0 deletions(-)
Approvals: build bot (Jenkins): Verified Patrick Georgi: Looks good to me, approved
diff --git a/util/docker/Makefile b/util/docker/Makefile index 6925b57..619de85 100644 --- a/util/docker/Makefile +++ b/util/docker/Makefile @@ -71,6 +71,10 @@ upload-coreboot-jenkins-node: test-docker-login $(DOCKER) push coreboot/coreboot-jenkins-node:$(COREBOOT_IMAGE_TAG)
+doc.coreboot.org: test-docker + $(DOCKER) build --force-rm -t doc.coreboot.org \ + $(top)/util/docker/doc.coreboot.org/ + docker-killall: test-docker @if [ -n "$$($(DOCKER) ps | grep 'coreboot')" ]; then \ $(DOCKER) kill $$($(DOCKER) ps | grep 'coreboot' | cut -f1 -d ' '); \ @@ -166,12 +170,27 @@ -it "$$(docker ps | grep coreboot-jenkins-node | cut -f1 -d' ')" \ /bin/bash -l
+docker-build-docs: test-docker +docker-build-docs: + $(DOCKER) run -it --rm \ + --user $(UID):$(GID) \ + -v "$(top)/:/data-in/:ro" \ + -v "$(top)/Documentation/_build/:/data-out/" \ + doc.coreboot.org + +docker-livehtml-docs: test-docker +docker-livehtml-docs: + $(DOCKER) run -it --rm \ + --net=host -v "$(top)/:/data-in/:ro" \ + doc.coreboot.org livehtml + help: @echo "Commands for working with docker images:" @echo " coreboot-sdk - Build coreboot-sdk container" @echo " upload-coreboot-sdk - Upload coreboot-sdk to hub.docker.com" @echo " coreboot-jenkins-node - Build coreboot-jenkins-node container" @echo " upload-coreboot-jenkins-node - Upload coreboot-jenkins-node to hub.docker.com" + @echo " doc.coreboot.org - Build doc.coreboot.org container" @echo " clean-coreboot-containers - Remove all docker coreboot containers" @echo " clean-coreboot-images - Remove all docker coreboot images" @echo " clean-docker - Remove docker coreboot containers & images" @@ -186,6 +205,8 @@ @echo " <USER=root or USER=coreboot>" @echo " docker-jenkins-server - Run coreboot-jenkins-node image (for server)" @echo " docker-jenkins-attach - Open shell in running jenkins server" + @echo " docker-build-docs - Build the documentation" + @echo " docker-livehtml-docs - Run sphinx-autobuild" @echo @echo "Variables:" @echo " COREBOOT_JENKINS_PORT=$(COREBOOT_JENKINS_PORT)" @@ -197,7 +218,9 @@ .PHONY: test-docker test-docker-login .PHONY: coreboot-jenkins-node upload-coreboot-jenkins-node .PHONY: coreboot-sdk upload-coreboot-sdk +.PHONY: doc.coreboot.org .PHONY: clean-coreboot-containers clean-coreboot-images .PHONY: docker-abuild .PHONY: docker-what-jenkins-does docker-shell docker-jenkins-server docker-jenkins-attach +.PHONY: docker-build-docs docker-livehtml-docs .PHONY: help