@@ -29,10 +29,17 @@ RUN mkdir -p \
29
29
${FICD_LOG_DIR} \
30
30
/etc/cni/net.d
31
31
32
- RUN wget https://github.com/containerd/containerd/releases/download/v1.6.4/containerd-1.6.4-linux-amd64.tar.gz && \
33
- tar zxvf containerd-1.6.4-linux-amd64.tar.gz -C /tmp/ && \
32
+ # Install containerd to have runc shim.
33
+ ENV CTRD_VERSION="1.6.4"
34
+ RUN wget --quiet -O- https://github.com/containerd/containerd/releases/download/v$CTRD_VERSION/containerd-$CTRD_VERSION-linux-amd64.tar.gz | tar zxf - -C /tmp/ && \
34
35
install -D -o root -g root -m755 -t /usr/local/bin /tmp/bin/containerd-shim-runc-v2 && \
35
- rm -rf containerd-1.6.4-linux-amd64.tar.gz /tmp/bin
36
+ rm -rf /tmp/bin
37
+
38
+ # Install critest.
39
+ ENV CRITEST_VERSION="1.23.0"
40
+ RUN wget --quiet -O- https://github.com/kubernetes-sigs/cri-tools/releases/download/v$CRITEST_VERSION/critest-v$CRITEST_VERSION-linux-amd64.tar.gz | tar zxf - -C /tmp/ && \
41
+ install -D -o root -g root -m755 -t /usr/local/bin /tmp/critest && \
42
+ rm -f /tmp/critest
36
43
37
44
# Pull the images the tests need into the content store so we don't need internet
38
45
# access during the tests themselves. This runs as a seperate step before the other
@@ -45,18 +52,12 @@ RUN --mount=type=bind,target=/src \
45
52
make -C /src install && \
46
53
ln -sv /usr/local/bin/firecracker-containerd /usr/local/bin/containerd && \
47
54
ln -sv /usr/local/bin/firecracker-ctr /usr/local/bin/ctr
55
+
48
56
RUN containerd 2>/dev/null & \
49
57
ctr --address /run/firecracker-containerd/containerd.sock content fetch docker.io/library/alpine:3.10.1 >/dev/null && \
50
58
ctr --address /run/firecracker-containerd/containerd.sock content fetch docker.io/mlabbe/iperf3:3.6-r0 >/dev/null && \
51
59
ctr --address /run/firecracker-containerd/containerd.sock content fetch docker.io/library/postgres:14.3 >/dev/null
52
60
53
- # Install critest
54
- ENV VERSION="v1.23.0"
55
- RUN wget https://github.com/kubernetes-sigs/cri-tools/releases/download/$VERSION/critest-$VERSION-linux-amd64.tar.gz && \
56
- tar zxvf critest-$VERSION-linux-amd64.tar.gz -C /tmp/ && \
57
- install -D -o root -g root -m755 -t /usr/local/bin /tmp/critest && \
58
- rm -f critest-$VERSION-linux-amd64.tar.gz /tmp/critest
59
-
60
61
ADD bin/firecracker /usr/local/bin
61
62
62
63
# Install everything we need in this image. Due to the bind-mount, if the host has already
0 commit comments