Browse Source

Adding support for GITHUB IGNORES to the engine Dockerfile

Signed-off-by: Mary Anthony <mary@docker.com>
Mary Anthony 10 years ago
parent
commit
51977a2307
1 changed files with 9 additions and 2 deletions
  1. 9 2
      docs/Dockerfile

+ 9 - 2
docs/Dockerfile

@@ -9,7 +9,7 @@ MAINTAINER Sven Dowideit <SvenDowideit@docker.com> (@SvenDowideit)
 ENV COMPOSE_BRANCH release
 ENV SWARM_BRANCH v0.2.0
 ENV MACHINE_BRANCH master
-ENV DISTRIB_BRANCH release/2.0
+ENV DISTRIB_BRANCH docs
 
 
 # TODO: need the full repo source to get the git version info
@@ -61,7 +61,14 @@ ADD https://raw.githubusercontent.com/docker/distribution/${DISTRIB_BRANCH}/docs
 RUN sed -i.old '1s;^;no_version_dropdown: true;' \
   /docs/sources/registry/*.md \
   /docs/sources/registry/spec/*.md \
-  /docs/sources/registry/spec/auth/*.md
+  /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 
 
 #######################
 # Docker Swarm