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