From a5a66777b9429fe05481afa87c166f221e963a6e Mon Sep 17 00:00:00 2001 From: Misty Stanley-Jones Date: Tue, 7 Mar 2017 11:48:30 -0800 Subject: [PATCH] Spaces FTW --- Dockerfile | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/Dockerfile b/Dockerfile index c522d56d86..b632b88363 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,7 +18,7 @@ RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 573BFD6B3D8FBC64107 # Forward nginx request and error logs to docker log collector RUN ln -sf /dev/stdout /var/log/nginx/access.log \ - && ln -sf /dev/stderr /var/log/nginx/error.log + && ln -sf /dev/stderr /var/log/nginx/error.log COPY nginx.conf /etc/nginx/nginx.conf @@ -33,16 +33,16 @@ ENV VERSIONS="v1.4 v1.5 v1.6 v1.7 v1.8 v1.9 v1.10 v1.11 v1.12 v1.13" ## Use shallow clone and shallow check-outs to only get the tip of each branch RUN git clone --depth 1 https://www.github.com/docker/docker.github.io archive_source; \ - for VER in $VERSIONS; do \ + for VER in $VERSIONS; do \ git --git-dir=./archive_source/.git --work-tree=./archive_source fetch origin ${VER}:${VER} --depth 1 \ - && git --git-dir=./archive_source/.git --work-tree=./archive_source checkout ${VER} \ - && mkdir -p target/${VER} \ - && jekyll build -s archive_source -d target/${VER} \ - && find target/${VER} -type f -name '*.html' -print0 | xargs -0 sed -i 's#href="/#href="/'"$VER"'/#g' \ - && find target/${VER} -type f -name '*.html' -print0 | xargs -0 sed -i 's#src="/#src="/'"$VER"'/#g' \ - && find target/${VER} -type f -name '*.html' -print0 | xargs -0 sed -i 's#href="https://docs.docker.com/#href="/'"$VER"'/#g'; \ - done; \ - rm -rf archive_source + && git --git-dir=./archive_source/.git --work-tree=./archive_source checkout ${VER} \ + && mkdir -p target/${VER} \ + && jekyll build -s archive_source -d target/${VER} \ + && find target/${VER} -type f -name '*.html' -print0 | xargs -0 sed -i 's#href="/#href="/'"$VER"'/#g' \ + && find target/${VER} -type f -name '*.html' -print0 | xargs -0 sed -i 's#src="/#src="/'"$VER"'/#g' \ + && find target/${VER} -type f -name '*.html' -print0 | xargs -0 sed -i 's#href="https://docs.docker.com/#href="/'"$VER"'/#g'; \ + done; \ + rm -rf archive_source # This index file gets overwritten, but it serves a sort-of useful purpose in # making the docs/docs-base image browsable: