2013-10-28 20:39:44 -04:00
|
|
|
#
|
2014-07-24 18:19:50 -04:00
|
|
|
# See the top level Makefile in https://github.com/docker/docker for usage.
|
2013-10-28 20:39:44 -04:00
|
|
|
#
|
2015-02-16 23:05:38 -05:00
|
|
|
FROM docs/base:latest
|
2014-10-22 18:14:02 -04:00
|
|
|
MAINTAINER Sven Dowideit <SvenDowideit@docker.com> (@SvenDowideit)
|
|
|
|
|
2015-04-08 12:55:58 -04:00
|
|
|
# This section ensures we pull the correct version of each
|
|
|
|
# sub project
|
2015-04-17 15:53:30 -04:00
|
|
|
ENV COMPOSE_BRANCH release
|
2015-04-16 14:33:49 -04:00
|
|
|
ENV SWARM_BRANCH v0.2.0
|
2015-05-05 17:33:31 -04:00
|
|
|
ENV MACHINE_BRANCH docs
|
2015-04-30 18:21:05 -04:00
|
|
|
ENV DISTRIB_BRANCH docs
|
2015-05-19 01:10:06 -04:00
|
|
|
ENV KITEMATIC_BRANCH master
|
2015-04-08 12:55:58 -04:00
|
|
|
|
|
|
|
|
2015-02-17 23:20:46 -05: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 15:20:59 -04:00
|
|
|
# RUN git reset --hard
|
2015-02-17 23:20:46 -05:00
|
|
|
|
|
|
|
# Then copy the desired docs into the /docs/sources/ dir
|
2015-02-24 19:37:36 -05:00
|
|
|
COPY ./sources/ /docs/sources
|
2015-02-17 23:20:46 -05:00
|
|
|
|
|
|
|
COPY ./VERSION VERSION
|
|
|
|
|
2015-02-24 19:37:36 -05: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-17 23:20:46 -05:00
|
|
|
# TODO: don't do this - look at merging the yml file in build.sh
|
2015-04-18 06:59:20 -04:00
|
|
|
COPY ./mkdocs.yml ./s3_website.json ./release.sh ./
|
2015-04-01 15:20:59 -04:00
|
|
|
|
2015-04-17 15:53:30 -04:00
|
|
|
#######################
|
2015-04-01 15:20:59 -04:00
|
|
|
# Docker Distribution
|
2015-04-17 15:53:30 -04:00
|
|
|
########################
|
|
|
|
|
2015-04-08 12:55:58 -04:00
|
|
|
#ADD https://raw.githubusercontent.com/docker/distribution/${DISTRIB_BRANCH}/docs/mkdocs.yml /docs/mkdocs-distribution.yml
|
2015-04-01 15:20:59 -04:00
|
|
|
|
2015-04-18 06:59:20 -04:00
|
|
|
ADD https://raw.githubusercontent.com/docker/distribution/${DISTRIB_BRANCH}/docs/images/notifications.png \
|
|
|
|
https://raw.githubusercontent.com/docker/distribution/${DISTRIB_BRANCH}/docs/images/registry.png \
|
|
|
|
/docs/sources/registry/images/
|
2015-04-15 22:02:01 -04:00
|
|
|
|
2015-04-18 20:42:24 -04:00
|
|
|
ADD https://raw.githubusercontent.com/docker/distribution/${DISTRIB_BRANCH}/docs/index.md \
|
2015-04-18 06:59:20 -04:00
|
|
|
https://raw.githubusercontent.com/docker/distribution/${DISTRIB_BRANCH}/docs/deploying.md \
|
|
|
|
https://raw.githubusercontent.com/docker/distribution/${DISTRIB_BRANCH}/docs/configuration.md \
|
|
|
|
https://raw.githubusercontent.com/docker/distribution/${DISTRIB_BRANCH}/docs/storagedrivers.md \
|
|
|
|
https://raw.githubusercontent.com/docker/distribution/${DISTRIB_BRANCH}/docs/notifications.md \
|
|
|
|
/docs/sources/registry/
|
2015-04-15 22:02:01 -04:00
|
|
|
|
2015-04-18 06:59:20 -04:00
|
|
|
ADD https://raw.githubusercontent.com/docker/distribution/${DISTRIB_BRANCH}/docs/spec/api.md \
|
|
|
|
https://raw.githubusercontent.com/docker/distribution/${DISTRIB_BRANCH}/docs/spec/json.md \
|
|
|
|
/docs/sources/registry/spec/
|
2015-04-21 21:36:37 -04:00
|
|
|
|
|
|
|
ADD https://raw.githubusercontent.com/docker/distribution/${DISTRIB_BRANCH}/docs/storage-drivers/s3.md \
|
|
|
|
https://raw.githubusercontent.com/docker/distribution/${DISTRIB_BRANCH}/docs/storage-drivers/azure.md \
|
|
|
|
https://raw.githubusercontent.com/docker/distribution/${DISTRIB_BRANCH}/docs/storage-drivers/filesystem.md \
|
|
|
|
https://raw.githubusercontent.com/docker/distribution/${DISTRIB_BRANCH}/docs/storage-drivers/inmemory.md \
|
|
|
|
/docs/sources/registry/storage-drivers/
|
2015-04-15 22:02:01 -04:00
|
|
|
|
|
|
|
ADD https://raw.githubusercontent.com/docker/distribution/${DISTRIB_BRANCH}/docs/spec/auth/token.md /docs/sources/registry/spec/auth/token.md
|
2015-04-18 06:59:20 -04:00
|
|
|
|
|
|
|
RUN sed -i.old '1s;^;no_version_dropdown: true;' \
|
|
|
|
/docs/sources/registry/*.md \
|
|
|
|
/docs/sources/registry/spec/*.md \
|
2015-04-30 18:21:05 -04:00
|
|
|
/docs/sources/registry/spec/auth/*.md \
|
|
|
|
/docs/sources/registry/storage-drivers/*.md
|
|
|
|
|
|
|
|
RUN sed -i.old -e '/^<!--GITHUB/g' -e '/^IGNORES-->/g'\
|
|
|
|
/docs/sources/registry/*.md \
|
|
|
|
/docs/sources/registry/spec/*.md \
|
|
|
|
/docs/sources/registry/spec/auth/*.md \
|
|
|
|
/docs/sources/registry/storage-drivers/*.md
|
2015-04-01 15:20:59 -04:00
|
|
|
|
2015-04-17 15:53:30 -04:00
|
|
|
#######################
|
2015-02-17 23:20:46 -05:00
|
|
|
# Docker Swarm
|
2015-04-17 15:53:30 -04:00
|
|
|
#######################
|
|
|
|
|
2015-04-08 12:55:58 -04:00
|
|
|
#ADD https://raw.githubusercontent.com/docker/swarm/${SWARM_BRANCH}/docs/mkdocs.yml /docs/mkdocs-swarm.yml
|
|
|
|
ADD https://raw.githubusercontent.com/docker/swarm/${SWARM_BRANCH}/docs/index.md /docs/sources/swarm/index.md
|
2015-04-17 15:53:30 -04:00
|
|
|
|
2015-04-08 12:55:58 -04:00
|
|
|
ADD https://raw.githubusercontent.com/docker/swarm/${SWARM_BRANCH}/discovery/README.md /docs/sources/swarm/discovery.md
|
2015-04-17 15:53:30 -04:00
|
|
|
|
2015-04-08 12:55:58 -04:00
|
|
|
ADD https://raw.githubusercontent.com/docker/swarm/${SWARM_BRANCH}/api/README.md /docs/sources/swarm/API.md
|
2015-04-17 15:53:30 -04:00
|
|
|
|
2015-04-08 12:55:58 -04:00
|
|
|
ADD https://raw.githubusercontent.com/docker/swarm/${SWARM_BRANCH}/scheduler/filter/README.md /docs/sources/swarm/scheduler/filter.md
|
2015-04-17 15:53:30 -04:00
|
|
|
|
2015-04-08 12:55:58 -04:00
|
|
|
ADD https://raw.githubusercontent.com/docker/swarm/${SWARM_BRANCH}/scheduler/strategy/README.md /docs/sources/swarm/scheduler/strategy.md
|
2015-04-18 06:59:20 -04:00
|
|
|
|
|
|
|
RUN sed -i.old '1s;^;no_version_dropdown: true;' /docs/sources/swarm/*.md /docs/sources/swarm/scheduler/*.md
|
2015-02-17 23:20:46 -05:00
|
|
|
|
2015-04-17 15:53:30 -04:00
|
|
|
#######################
|
2015-02-17 23:20:46 -05:00
|
|
|
# Docker Machine
|
2015-04-17 15:53:30 -04:00
|
|
|
#######################
|
2015-04-08 12:55:58 -04:00
|
|
|
#ADD https://raw.githubusercontent.com/docker/machine/${MACHINE_BRANCH}/docs/mkdocs.yml /docs/mkdocs-machine.yml
|
2015-04-17 15:53:30 -04:00
|
|
|
|
2015-04-08 12:55:58 -04:00
|
|
|
ADD https://raw.githubusercontent.com/docker/machine/${MACHINE_BRANCH}/docs/index.md /docs/sources/machine/index.md
|
2015-02-25 07:46:55 -05:00
|
|
|
RUN sed -i.old '1s;^;no_version_dropdown: true;' /docs/sources/machine/index.md
|
2015-02-17 23:20:46 -05:00
|
|
|
|
2015-04-17 15:53:30 -04:00
|
|
|
#######################
|
2015-02-17 23:20:46 -05:00
|
|
|
# Docker Compose
|
2015-04-17 15:53:30 -04:00
|
|
|
#######################
|
|
|
|
|
2015-04-08 12:55:58 -04:00
|
|
|
#ADD https://raw.githubusercontent.com/docker/compose/${COMPOSE_BRANCH}/docs/mkdocs.yml /docs/mkdocs-compose.yml
|
2015-04-17 15:53:30 -04:00
|
|
|
|
2015-04-18 06:59:20 -04:00
|
|
|
ADD https://raw.githubusercontent.com/docker/compose/${COMPOSE_BRANCH}/docs/index.md \
|
|
|
|
https://raw.githubusercontent.com/docker/compose/${COMPOSE_BRANCH}/docs/install.md \
|
|
|
|
https://raw.githubusercontent.com/docker/compose/${COMPOSE_BRANCH}/docs/cli.md \
|
|
|
|
https://raw.githubusercontent.com/docker/compose/${COMPOSE_BRANCH}/docs/yml.md \
|
|
|
|
https://raw.githubusercontent.com/docker/compose/${COMPOSE_BRANCH}/docs/env.md \
|
|
|
|
https://raw.githubusercontent.com/docker/compose/${COMPOSE_BRANCH}/docs/completion.md \
|
|
|
|
https://raw.githubusercontent.com/docker/compose/${COMPOSE_BRANCH}/docs/django.md \
|
|
|
|
https://raw.githubusercontent.com/docker/compose/${COMPOSE_BRANCH}/docs/rails.md \
|
|
|
|
https://raw.githubusercontent.com/docker/compose/${COMPOSE_BRANCH}/docs/wordpress.md \
|
|
|
|
https://raw.githubusercontent.com/docker/compose/${COMPOSE_BRANCH}/docs/extends.md \
|
|
|
|
https://raw.githubusercontent.com/docker/compose/${COMPOSE_BRANCH}/docs/production.md \
|
|
|
|
/docs/sources/compose/
|
|
|
|
|
|
|
|
RUN sed -i.old '1s;^;no_version_dropdown: true;' /docs/sources/compose/*.md
|
2015-04-17 15:53:30 -04:00
|
|
|
|
2015-05-19 01:10:06 -04:00
|
|
|
#######################
|
|
|
|
# Kitematic
|
|
|
|
#######################
|
|
|
|
ADD https://raw.githubusercontent.com/kitematic/kitematic/${KITEMATIC_BRANCH}/docs/faq.md \
|
|
|
|
https://raw.githubusercontent.com/kitematic/kitematic/${KITEMATIC_BRANCH}/docs/index.md \
|
|
|
|
https://raw.githubusercontent.com/kitematic/kitematic/${KITEMATIC_BRANCH}/docs/known-issues.md \
|
|
|
|
https://raw.githubusercontent.com/kitematic/kitematic/${KITEMATIC_BRANCH}/docs/minecraft-server.md \
|
|
|
|
https://raw.githubusercontent.com/kitematic/kitematic/${KITEMATIC_BRANCH}/docs/nginx-web-server.md \
|
|
|
|
https://raw.githubusercontent.com/kitematic/kitematic/${KITEMATIC_BRANCH}/docs/rethinkdb-dev-database.md \
|
|
|
|
https://raw.githubusercontent.com/kitematic/kitematic/${KITEMATIC_BRANCH}/docs/userguide.md \
|
|
|
|
/docs/sources/kitematic/
|
|
|
|
RUN sed -i.old '1s;^;no_version_dropdown: true;' /docs/sources/kitematic/*.md
|
|
|
|
ADD https://raw.githubusercontent.com/kitematic/kitematic/${KITEMATIC_BRANCH}/docs/assets/browse-images.png \
|
|
|
|
https://raw.githubusercontent.com/kitematic/kitematic/${KITEMATIC_BRANCH}/docs/assets/change-folder.png \
|
|
|
|
https://raw.githubusercontent.com/kitematic/kitematic/${KITEMATIC_BRANCH}/docs/assets/cli-access-button.png \
|
|
|
|
https://raw.githubusercontent.com/kitematic/kitematic/${KITEMATIC_BRANCH}/docs/assets/cli-redis-container.png \
|
|
|
|
https://raw.githubusercontent.com/kitematic/kitematic/${KITEMATIC_BRANCH}/docs/assets/cli-terminal.png \
|
|
|
|
https://raw.githubusercontent.com/kitematic/kitematic/${KITEMATIC_BRANCH}/docs/assets/containers.png \
|
|
|
|
https://raw.githubusercontent.com/kitematic/kitematic/${KITEMATIC_BRANCH}/docs/assets/installing.png \
|
|
|
|
https://raw.githubusercontent.com/kitematic/kitematic/${KITEMATIC_BRANCH}/docs/assets/minecraft-add-server.png \
|
|
|
|
https://raw.githubusercontent.com/kitematic/kitematic/${KITEMATIC_BRANCH}/docs/assets/minecraft-create.png \
|
|
|
|
https://raw.githubusercontent.com/kitematic/kitematic/${KITEMATIC_BRANCH}/docs/assets/minecraft-data-volume.png \
|
|
|
|
https://raw.githubusercontent.com/kitematic/kitematic/${KITEMATIC_BRANCH}/docs/assets/minecraft-login.png \
|
|
|
|
https://raw.githubusercontent.com/kitematic/kitematic/${KITEMATIC_BRANCH}/docs/assets/minecraft-map.png \
|
|
|
|
https://raw.githubusercontent.com/kitematic/kitematic/${KITEMATIC_BRANCH}/docs/assets/minecraft-port.png \
|
|
|
|
https://raw.githubusercontent.com/kitematic/kitematic/${KITEMATIC_BRANCH}/docs/assets/minecraft-restart.png \
|
|
|
|
https://raw.githubusercontent.com/kitematic/kitematic/${KITEMATIC_BRANCH}/docs/assets/minecraft-server-address.png \
|
|
|
|
https://raw.githubusercontent.com/kitematic/kitematic/${KITEMATIC_BRANCH}/docs/assets/nginx-2048-files.png \
|
|
|
|
https://raw.githubusercontent.com/kitematic/kitematic/${KITEMATIC_BRANCH}/docs/assets/nginx-2048.png \
|
|
|
|
https://raw.githubusercontent.com/kitematic/kitematic/${KITEMATIC_BRANCH}/docs/assets/nginx-create.png \
|
|
|
|
https://raw.githubusercontent.com/kitematic/kitematic/${KITEMATIC_BRANCH}/docs/assets/nginx-data-folder.png \
|
|
|
|
https://raw.githubusercontent.com/kitematic/kitematic/${KITEMATIC_BRANCH}/docs/assets/nginx-data-volume.png \
|
|
|
|
https://raw.githubusercontent.com/kitematic/kitematic/${KITEMATIC_BRANCH}/docs/assets/nginx-hello-world.png \
|
|
|
|
https://raw.githubusercontent.com/kitematic/kitematic/${KITEMATIC_BRANCH}/docs/assets/nginx-preview.png \
|
|
|
|
https://raw.githubusercontent.com/kitematic/kitematic/${KITEMATIC_BRANCH}/docs/assets/nginx-serving-2048.png \
|
|
|
|
https://raw.githubusercontent.com/kitematic/kitematic/${KITEMATIC_BRANCH}/docs/assets/rethink-container.png \
|
|
|
|
https://raw.githubusercontent.com/kitematic/kitematic/${KITEMATIC_BRANCH}/docs/assets/rethink-create.png \
|
|
|
|
https://raw.githubusercontent.com/kitematic/kitematic/${KITEMATIC_BRANCH}/docs/assets/rethink-ports.png \
|
|
|
|
https://raw.githubusercontent.com/kitematic/kitematic/${KITEMATIC_BRANCH}/docs/assets/rethinkdb-preview.png \
|
|
|
|
https://raw.githubusercontent.com/kitematic/kitematic/${KITEMATIC_BRANCH}/docs/assets/volumes-dir.png \
|
|
|
|
/docs/sources/kitematic/assets/
|
|
|
|
|
2015-02-17 23:20:46 -05:00
|
|
|
# Then build everything together, ready for mkdocs
|
2015-04-18 06:59:20 -04:00
|
|
|
RUN /docs/build.sh
|