Skip to content

Commit

Permalink
enable seccomp for arm, arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
imikushin committed Jun 2, 2016
1 parent a89a0c5 commit 24bc532
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,11 @@ RUN set -x \
&& make \
&& make install \
&& ldconfig \
&& for a in arm-linux-gnueabihf aarch64-linux-gnu; do \
make distclean && \
./configure --prefix=/usr/$a --host=$a && \
make && make install; \
done \
) \
&& rm -rf "$SECCOMP_PATH"

Expand Down Expand Up @@ -195,8 +200,7 @@ RUN useradd --create-home --gid docker unprivilegeduser

VOLUME /var/lib/docker
WORKDIR /go/src/github.com/docker/docker
ENV DOCKER_BUILDTAGS exclude_graphdriver_devicemapper pkcs11 selinux
# TODO add seccomp to DOCKER_BUILDTAGS: requires cross-building seccomp for arm, arm64
ENV DOCKER_BUILDTAGS exclude_graphdriver_devicemapper pkcs11 selinux seccomp

# Let us use a .bashrc file
RUN ln -sfv $PWD/.bashrc ~/.bashrc
Expand Down Expand Up @@ -247,9 +251,9 @@ RUN set -x \
&& git clone git://github.com/opencontainers/runc.git "$GOPATH/src/github.com/opencontainers/runc" \
&& cd "$GOPATH/src/github.com/opencontainers/runc" \
&& git checkout -q "$RUNC_COMMIT" \
&& GOARCH=arm CC=/usr/bin/arm-linux-gnueabihf-gcc make static BUILDTAGS="selinux" \
&& GOARCH=arm CC=/usr/bin/arm-linux-gnueabihf-gcc make static BUILDTAGS="seccomp selinux" \
&& cp runc /usr/local/bin/docker-runc_arm \
&& GOARCH=arm64 CC=/usr/bin/aarch64-linux-gnu-gcc make static BUILDTAGS="selinux" \
&& GOARCH=arm64 CC=/usr/bin/aarch64-linux-gnu-gcc make static BUILDTAGS="seccomp selinux" \
&& cp runc /usr/local/bin/docker-runc_arm64

# Install containerd
Expand Down

0 comments on commit 24bc532

Please sign in to comment.