forked from cri-o/cri-o
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
75 lines (68 loc) · 2.13 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
FROM circleci/golang:1.12
USER root
RUN echo "deb http://apt.llvm.org/stretch/ llvm-toolchain-stretch main" | \
tee -a /etc/apt/sources.list.d/llvm.list && \
wget -O - http://apt.llvm.org/llvm-snapshot.gpg.key| apt-key add -
RUN apt-get update &&\
apt-get install -y \
apparmor \
autoconf \
automake \
bison \
bsdmainutils \
btrfs-tools \
build-essential \
clang-format \
e2fslibs-dev \
gawk \
gettext \
iptables \
libaio-dev \
libapparmor-dev \
libcap-dev \
libdevmapper-dev \
libdevmapper1.02.1 \
libfuse-dev \
libglib2.0-dev \
libgpgme11-dev \
liblzma-dev \
libnet-dev \
libnl-3-dev \
libprotobuf-c-dev \
libprotobuf-dev \
libseccomp-dev \
libseccomp2 \
libsystemd-dev \
libtool \
libudev-dev \
protobuf-c-compiler \
protobuf-compiler \
python-protobuf \
socat &&\
apt-get clean
# Install bats
RUN cd /tmp &&\
git clone https://github.com/bats-core/bats-core.git --depth=1 &&\
cd bats-core &&\
./install.sh /usr &&\
rm -rf /tmp/bats-core &&\
mkdir -p ~/.parallel && touch ~/.parallel/will-cite
# Install crictl and critest
RUN VERSION=v1.15.0 &&\
wget -qO- https://github.com/kubernetes-sigs/cri-tools/releases/download/$VERSION/crictl-$VERSION-linux-amd64.tar.gz \
| tar xfz - -C /usr/bin &&\
wget -qO- https://github.com/kubernetes-sigs/cri-tools/releases/download/$VERSION/critest-$VERSION-linux-amd64.tar.gz \
| tar xfz - -C /usr/bin
# Install runc
RUN VERSION=v1.0.0-rc8 &&\
wget -q -O /usr/bin/runc https://github.com/opencontainers/runc/releases/download/$VERSION/runc.amd64 &&\
chmod +x /usr/bin/runc
# Install CNI plugins
RUN VERSION=v0.8.1 &&\
mkdir -p /opt/cni/bin &&\
wget -qO- https://github.com/containernetworking/plugins/releases/download/$VERSION/cni-plugins-linux-amd64-$VERSION.tgz \
| tar xfz - -C /opt/cni/bin
# Make sure we have some policy for pulling images
RUN mkdir -p /etc/containers
COPY test/policy.json /etc/containers/policy.json
COPY test/redhat_sigstore.yaml /etc/containers/registries.d/registry.access.redhat.com.yaml