зеркало из https://github.com/microsoft/docker.git
fix gopath when building debs
Signed-off-by: Jessica Frazelle <acidburn@docker.com>
This commit is contained in:
Родитель
c84f5dfd74
Коммит
4935f7f500
|
@ -52,12 +52,14 @@ set -e
|
||||||
FROM $image
|
FROM $image
|
||||||
WORKDIR /usr/src/docker
|
WORKDIR /usr/src/docker
|
||||||
COPY . /usr/src/docker
|
COPY . /usr/src/docker
|
||||||
|
RUN mkdir -p /go/src/github.com/docker \
|
||||||
|
&& ln -snf /usr/src/docker /go/src/github.com/docker/docker
|
||||||
EOF
|
EOF
|
||||||
if [ "$DOCKER_EXPERIMENTAL" ]; then
|
if [ "$DOCKER_EXPERIMENTAL" ]; then
|
||||||
echo 'ENV DOCKER_EXPERIMENTAL 1' >> "$DEST/$version/Dockerfile.build"
|
echo 'ENV DOCKER_EXPERIMENTAL 1' >> "$DEST/$version/Dockerfile.build"
|
||||||
fi
|
fi
|
||||||
cat >> "$DEST/$version/Dockerfile.build" <<-EOF
|
cat >> "$DEST/$version/Dockerfile.build" <<-EOF
|
||||||
RUN go build -o aagen contrib/apparmor/*.go \
|
RUN GOPATH=/go go build -o aagen contrib/apparmor/*.go \
|
||||||
&& ./aagen contrib/apparmor/docker-engine
|
&& ./aagen contrib/apparmor/docker-engine
|
||||||
RUN ln -sfv hack/make/.build-deb debian
|
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 { echo '$debSource (${debVersion}-0~${suite}) $suite; urgency=low'; echo; echo ' * Version: $VERSION'; echo; echo " -- $debMaintainer $debDate"; } > debian/changelog && cat >&2 debian/changelog
|
||||||
|
|
Загрузка…
Ссылка в новой задаче