Add support for seccomp and buildpack-deps, and
updated some commit numbers.
Signed-off-by: Qiang Huang <h.huangqiang@huawei.com>
| ... | ... |
@@ -84,6 +84,21 @@ RUN cd /usr/local/lvm2 \ |
| 84 | 84 |
&& make install_device-mapper |
| 85 | 85 |
# see https://git.fedorahosted.org/cgit/lvm2.git/tree/INSTALL |
| 86 | 86 |
|
| 87 |
+# install seccomp: the version shipped in trusty is too old |
|
| 88 |
+ENV SECCOMP_VERSION 2.2.3 |
|
| 89 |
+RUN set -x \ |
|
| 90 |
+ && export SECCOMP_PATH="$(mktemp -d)" \ |
|
| 91 |
+ && curl -fsSL "https://github.com/seccomp/libseccomp/releases/download/v${SECCOMP_VERSION}/libseccomp-${SECCOMP_VERSION}.tar.gz" \
|
|
| 92 |
+ | tar -xzC "$SECCOMP_PATH" --strip-components=1 \ |
|
| 93 |
+ && ( \ |
|
| 94 |
+ cd "$SECCOMP_PATH" \ |
|
| 95 |
+ && ./configure --prefix=/usr/local \ |
|
| 96 |
+ && make \ |
|
| 97 |
+ && make install \ |
|
| 98 |
+ && ldconfig \ |
|
| 99 |
+ ) \ |
|
| 100 |
+ && rm -rf "$SECCOMP_PATH" |
|
| 101 |
+ |
|
| 87 | 102 |
# Install Go |
| 88 | 103 |
# We don't have official binary tarballs for ARM64, eigher for Go or bootstrap, |
| 89 | 104 |
# so we use the official armv6 released binaries as a GOROOT_BOOTSTRAP, and |
| ... | ... |
@@ -99,8 +114,10 @@ RUN mkdir -p /usr/src/go-bootstrap \ |
| 99 | 99 |
ENV PATH /usr/src/go/bin:$PATH |
| 100 | 100 |
ENV GOPATH /go:/go/src/github.com/docker/docker/vendor |
| 101 | 101 |
|
| 102 |
-# Install registry |
|
| 103 |
-ENV REGISTRY_COMMIT a7ae88da459b98b481a245e5b1750134724ac67d |
|
| 102 |
+# Only install one version of the registry, because old version which support |
|
| 103 |
+# schema1 manifests is not working on ARM64, we should skip integration-cli |
|
| 104 |
+# tests for schema1 manifests on ARM64. |
|
| 105 |
+ENV REGISTRY_COMMIT 47a064d4195a9b56133891bbb13620c3ac83a827 |
|
| 104 | 106 |
RUN set -x \ |
| 105 | 107 |
&& export GOPATH="$(mktemp -d)" \ |
| 106 | 108 |
&& git clone https://github.com/docker/distribution.git "$GOPATH/src/github.com/docker/distribution" \ |
| ... | ... |
@@ -117,10 +134,12 @@ RUN set -x \ |
| 117 | 117 |
&& (cd "$GOPATH/src/github.com/docker/notary" && git checkout -q "$NOTARY_VERSION") \ |
| 118 | 118 |
&& GOPATH="$GOPATH/src/github.com/docker/notary/Godeps/_workspace:$GOPATH" \ |
| 119 | 119 |
go build -o /usr/local/bin/notary-server github.com/docker/notary/cmd/notary-server \ |
| 120 |
+ && GOPATH="$GOPATH/src/github.com/docker/notary/Godeps/_workspace:$GOPATH" \ |
|
| 121 |
+ go build -o /usr/local/bin/notary github.com/docker/notary/cmd/notary \ |
|
| 120 | 122 |
&& rm -rf "$GOPATH" |
| 121 | 123 |
|
| 122 | 124 |
# Get the "docker-py" source so we can run their integration tests |
| 123 |
-ENV DOCKER_PY_COMMIT 57512760c83fbe41302891aa51e34a86f4db74de |
|
| 125 |
+ENV DOCKER_PY_COMMIT e2878cbcc3a7eef99917adc1be252800b0e41ece |
|
| 124 | 126 |
RUN git clone https://github.com/docker/docker-py.git /docker-py \ |
| 125 | 127 |
&& cd /docker-py \ |
| 126 | 128 |
&& git checkout -q $DOCKER_PY_COMMIT \ |
| ... | ... |
@@ -142,7 +161,7 @@ RUN useradd --create-home --gid docker unprivilegeduser |
| 142 | 142 |
|
| 143 | 143 |
VOLUME /var/lib/docker |
| 144 | 144 |
WORKDIR /go/src/github.com/docker/docker |
| 145 |
-ENV DOCKER_BUILDTAGS apparmor selinux |
|
| 145 |
+ENV DOCKER_BUILDTAGS apparmor seccomp selinux |
|
| 146 | 146 |
|
| 147 | 147 |
# Let us use a .bashrc file |
| 148 | 148 |
RUN ln -sfv $PWD/.bashrc ~/.bashrc |
| ... | ... |
@@ -153,6 +172,7 @@ RUN ln -sv $PWD/contrib/completion/bash/docker /etc/bash_completion.d/docker |
| 153 | 153 |
# Get useful and necessary Hub images so we can "docker load" locally instead of pulling |
| 154 | 154 |
COPY contrib/download-frozen-image-v2.sh /go/src/github.com/docker/docker/contrib/ |
| 155 | 155 |
RUN ./contrib/download-frozen-image-v2.sh /docker-frozen-images \ |
| 156 |
+ aarch64/buildpack-deps:jessie@sha256:6aa1d6910791b7ac78265fd0798e5abd6cb3f27ae992f6f960f6c303ec9535f2 \ |
|
| 156 | 157 |
aarch64/busybox:latest@sha256:b23a6a37cf269dff6e46d2473b6e227afa42b037e6d23435f1d2bc40fc8c2828 \ |
| 157 | 158 |
aarch64/debian:jessie@sha256:4be74a41a7c70ebe887b634b11ffe516cf4fcd56864a54941e56bb49883c3170 \ |
| 158 | 159 |
aarch64/hello-world:latest@sha256:65a4a158587b307bb02db4de41b836addb0c35175bdc801367b1ac1ddeb9afda |
| ... | ... |
@@ -161,8 +181,8 @@ RUN ./contrib/download-frozen-image-v2.sh /docker-frozen-images \ |
| 161 | 161 |
# Download man page generator |
| 162 | 162 |
RUN set -x \ |
| 163 | 163 |
&& export GOPATH="$(mktemp -d)" \ |
| 164 |
- && git clone -b v1.0.4 https://github.com/cpuguy83/go-md2man.git "$GOPATH/src/github.com/cpuguy83/go-md2man" \ |
|
| 165 |
- && git clone -b v1.4 https://github.com/russross/blackfriday.git "$GOPATH/src/github.com/russross/blackfriday" \ |
|
| 164 |
+ && git clone --depth 1 -b v1.0.4 https://github.com/cpuguy83/go-md2man.git "$GOPATH/src/github.com/cpuguy83/go-md2man" \ |
|
| 165 |
+ && git clone --depth 1 -b v1.4 https://github.com/russross/blackfriday.git "$GOPATH/src/github.com/russross/blackfriday" \ |
|
| 166 | 166 |
&& go get -v -d github.com/cpuguy83/go-md2man \ |
| 167 | 167 |
&& go build -v -o /usr/local/bin/go-md2man github.com/cpuguy83/go-md2man \ |
| 168 | 168 |
&& rm -rf "$GOPATH" |