File tree Expand file tree Collapse file tree 2 files changed +2
-12
lines changed Expand file tree Collapse file tree 2 files changed +2
-12
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,7 @@ integ-test:
5252 --volume $(CURDIR)/logs:/var/log/firecracker-containerd-test \
5353 --env ENABLE_ISOLATED_TESTS=1 \
5454 --workdir="/firecracker-containerd/runtime" \
55+ --init \
5556 localhost/firecracker-containerd-naive-integ-test:$(DOCKER_IMAGE_TAG) \
5657 "go test $(EXTRAGOARGS) -run \"^$(TESTNAME)$$\"" || exit 1; \
5758 )
Original file line number Diff line number Diff line change @@ -205,22 +205,11 @@ ENTRYPOINT ["/bin/bash", "-c"]
205205# Test image that starts up containerd and the naive snapshotter. The default CMD will drop to a bash shell. Overrides
206206# to CMD will be provided appended to /bin/bash -c
207207FROM firecracker-containerd-test as firecracker-containerd-naive-integ-test
208- # Install tini init to handle zombies created by our double-forked shims.
209- # Unfortunately, we need to do this rather than only use docker's "--init" flag because docker
210- # currently puts its default init binary at /dev/init, but we need to bind-mount /dev from
211- # the host in order for the snapshotter to work.
212- # This should no longer be an issue after github.com/moby/moby #37665 is released.
213- RUN curl --silent --show-error --retry 3 --max-time 30 --location --output tini \
214- "https://github.com/krallin/tini/releases/download/v0.18.0/tini" \
215- && echo "12d20136605531b09a2c2dac02ccee85e1b874eb322ef6baf7561cd93f93c855 tini" | sha256sum -c - \
216- && mv tini /sbin/tini \
217- && chmod +x /sbin/tini
218-
219208COPY tools/docker/naive-snapshotter/config.toml /etc/containerd/config.toml
220209COPY tools/docker/naive-snapshotter/entrypoint.sh /entrypoint
221210RUN mkdir -p /var/lib/firecracker-containerd/naive
222211
223- ENTRYPOINT ["/sbin/tini" , "--" , "/ entrypoint" ]
212+ ENTRYPOINT ["/entrypoint" ]
224213CMD ["exec /bin/bash" ]
225214
226215
You can’t perform that action at this time.
0 commit comments