2013-10-29 00:39:44 +00:00
|
|
|
#
|
2014-07-24 22:19:50 +00:00
|
|
|
# See the top level Makefile in https://github.com/docker/docker for usage.
|
2013-10-29 00:39:44 +00:00
|
|
|
#
|
2015-02-17 04:05:38 +00:00
|
|
|
FROM docs/base:latest
|
2014-10-22 22:14:02 +00:00
|
|
|
MAINTAINER Sven Dowideit <SvenDowideit@docker.com> (@SvenDowideit)
|
|
|
|
|
2015-02-18 04:20:46 +00:00
|
|
|
# TODO: need the full repo source to get the git version info
|
|
|
|
COPY . /src
|
|
|
|
|
|
|
|
# Reset the /docs dir so we can replace the theme meta with the new repo's git info
|
2015-04-01 19:20:59 +00:00
|
|
|
# RUN git reset --hard
|
2015-02-18 04:20:46 +00:00
|
|
|
|
|
|
|
# Then copy the desired docs into the /docs/sources/ dir
|
2015-02-25 00:37:36 +00:00
|
|
|
COPY ./sources/ /docs/sources
|
2015-02-18 04:20:46 +00:00
|
|
|
|
|
|
|
COPY ./VERSION VERSION
|
|
|
|
|
2015-02-25 00:37:36 +00:00
|
|
|
# adding the image spec will require Docker 1.5 and `docker build -f docs/Dockerfile .`
|
|
|
|
#COPY ./image/spec/v1.md /docs/sources/reference/image-spec-v1.md
|
|
|
|
|
2015-02-18 04:20:46 +00:00
|
|
|
# TODO: don't do this - look at merging the yml file in build.sh
|
2015-02-25 00:37:36 +00:00
|
|
|
COPY ./mkdocs.yml mkdocs.yml
|
|
|
|
COPY ./s3_website.json s3_website.json
|
2015-03-11 17:08:51 +00:00
|
|
|
COPY ./release.sh release.sh
|
2015-02-18 04:20:46 +00:00
|
|
|
|
2015-04-01 19:20:59 +00:00
|
|
|
|
|
|
|
# Docker Distribution
|
|
|
|
#ADD https://raw.githubusercontent.com/moxiegirl/distribution/doc-tooling-changes/docs/mkdocs.yml /docs/mkdocs-distribution.yml
|
|
|
|
|
|
|
|
ADD https://raw.githubusercontent.com/moxiegirl/distribution/doc-tooling-changes/docs/overview.md /docs/sources/distribution/overview.md
|
|
|
|
RUN sed -i.old '1s;^;no_version_dropdown: true;' /docs/sources/distribution/overview.md
|
|
|
|
|
|
|
|
ADD https://raw.githubusercontent.com/moxiegirl/distribution/doc-tooling-changes/docs/install.md /docs/sources/distribution/install.md
|
|
|
|
RUN sed -i.old '1s;^;no_version_dropdown: true;' /docs/sources/distribution/install.md
|
|
|
|
|
|
|
|
ADD https://raw.githubusercontent.com/moxiegirl/distribution/doc-tooling-changes/docs/architecture.md /docs/sources/distribution/architecture.md
|
|
|
|
RUN sed -i.old '1s;^;no_version_dropdown: true;' /docs/sources/distribution/architecture.md
|
|
|
|
|
|
|
|
|
2015-02-18 04:20:46 +00:00
|
|
|
# Docker Swarm
|
2015-02-25 12:35:08 +00:00
|
|
|
#ADD https://raw.githubusercontent.com/docker/swarm/master/docs/mkdocs.yml /docs/mkdocs-swarm.yml
|
2015-02-18 04:20:46 +00:00
|
|
|
ADD https://raw.githubusercontent.com/docker/swarm/master/docs/index.md /docs/sources/swarm/index.md
|
2015-02-25 12:46:55 +00:00
|
|
|
RUN sed -i.old '1s;^;no_version_dropdown: true;' /docs/sources/swarm/index.md
|
2015-02-18 04:20:46 +00:00
|
|
|
ADD https://raw.githubusercontent.com/docker/swarm/master/discovery/README.md /docs/sources/swarm/discovery.md
|
2015-02-25 12:46:55 +00:00
|
|
|
RUN sed -i.old '1s;^;no_version_dropdown: true;' /docs/sources/swarm/discovery.md
|
2015-02-18 04:20:46 +00:00
|
|
|
ADD https://raw.githubusercontent.com/docker/swarm/master/api/README.md /docs/sources/swarm/API.md
|
2015-02-25 12:46:55 +00:00
|
|
|
RUN sed -i.old '1s;^;no_version_dropdown: true;' /docs/sources/swarm/API.md
|
2015-02-18 04:20:46 +00:00
|
|
|
ADD https://raw.githubusercontent.com/docker/swarm/master/scheduler/filter/README.md /docs/sources/swarm/scheduler/filter.md
|
2015-02-25 12:46:55 +00:00
|
|
|
RUN sed -i.old '1s;^;no_version_dropdown: true;' /docs/sources/swarm/scheduler/filter.md
|
2015-02-18 04:20:46 +00:00
|
|
|
ADD https://raw.githubusercontent.com/docker/swarm/master/scheduler/strategy/README.md /docs/sources/swarm/scheduler/strategy.md
|
2015-02-25 12:46:55 +00:00
|
|
|
RUN sed -i.old '1s;^;no_version_dropdown: true;' /docs/sources/swarm/scheduler/strategy.md
|
2015-02-18 04:20:46 +00:00
|
|
|
|
|
|
|
# Docker Machine
|
2015-02-25 12:35:08 +00:00
|
|
|
#ADD https://raw.githubusercontent.com/docker/machine/master/docs/mkdocs.yml /docs/mkdocs-machine.yml
|
2015-02-18 04:20:46 +00:00
|
|
|
ADD https://raw.githubusercontent.com/docker/machine/master/docs/index.md /docs/sources/machine/index.md
|
2015-02-25 12:46:55 +00:00
|
|
|
RUN sed -i.old '1s;^;no_version_dropdown: true;' /docs/sources/machine/index.md
|
2015-02-18 04:20:46 +00:00
|
|
|
|
|
|
|
# Docker Compose
|
2015-02-26 17:25:57 +00:00
|
|
|
#ADD https://raw.githubusercontent.com/docker/compose/master/docs/mkdocs.yml /docs/mkdocs-compose.yml
|
|
|
|
ADD https://raw.githubusercontent.com/docker/compose/master/docs/index.md /docs/sources/compose/index.md
|
2015-02-25 12:46:55 +00:00
|
|
|
RUN sed -i.old '1s;^;no_version_dropdown: true;' /docs/sources/compose/index.md
|
2015-02-26 17:25:57 +00:00
|
|
|
ADD https://raw.githubusercontent.com/docker/compose/master/docs/install.md /docs/sources/compose/install.md
|
2015-02-25 12:46:55 +00:00
|
|
|
RUN sed -i.old '1s;^;no_version_dropdown: true;' /docs/sources/compose/install.md
|
2015-02-26 17:25:57 +00:00
|
|
|
ADD https://raw.githubusercontent.com/docker/compose/master/docs/cli.md /docs/sources/compose/cli.md
|
2015-02-25 12:46:55 +00:00
|
|
|
RUN sed -i.old '1s;^;no_version_dropdown: true;' /docs/sources/compose/cli.md
|
2015-02-26 17:25:57 +00:00
|
|
|
ADD https://raw.githubusercontent.com/docker/compose/master/docs/yml.md /docs/sources/compose/yml.md
|
2015-02-25 12:46:55 +00:00
|
|
|
RUN sed -i.old '1s;^;no_version_dropdown: true;' /docs/sources/compose/yml.md
|
2015-02-26 17:25:57 +00:00
|
|
|
ADD https://raw.githubusercontent.com/docker/compose/master/docs/env.md /docs/sources/compose/env.md
|
2015-02-26 15:10:50 +00:00
|
|
|
RUN sed -i.old '1s;^;no_version_dropdown: true;' /docs/sources/compose/env.md
|
2015-02-26 17:25:57 +00:00
|
|
|
ADD https://raw.githubusercontent.com/docker/compose/master/docs/completion.md /docs/sources/compose/completion.md
|
2015-02-26 15:10:50 +00:00
|
|
|
RUN sed -i.old '1s;^;no_version_dropdown: true;' /docs/sources/compose/completion.md
|
2015-02-18 04:20:46 +00:00
|
|
|
|
2015-02-26 17:25:57 +00:00
|
|
|
ADD https://raw.githubusercontent.com/docker/compose/master/docs/django.md /docs/sources/compose/django.md
|
2015-02-25 23:46:55 +00:00
|
|
|
RUN sed -i.old '1s;^;no_version_dropdown: true;' /docs/sources/compose/django.md
|
2015-02-26 17:25:57 +00:00
|
|
|
ADD https://raw.githubusercontent.com/docker/compose/master/docs/rails.md /docs/sources/compose/rails.md
|
2015-02-25 23:46:55 +00:00
|
|
|
RUN sed -i.old '1s;^;no_version_dropdown: true;' /docs/sources/compose/rails.md
|
2015-02-26 17:25:57 +00:00
|
|
|
ADD https://raw.githubusercontent.com/docker/compose/master/docs/wordpress.md /docs/sources/compose/wordpress.md
|
2015-02-25 23:46:55 +00:00
|
|
|
RUN sed -i.old '1s;^;no_version_dropdown: true;' /docs/sources/compose/wordpress.md
|
|
|
|
|
2015-02-18 04:20:46 +00:00
|
|
|
# Then build everything together, ready for mkdocs
|
|
|
|
RUN /docs/build.sh
|