Skip to content

Commit

Permalink
Pull distribution reference docs from upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
Misty Stanley-Jones committed Nov 28, 2016
1 parent f9897d3 commit 554b2c9
Show file tree
Hide file tree
Showing 15 changed files with 22 additions and 8,828 deletions.
2 changes: 1 addition & 1 deletion .NOT_EDITED_HERE.yaml
23 changes: 19 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,31 @@ RUN git config --global user.name "Gordon"
# Clone the docs repo
RUN git clone https://www.github.com/docker/docker.github.io allv

# Get docker/docker ref docs from 1.12.x branch to be used in master builds
## Branch to pull from, per ref doc
ENV ENGINE_BRANCH="1.12.x"
ENV DISTRIBUTION_BRANCH="release/2.5"

# Engine
# Get docker/docker ref docs from $ENGINE_BRANCH branch to be used in master builds
# Uses Github Subversion gateway to limit the checkout
RUN svn co https://github.com/docker/docker/branches/1.12.x/docs/reference allv/engine/reference
RUN svn co https://github.com/docker/docker/branches/1.12.x/docs/extend allv/engine/extend
RUN svn co https://github.com/docker/docker/branches/$ENGINE_BRANCH/docs/reference allv/engine/reference
RUN svn co https://github.com/docker/docker/branches/$ENGINE_BRANCH/docs/extend allv/engine/extend
# Can't use the svn trick to get a single file, use wget instead
RUN wget -O allv/engine/deprecated.md https://raw.githubusercontent.com/docker/docker/1.12.x/docs/deprecated.md
RUN wget -O allv/engine/deprecated.md https://raw.githubusercontent.com/docker/docker/$ENGINE_BRANCH/docs/deprecated.md
# Make a temporary commit for the files we added so we can check out other branches later
RUN git --git-dir=./allv/.git --work-tree=./allv add engine
RUN git --git-dir=./allv/.git --work-tree=./allv commit -m "Temporary commit"

# Distribution
# Get docker/distribution ref docs from $DISTRIBUTION_BRANCH tag to be used in master builds
# Uses Github Subversion gateway to limit the checkout
RUN svn co https://github.com/docker/distribution/branches/$DISTRIBUTION_BRANCH/docs/spec allv/registry/spec
# Can't use the svn trick to get a single file, use wget instead
RUN wget -O allv/registry/configuration.md https://raw.githubusercontent.com/docker/distribution/$DISTRIBUTION_BRANCH/docs/configuration.md
# Make a temporary commit for the files we added so we can check out other branches later
RUN git --git-dir=./allv/.git --work-tree=./allv add registry
RUN git --git-dir=./allv/.git --work-tree=./allv commit -m "Temporary commit"

# Create HTML for master
RUN jekyll build -s allv -d allvbuild

Expand Down
4 changes: 2 additions & 2 deletions _data/not_edited_here.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ overrides:

- path: /registry/configuration/
description: Reference docs for configuring Docker Registry
source: https://github.com/docker/distribution/tree/master/docs/configuration.md
source: https://github.com/docker/distribution/tree/release/2.5/docs/configuration.md

- path: /registry/spec/
description: Docker Registry API references
source: https://github.com/docker/distribution/tree/master/docs/spec/
source: https://github.com/docker/distribution/tree/release/2.5/docs/spec/
Loading

0 comments on commit 554b2c9

Please sign in to comment.