Merge pull request #12915 from moxiegirl/implement-github-ignores

Adding support for GITHUB IGNORES to the engine Dockerfile
This commit is contained in:
moxiegirl 2015-05-01 06:29:27 -07:00
commit 7e864a57bc
1 changed files with 9 additions and 2 deletions

View File

@ -9,7 +9,7 @@ MAINTAINER Sven Dowideit <SvenDowideit@docker.com> (@SvenDowideit)
ENV COMPOSE_BRANCH release ENV COMPOSE_BRANCH release
ENV SWARM_BRANCH v0.2.0 ENV SWARM_BRANCH v0.2.0
ENV MACHINE_BRANCH master 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 # 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;' \ RUN sed -i.old '1s;^;no_version_dropdown: true;' \
/docs/sources/registry/*.md \ /docs/sources/registry/*.md \
/docs/sources/registry/spec/*.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 # Docker Swarm