github.com/guilhermebr/docker@v1.4.2-0.20150428121140-67da055cebca/docs/Dockerfile (about)

     1  #
     2  # See the top level Makefile in https://github.com/docker/docker for usage.
     3  #
     4  FROM docs/base:latest
     5  MAINTAINER Sven Dowideit <SvenDowideit@docker.com> (@SvenDowideit)
     6  
     7  # This section ensures we pull the correct version of each
     8  # sub project
     9  ENV COMPOSE_BRANCH release
    10  ENV SWARM_BRANCH v0.2.0
    11  ENV MACHINE_BRANCH master
    12  ENV DISTRIB_BRANCH release/2.0
    13  
    14  
    15  # TODO: need the full repo source to get the git version info
    16  COPY . /src
    17  
    18  # Reset the /docs dir so we can replace the theme meta with the new repo's git info
    19  # RUN git reset --hard
    20  
    21  # Then copy the desired docs into the /docs/sources/ dir
    22  COPY ./sources/ /docs/sources
    23  
    24  COPY ./VERSION VERSION
    25  
    26  # adding the image spec will require Docker 1.5 and `docker build -f docs/Dockerfile .`
    27  #COPY ./image/spec/v1.md /docs/sources/reference/image-spec-v1.md
    28  
    29  # TODO: don't do this - look at merging the yml file in build.sh
    30  COPY ./mkdocs.yml ./s3_website.json ./release.sh ./
    31  
    32  #######################
    33  # Docker Distribution
    34  ########################
    35  
    36  #ADD https://raw.githubusercontent.com/docker/distribution/${DISTRIB_BRANCH}/docs/mkdocs.yml /docs/mkdocs-distribution.yml
    37  
    38  ADD https://raw.githubusercontent.com/docker/distribution/${DISTRIB_BRANCH}/docs/images/notifications.png \
    39      https://raw.githubusercontent.com/docker/distribution/${DISTRIB_BRANCH}/docs/images/registry.png \
    40    /docs/sources/registry/images/
    41  
    42  ADD https://raw.githubusercontent.com/docker/distribution/${DISTRIB_BRANCH}/docs/index.md \
    43      https://raw.githubusercontent.com/docker/distribution/${DISTRIB_BRANCH}/docs/deploying.md \
    44      https://raw.githubusercontent.com/docker/distribution/${DISTRIB_BRANCH}/docs/configuration.md \
    45      https://raw.githubusercontent.com/docker/distribution/${DISTRIB_BRANCH}/docs/storagedrivers.md \
    46      https://raw.githubusercontent.com/docker/distribution/${DISTRIB_BRANCH}/docs/notifications.md \
    47    /docs/sources/registry/
    48  
    49  ADD https://raw.githubusercontent.com/docker/distribution/${DISTRIB_BRANCH}/docs/spec/api.md \
    50      https://raw.githubusercontent.com/docker/distribution/${DISTRIB_BRANCH}/docs/spec/json.md \
    51    /docs/sources/registry/spec/
    52    
    53  ADD https://raw.githubusercontent.com/docker/distribution/${DISTRIB_BRANCH}/docs/storage-drivers/s3.md \
    54      https://raw.githubusercontent.com/docker/distribution/${DISTRIB_BRANCH}/docs/storage-drivers/azure.md \
    55      https://raw.githubusercontent.com/docker/distribution/${DISTRIB_BRANCH}/docs/storage-drivers/filesystem.md \
    56      https://raw.githubusercontent.com/docker/distribution/${DISTRIB_BRANCH}/docs/storage-drivers/inmemory.md \
    57    /docs/sources/registry/storage-drivers/
    58  
    59  ADD https://raw.githubusercontent.com/docker/distribution/${DISTRIB_BRANCH}/docs/spec/auth/token.md /docs/sources/registry/spec/auth/token.md
    60  
    61  RUN sed -i.old '1s;^;no_version_dropdown: true;' \
    62    /docs/sources/registry/*.md \
    63    /docs/sources/registry/spec/*.md \
    64    /docs/sources/registry/spec/auth/*.md
    65  
    66  #######################
    67  # Docker Swarm
    68  #######################
    69  
    70  #ADD https://raw.githubusercontent.com/docker/swarm/${SWARM_BRANCH}/docs/mkdocs.yml /docs/mkdocs-swarm.yml
    71  ADD https://raw.githubusercontent.com/docker/swarm/${SWARM_BRANCH}/docs/index.md /docs/sources/swarm/index.md
    72  
    73  ADD https://raw.githubusercontent.com/docker/swarm/${SWARM_BRANCH}/discovery/README.md /docs/sources/swarm/discovery.md
    74  
    75  ADD https://raw.githubusercontent.com/docker/swarm/${SWARM_BRANCH}/api/README.md /docs/sources/swarm/API.md
    76  
    77  ADD https://raw.githubusercontent.com/docker/swarm/${SWARM_BRANCH}/scheduler/filter/README.md /docs/sources/swarm/scheduler/filter.md
    78  
    79  ADD https://raw.githubusercontent.com/docker/swarm/${SWARM_BRANCH}/scheduler/strategy/README.md /docs/sources/swarm/scheduler/strategy.md
    80  
    81  RUN sed -i.old '1s;^;no_version_dropdown: true;' /docs/sources/swarm/*.md /docs/sources/swarm/scheduler/*.md
    82  
    83  #######################
    84  # Docker Machine
    85  #######################
    86  #ADD https://raw.githubusercontent.com/docker/machine/${MACHINE_BRANCH}/docs/mkdocs.yml /docs/mkdocs-machine.yml
    87  
    88  ADD https://raw.githubusercontent.com/docker/machine/${MACHINE_BRANCH}/docs/index.md /docs/sources/machine/index.md
    89  RUN sed -i.old '1s;^;no_version_dropdown: true;' /docs/sources/machine/index.md
    90  
    91  #######################
    92  # Docker Compose
    93  #######################
    94  
    95  #ADD https://raw.githubusercontent.com/docker/compose/${COMPOSE_BRANCH}/docs/mkdocs.yml /docs/mkdocs-compose.yml
    96  
    97  ADD https://raw.githubusercontent.com/docker/compose/${COMPOSE_BRANCH}/docs/index.md \
    98    https://raw.githubusercontent.com/docker/compose/${COMPOSE_BRANCH}/docs/install.md \
    99    https://raw.githubusercontent.com/docker/compose/${COMPOSE_BRANCH}/docs/cli.md \
   100    https://raw.githubusercontent.com/docker/compose/${COMPOSE_BRANCH}/docs/yml.md \
   101    https://raw.githubusercontent.com/docker/compose/${COMPOSE_BRANCH}/docs/env.md \
   102    https://raw.githubusercontent.com/docker/compose/${COMPOSE_BRANCH}/docs/completion.md \
   103    https://raw.githubusercontent.com/docker/compose/${COMPOSE_BRANCH}/docs/django.md \
   104    https://raw.githubusercontent.com/docker/compose/${COMPOSE_BRANCH}/docs/rails.md \
   105    https://raw.githubusercontent.com/docker/compose/${COMPOSE_BRANCH}/docs/wordpress.md \
   106    https://raw.githubusercontent.com/docker/compose/${COMPOSE_BRANCH}/docs/extends.md \
   107    https://raw.githubusercontent.com/docker/compose/${COMPOSE_BRANCH}/docs/production.md \
   108    /docs/sources/compose/
   109  
   110  RUN sed -i.old '1s;^;no_version_dropdown: true;' /docs/sources/compose/*.md
   111  
   112  # Then build everything together, ready for mkdocs
   113  RUN /docs/build.sh