Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
| ... | ... |
@@ -1,8 +1,8 @@ |
| 1 | 1 |
FROM docs/base:oss |
| 2 |
-MAINTAINER Mary Anthony <mary@docker.com> (@moxiegirl) |
|
| 2 |
+MAINTAINER Docker Docs <docs@docker.com> |
|
| 3 | 3 |
|
| 4 | 4 |
ENV PROJECT=engine |
| 5 | 5 |
# To get the git info for this repo |
| 6 | 6 |
COPY . /src |
| 7 |
-RUN rm -r /docs/content/$PROJECT/ |
|
| 7 |
+RUN rm -rf /docs/content/$PROJECT/ |
|
| 8 | 8 |
COPY . /docs/content/$PROJECT/ |
| ... | ... |
@@ -1,15 +1,4 @@ |
| 1 |
-.PHONY: all binary build cross default docs docs-build docs-shell shell test test-unit test-integration test-integration-cli test-docker-py validate |
|
| 2 |
- |
|
| 3 |
-# env vars passed through directly to Docker's build scripts |
|
| 4 |
-# to allow things like `make BUILDFLAGS=... binary` easily |
|
| 5 |
-# `docs/sources/contributing/devenvironment.md ` and `project/PACKAGERS.md` have some limited documentation of some of these |
|
| 6 |
-DOCKER_ENVS := \ |
|
| 7 |
- -e BUILDFLAGS \ |
|
| 8 |
- -e DOCKER_GRAPHDRIVER \ |
|
| 9 |
- -e TESTDIRS \ |
|
| 10 |
- -e TESTFLAGS \ |
|
| 11 |
- -e TIMEOUT |
|
| 12 |
-# note: we _cannot_ add "-e DOCKER_BUILDTAGS" here because even if it's unset in the shell, that would shadow the "ENV DOCKER_BUILDTAGS" set in our Dockerfile, which is very important for our official builds |
|
| 1 |
+.PHONY: default docs docs-build docs-shell test |
|
| 13 | 2 |
|
| 14 | 3 |
# to allow `make DOCSDIR=docs docs-shell` (to create a bind mount in docs) |
| 15 | 4 |
DOCS_MOUNT := $(if $(DOCSDIR),-v $(CURDIR)/$(DOCSDIR):/$(DOCSDIR)) |
| ... | ... |
@@ -43,10 +32,8 @@ docs-draft: docs-build |
| 43 | 43 |
docs-shell: docs-build |
| 44 | 44 |
$(DOCKER_RUN_DOCS) -p $(if $(DOCSPORT),$(DOCSPORT):)8000 "$(DOCKER_DOCS_IMAGE)" bash |
| 45 | 45 |
|
| 46 |
+test: docs-build |
|
| 47 |
+ $(DOCKER_RUN_DOCS) "$(DOCKER_DOCS_IMAGE)" |
|
| 46 | 48 |
|
| 47 | 49 |
docs-build: |
| 48 |
-# ( git remote | grep -v upstream ) || git diff --name-status upstream/release..upstream/docs ./ > ./changed-files |
|
| 49 |
-# echo "$(GIT_BRANCH)" > GIT_BRANCH |
|
| 50 |
-# echo "$(AWS_S3_BUCKET)" > AWS_S3_BUCKET |
|
| 51 |
-# echo "$(GITCOMMIT)" > GITCOMMIT |
|
| 52 | 50 |
docker build -t "$(DOCKER_DOCS_IMAGE)" . |