mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Cleanup libseccomp.a hack since dockerinit is gone
Signed-off-by: Qiang Huang <h.huangqiang@huawei.com>
This commit is contained in:
parent
0c09dda80f
commit
a605d641d7
3 changed files with 0 additions and 73 deletions
|
@ -7,27 +7,6 @@ FROM fedora:22
|
||||||
RUN dnf install -y @development-tools fedora-packager
|
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 pkgconfig selinux-policy selinux-policy-devel sqlite-devel systemd-devel tar
|
RUN dnf install -y btrfs-progs-devel device-mapper-devel glibc-static libseccomp-devel libselinux-devel libtool-ltdl-devel pkgconfig selinux-policy selinux-policy-devel sqlite-devel systemd-devel tar
|
||||||
|
|
||||||
ENV SECCOMP_VERSION 2.2.3
|
|
||||||
RUN buildDeps=' \
|
|
||||||
automake \
|
|
||||||
libtool \
|
|
||||||
' \
|
|
||||||
&& set -x \
|
|
||||||
&& yum install -y $buildDeps \
|
|
||||||
&& export SECCOMP_PATH=$(mktemp -d) \
|
|
||||||
&& curl -fsSL "https://github.com/seccomp/libseccomp/releases/download/v${SECCOMP_VERSION}/libseccomp-${SECCOMP_VERSION}.tar.gz" \
|
|
||||||
| tar -xzC "$SECCOMP_PATH" --strip-components=1 \
|
|
||||||
&& ( \
|
|
||||||
cd "$SECCOMP_PATH" \
|
|
||||||
&& ./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.3
|
ENV GO_VERSION 1.5.3
|
||||||
RUN curl -fSL "https://storage.googleapis.com/golang/go${GO_VERSION}.linux-amd64.tar.gz" | tar xzC /usr/local
|
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 PATH $PATH:/usr/local/go/bin
|
||||||
|
|
|
@ -7,27 +7,6 @@ FROM fedora:23
|
||||||
RUN dnf install -y @development-tools fedora-packager
|
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 pkgconfig selinux-policy selinux-policy-devel sqlite-devel systemd-devel tar
|
RUN dnf install -y btrfs-progs-devel device-mapper-devel glibc-static libseccomp-devel libselinux-devel libtool-ltdl-devel pkgconfig selinux-policy selinux-policy-devel sqlite-devel systemd-devel tar
|
||||||
|
|
||||||
ENV SECCOMP_VERSION 2.2.3
|
|
||||||
RUN buildDeps=' \
|
|
||||||
automake \
|
|
||||||
libtool \
|
|
||||||
' \
|
|
||||||
&& set -x \
|
|
||||||
&& yum install -y $buildDeps \
|
|
||||||
&& export SECCOMP_PATH=$(mktemp -d) \
|
|
||||||
&& curl -fsSL "https://github.com/seccomp/libseccomp/releases/download/v${SECCOMP_VERSION}/libseccomp-${SECCOMP_VERSION}.tar.gz" \
|
|
||||||
| tar -xzC "$SECCOMP_PATH" --strip-components=1 \
|
|
||||||
&& ( \
|
|
||||||
cd "$SECCOMP_PATH" \
|
|
||||||
&& ./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.3
|
ENV GO_VERSION 1.5.3
|
||||||
RUN curl -fSL "https://storage.googleapis.com/golang/go${GO_VERSION}.linux-amd64.tar.gz" | tar xzC /usr/local
|
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 PATH $PATH:/usr/local/go/bin
|
||||||
|
|
|
@ -118,37 +118,6 @@ for version in "${versions[@]}"; do
|
||||||
|
|
||||||
echo >> "$version/Dockerfile"
|
echo >> "$version/Dockerfile"
|
||||||
|
|
||||||
# TODO remove this since dockerinit is finally gone
|
|
||||||
case "$from" in
|
|
||||||
fedora:*)
|
|
||||||
awk '$1 == "ENV" && $2 == "SECCOMP_VERSION" { print; exit }' ../../../Dockerfile >> "$version/Dockerfile"
|
|
||||||
cat <<-'EOF' >> "$version/Dockerfile"
|
|
||||||
RUN buildDeps=' \
|
|
||||||
automake \
|
|
||||||
libtool \
|
|
||||||
' \
|
|
||||||
&& set -x \
|
|
||||||
&& yum install -y $buildDeps \
|
|
||||||
&& export SECCOMP_PATH=$(mktemp -d) \
|
|
||||||
&& curl -fsSL "https://github.com/seccomp/libseccomp/releases/download/v${SECCOMP_VERSION}/libseccomp-${SECCOMP_VERSION}.tar.gz" \
|
|
||||||
| tar -xzC "$SECCOMP_PATH" --strip-components=1 \
|
|
||||||
&& ( \
|
|
||||||
cd "$SECCOMP_PATH" \
|
|
||||||
&& ./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"
|
|
||||||
EOF
|
|
||||||
|
|
||||||
echo >> "$version/Dockerfile"
|
|
||||||
;;
|
|
||||||
*) ;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
case "$from" in
|
case "$from" in
|
||||||
oraclelinux:6)
|
oraclelinux:6)
|
||||||
# We need a known version of the kernel-uek-devel headers to set CGO_CPPFLAGS, so grab the UEKR4 GA version
|
# We need a known version of the kernel-uek-devel headers to set CGO_CPPFLAGS, so grab the UEKR4 GA version
|
||||||
|
|
Loading…
Reference in a new issue