mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-23 11:31:49 +01:00
fix crio
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
This commit is contained in:
parent
64f95dd549
commit
e6574c3774
|
@ -18,9 +18,7 @@ RUN apt-get update && apt-get install -y \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
iptables \
|
iptables \
|
||||||
libapparmor1 \
|
libapparmor1 \
|
||||||
libassuan0 \
|
|
||||||
libdevmapper1.02.1 \
|
libdevmapper1.02.1 \
|
||||||
libglib2.0-0 \
|
|
||||||
libgpgme11 \
|
libgpgme11 \
|
||||||
libseccomp2 \
|
libseccomp2 \
|
||||||
libselinux1 \
|
libselinux1 \
|
||||||
|
@ -29,53 +27,32 @@ RUN apt-get update && apt-get install -y \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
ENV CRIO_VERSION v1.9.6
|
ENV CRIO_VERSION v1.9.6
|
||||||
ENV OSTREE_VERSION v2017.12
|
|
||||||
ENV GO_VERSION 1.9.4
|
ENV GO_VERSION 1.9.4
|
||||||
ENV CNI_PLUGINS_VERSION v0.6.0
|
ENV CNI_PLUGINS_VERSION v0.6.0
|
||||||
ENV RUNC_VERSION v1.0.0-rc4
|
ENV RUNC_VERSION v1.0.0-rc4
|
||||||
|
|
||||||
# Install ostree
|
|
||||||
# Install CNI plugins
|
# Install CNI plugins
|
||||||
# Install runc (installs to /sbin/runc)
|
# Install runc (installs to /sbin/runc)
|
||||||
# Install CRI-O (installs to /usr/bin/crio)
|
# Install CRI-O (installs to /usr/bin/crio)
|
||||||
# NOTE: The install docker the templates package is a stop gap for it not being
|
# NOTE: The install docker the templates package is a stop gap for it not being
|
||||||
# vendored into the crio repository
|
# vendored into the crio repository
|
||||||
RUN buildDeps=' \
|
RUN buildDeps=' \
|
||||||
autoconf \
|
|
||||||
automake \
|
|
||||||
bison \
|
|
||||||
curl \
|
curl \
|
||||||
e2fslibs-dev \
|
e2fslibs-dev \
|
||||||
gcc \
|
gcc \
|
||||||
git \
|
git \
|
||||||
libapparmor-dev \
|
libapparmor-dev \
|
||||||
libassuan-dev \
|
|
||||||
libc6-dev \
|
libc6-dev \
|
||||||
libdevmapper-dev \
|
libdevmapper-dev \
|
||||||
libfuse-dev \
|
|
||||||
libglib2.0-dev \
|
|
||||||
libgpg-error-dev \
|
|
||||||
libgpgme11-dev \
|
libgpgme11-dev \
|
||||||
liblzma-dev \
|
libostree-dev \
|
||||||
libseccomp-dev \
|
libseccomp-dev \
|
||||||
libselinux1-dev \
|
libselinux1-dev \
|
||||||
libtool \
|
|
||||||
make \
|
make \
|
||||||
pkg-config \
|
|
||||||
' \
|
' \
|
||||||
&& set -x \
|
&& set -x \
|
||||||
&& apt-get update && apt-get install -y $buildDeps --no-install-recommends \
|
&& apt-get update && apt-get install -y $buildDeps --no-install-recommends \
|
||||||
&& rm -rf /var/lib/apt/lists/* \
|
&& rm -rf /var/lib/apt/lists/* \
|
||||||
&& export BUILDPATH="$(mktemp -d)" \
|
|
||||||
&& git clone --depth 1 -b "$OSTREE_VERSION" --recursive https://github.com/ostreedev/ostree.git "${BUILDPATH}/ostree" \
|
|
||||||
&& ( \
|
|
||||||
cd "${BUILDPATH}/ostree" \
|
|
||||||
&& git submodule update --init \
|
|
||||||
&& env NOCONFIGURE=1 ./autogen.sh \
|
|
||||||
&& ./configure --prefix="" \
|
|
||||||
&& make \
|
|
||||||
&& make install \
|
|
||||||
) \
|
|
||||||
&& curl -fsSL "https://golang.org/dl/go${GO_VERSION}.linux-amd64.tar.gz" | tar -xzC /usr/local \
|
&& curl -fsSL "https://golang.org/dl/go${GO_VERSION}.linux-amd64.tar.gz" | tar -xzC /usr/local \
|
||||||
&& export PATH=/go/bin:/usr/local/go/bin:$PATH \
|
&& export PATH=/go/bin:/usr/local/go/bin:$PATH \
|
||||||
&& export GOPATH="$(mktemp -d)" \
|
&& export GOPATH="$(mktemp -d)" \
|
||||||
|
@ -106,7 +83,7 @@ RUN buildDeps=' \
|
||||||
&& sed -i 's#runtime = "/usr/bin/runc"#runtime = "/sbin/runc"#' /etc/crio/crio.conf \
|
&& sed -i 's#runtime = "/usr/bin/runc"#runtime = "/sbin/runc"#' /etc/crio/crio.conf \
|
||||||
&& sed -i 's#conmon = "/usr/local/libexec/crio/conmon"#conmon = "/libexec/crio/conmon"#' /etc/crio/crio.conf \
|
&& sed -i 's#conmon = "/usr/local/libexec/crio/conmon"#conmon = "/libexec/crio/conmon"#' /etc/crio/crio.conf \
|
||||||
) \
|
) \
|
||||||
&& rm -rf "$BUILDPATH" "$GOPATH" "/usr/local/go" \
|
&& rm -rf "$GOPATH" "/usr/local/go" \
|
||||||
&& apt-get purge -y --auto-remove $buildDeps
|
&& apt-get purge -y --auto-remove $buildDeps
|
||||||
|
|
||||||
COPY net.d /etc/cni/net.d
|
COPY net.d /etc/cni/net.d
|
||||||
|
|
Loading…
Reference in New Issue
Block a user