mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
87a614ed55
Phase 1: Initial seccomp support
37 lines
1 KiB
Docker
37 lines
1 KiB
Docker
#
|
|
# THIS FILE IS AUTOGENERATED; SEE "contrib/builder/rpm/generate.sh"!
|
|
#
|
|
|
|
FROM fedora:22
|
|
|
|
RUN dnf install -y @development-tools fedora-packager
|
|
RUN dnf install -y btrfs-progs-devel device-mapper-devel glibc-static libseccomp-devel libselinux-devel libtool-ltdl-devel selinux-policy selinux-policy-devel sqlite-devel tar
|
|
|
|
ENV SECCOMP_VERSION v2.2.3
|
|
RUN buildDeps=' \
|
|
automake \
|
|
libtool \
|
|
' \
|
|
&& set -x \
|
|
&& yum install -y $buildDeps \
|
|
&& export SECCOMP_PATH=$(mktemp -d) \
|
|
&& git clone -b "$SECCOMP_VERSION" --depth 1 https://github.com/seccomp/libseccomp.git "$SECCOMP_PATH" \
|
|
&& ( \
|
|
cd "$SECCOMP_PATH" \
|
|
&& ./autogen.sh \
|
|
&& ./configure --prefix=/usr \
|
|
&& make \
|
|
&& install -c src/.libs/libseccomp.a /usr/lib/libseccomp.a \
|
|
&& chmod 644 /usr/lib/libseccomp.a \
|
|
&& ranlib /usr/lib/libseccomp.a \
|
|
&& ldconfig -n /usr/lib \
|
|
) \
|
|
&& rm -rf "$SECCOMP_PATH"
|
|
|
|
ENV GO_VERSION 1.5.2
|
|
RUN curl -fSL "https://storage.googleapis.com/golang/go${GO_VERSION}.linux-amd64.tar.gz" | tar xzC /usr/local
|
|
ENV PATH $PATH:/usr/local/go/bin
|
|
|
|
ENV AUTO_GOPATH 1
|
|
|
|
ENV DOCKER_BUILDTAGS seccomp selinux
|