mirror of https://github.com/docker/docs.git
dockerfile update for seccomp
Signed-off-by: Jessica Frazelle <acidburn@docker.com>
This commit is contained in:
parent
2856a30482
commit
d616a09763
20
Dockerfile
20
Dockerfile
|
|
@ -55,6 +55,7 @@ RUN apt-get update && apt-get install -y \
|
||||||
libltdl-dev \
|
libltdl-dev \
|
||||||
libsqlite3-dev \
|
libsqlite3-dev \
|
||||||
libsystemd-journal-dev \
|
libsystemd-journal-dev \
|
||||||
|
libtool \
|
||||||
mercurial \
|
mercurial \
|
||||||
parallel \
|
parallel \
|
||||||
pkg-config \
|
pkg-config \
|
||||||
|
|
@ -125,6 +126,23 @@ RUN set -x \
|
||||||
&& UNATTENDED=yes OSX_VERSION_MIN=10.6 ${OSXCROSS_PATH}/build.sh
|
&& UNATTENDED=yes OSX_VERSION_MIN=10.6 ${OSXCROSS_PATH}/build.sh
|
||||||
ENV PATH /osxcross/target/bin:$PATH
|
ENV PATH /osxcross/target/bin:$PATH
|
||||||
|
|
||||||
|
# install seccomp
|
||||||
|
# this can be changed to the ubuntu package libseccomp-dev if dockerinit is removed,
|
||||||
|
# we need libseccomp.a (which the package does not provide) for dockerinit
|
||||||
|
ENV SECCOMP_VERSION v2.2.3
|
||||||
|
RUN set -x \
|
||||||
|
&& export SECCOMP_PATH=$(mktemp -d) \
|
||||||
|
&& git clone https://github.com/seccomp/libseccomp.git "$SECCOMP_PATH" \
|
||||||
|
&& ( \
|
||||||
|
cd "$SECCOMP_PATH" \
|
||||||
|
&& git checkout "$SECCOMP_VERSION" \
|
||||||
|
&& ./autogen.sh \
|
||||||
|
&& ./configure --prefix=/usr \
|
||||||
|
&& make \
|
||||||
|
&& make install \
|
||||||
|
) \
|
||||||
|
&& rm -rf "$SECCOMP_PATH"
|
||||||
|
|
||||||
# Install registry
|
# Install registry
|
||||||
ENV REGISTRY_COMMIT ec87e9b6971d831f0eff752ddb54fb64693e51cd
|
ENV REGISTRY_COMMIT ec87e9b6971d831f0eff752ddb54fb64693e51cd
|
||||||
RUN set -x \
|
RUN set -x \
|
||||||
|
|
@ -168,7 +186,7 @@ RUN useradd --create-home --gid docker unprivilegeduser
|
||||||
|
|
||||||
VOLUME /var/lib/docker
|
VOLUME /var/lib/docker
|
||||||
WORKDIR /go/src/github.com/docker/docker
|
WORKDIR /go/src/github.com/docker/docker
|
||||||
ENV DOCKER_BUILDTAGS apparmor selinux
|
ENV DOCKER_BUILDTAGS apparmor seccomp selinux
|
||||||
|
|
||||||
# Let us use a .bashrc file
|
# Let us use a .bashrc file
|
||||||
RUN ln -sfv $PWD/.bashrc ~/.bashrc
|
RUN ln -sfv $PWD/.bashrc ~/.bashrc
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue