Skip to content

Commit

Permalink
pass DOCKER_EXPERIMENTAL into build images
Browse files Browse the repository at this point in the history
Signed-off-by: Jessica Frazelle <princess@docker.com>
  • Loading branch information
jessfraz committed Jul 23, 2015
1 parent d593130 commit 76d6751
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions hack/make/build-deb
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ set -e
FROM $image
WORKDIR /usr/src/docker
COPY . /usr/src/docker
EOF
if [ "$DOCKER_EXPERIMENTAL" ]; then
echo 'ENV DOCKER_EXPERIMENTAL 1' >> "$DEST/$version/Dockerfile.build"
fi
cat >> "$DEST/$version/Dockerfile.build" <<-EOF
RUN ln -sfv hack/make/.build-deb debian
RUN { echo '$debSource (${debVersion}-0~${suite}) $suite; urgency=low'; echo; echo ' * Version: $VERSION'; echo; echo " -- $debMaintainer $debDate"; } > debian/changelog && cat >&2 debian/changelog
RUN dpkg-buildpackage -uc -us
Expand Down
5 changes: 5 additions & 0 deletions hack/make/build-rpm
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ set -e
cat > "$DEST/$version/Dockerfile.build" <<-EOF
FROM $image
COPY . /usr/src/${rpmName}
EOF
if [ "$DOCKER_EXPERIMENTAL" ]; then
echo 'ENV DOCKER_EXPERIMENTAL 1' >> "$DEST/$version/Dockerfile.build"
fi
cat >> "$DEST/$version/Dockerfile.build" <<-EOF
RUN mkdir -p /root/rpmbuild/SOURCES
WORKDIR /root/rpmbuild
RUN ln -sfv /usr/src/${rpmName}/hack/make/.build-rpm SPECS
Expand Down

0 comments on commit 76d6751

Please sign in to comment.