@@ -7,16 +7,31 @@ RUN git config --global user.name "Gordon"
7
7
# Clone the docs repo
8
8
RUN git clone https://www.github.com/docker/docker.github.io allv
9
9
10
- # Get docker/docker ref docs from 1.12.x branch to be used in master builds
10
+ # # Branch to pull from, per ref doc
11
+ ENV ENGINE_BRANCH="1.12.x"
12
+ ENV DISTRIBUTION_BRANCH="release/2.5"
13
+
14
+ # Engine
15
+ # Get docker/docker ref docs from $ENGINE_BRANCH branch to be used in master builds
11
16
# Uses Github Subversion gateway to limit the checkout
12
- RUN svn co https://github.com/docker/docker/branches/1.12.x /docs/reference allv/engine/reference
13
- RUN svn co https://github.com/docker/docker/branches/1.12.x /docs/extend allv/engine/extend
17
+ RUN svn co https://github.com/docker/docker/branches/$ENGINE_BRANCH /docs/reference allv/engine/reference
18
+ RUN svn co https://github.com/docker/docker/branches/$ENGINE_BRANCH /docs/extend allv/engine/extend
14
19
# Can't use the svn trick to get a single file, use wget instead
15
- RUN wget -O allv/engine/deprecated.md https://raw.githubusercontent.com/docker/docker/1.12.x /docs/deprecated.md
20
+ RUN wget -O allv/engine/deprecated.md https://raw.githubusercontent.com/docker/docker/$ENGINE_BRANCH /docs/deprecated.md
16
21
# Make a temporary commit for the files we added so we can check out other branches later
17
22
RUN git --git-dir=./allv/.git --work-tree=./allv add engine
18
23
RUN git --git-dir=./allv/.git --work-tree=./allv commit -m "Temporary commit"
19
24
25
+ # Distribution
26
+ # Get docker/distribution ref docs from $DISTRIBUTION_BRANCH tag to be used in master builds
27
+ # Uses Github Subversion gateway to limit the checkout
28
+ RUN svn co https://github.com/docker/distribution/branches/$DISTRIBUTION_BRANCH/docs/spec allv/registry/spec
29
+ # Can't use the svn trick to get a single file, use wget instead
30
+ RUN wget -O allv/registry/configuration.md https://raw.githubusercontent.com/docker/distribution/$DISTRIBUTION_BRANCH/docs/configuration.md
31
+ # Make a temporary commit for the files we added so we can check out other branches later
32
+ RUN git --git-dir=./allv/.git --work-tree=./allv add registry
33
+ RUN git --git-dir=./allv/.git --work-tree=./allv commit -m "Temporary commit"
34
+
20
35
# Create HTML for master
21
36
RUN jekyll build -s allv -d allvbuild
22
37
0 commit comments