github.com/squaremo/docker@v1.3.2-0.20150516120342-42cfc9554972/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 docs
    12  ENV DISTRIB_BRANCH docs
    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    /docs/sources/registry/storage-drivers/*.md 
    66  
    67  RUN sed -i.old  -e '/^<!--GITHUB/g' -e '/^IGNORES-->/g'\
    68    /docs/sources/registry/*.md \
    69    /docs/sources/registry/spec/*.md \
    70    /docs/sources/registry/spec/auth/*.md \
    71    /docs/sources/registry/storage-drivers/*.md 
    72  
    73  #######################
    74  # Docker Swarm
    75  #######################
    76  
    77  #ADD https://raw.githubusercontent.com/docker/swarm/${SWARM_BRANCH}/docs/mkdocs.yml /docs/mkdocs-swarm.yml
    78  ADD https://raw.githubusercontent.com/docker/swarm/${SWARM_BRANCH}/docs/index.md /docs/sources/swarm/index.md
    79  
    80  ADD https://raw.githubusercontent.com/docker/swarm/${SWARM_BRANCH}/discovery/README.md /docs/sources/swarm/discovery.md
    81  
    82  ADD https://raw.githubusercontent.com/docker/swarm/${SWARM_BRANCH}/api/README.md /docs/sources/swarm/API.md
    83  
    84  ADD https://raw.githubusercontent.com/docker/swarm/${SWARM_BRANCH}/scheduler/filter/README.md /docs/sources/swarm/scheduler/filter.md
    85  
    86  ADD https://raw.githubusercontent.com/docker/swarm/${SWARM_BRANCH}/scheduler/strategy/README.md /docs/sources/swarm/scheduler/strategy.md
    87  
    88  RUN sed -i.old '1s;^;no_version_dropdown: true;' /docs/sources/swarm/*.md /docs/sources/swarm/scheduler/*.md
    89  
    90  #######################
    91  # Docker Machine
    92  #######################
    93  #ADD https://raw.githubusercontent.com/docker/machine/${MACHINE_BRANCH}/docs/mkdocs.yml /docs/mkdocs-machine.yml
    94  
    95  ADD https://raw.githubusercontent.com/docker/machine/${MACHINE_BRANCH}/docs/index.md /docs/sources/machine/index.md
    96  RUN sed -i.old '1s;^;no_version_dropdown: true;' /docs/sources/machine/index.md
    97  
    98  #######################
    99  # Docker Compose
   100  #######################
   101  
   102  #ADD https://raw.githubusercontent.com/docker/compose/${COMPOSE_BRANCH}/docs/mkdocs.yml /docs/mkdocs-compose.yml
   103  
   104  ADD https://raw.githubusercontent.com/docker/compose/${COMPOSE_BRANCH}/docs/index.md \
   105    https://raw.githubusercontent.com/docker/compose/${COMPOSE_BRANCH}/docs/install.md \
   106    https://raw.githubusercontent.com/docker/compose/${COMPOSE_BRANCH}/docs/cli.md \
   107    https://raw.githubusercontent.com/docker/compose/${COMPOSE_BRANCH}/docs/yml.md \
   108    https://raw.githubusercontent.com/docker/compose/${COMPOSE_BRANCH}/docs/env.md \
   109    https://raw.githubusercontent.com/docker/compose/${COMPOSE_BRANCH}/docs/completion.md \
   110    https://raw.githubusercontent.com/docker/compose/${COMPOSE_BRANCH}/docs/django.md \
   111    https://raw.githubusercontent.com/docker/compose/${COMPOSE_BRANCH}/docs/rails.md \
   112    https://raw.githubusercontent.com/docker/compose/${COMPOSE_BRANCH}/docs/wordpress.md \
   113    https://raw.githubusercontent.com/docker/compose/${COMPOSE_BRANCH}/docs/extends.md \
   114    https://raw.githubusercontent.com/docker/compose/${COMPOSE_BRANCH}/docs/production.md \
   115    /docs/sources/compose/
   116  
   117  RUN sed -i.old '1s;^;no_version_dropdown: true;' /docs/sources/compose/*.md
   118  
   119  # Then build everything together, ready for mkdocs
   120  RUN /docs/build.sh