File tree 2 files changed +2
-12
lines changed 2 files changed +2
-12
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,7 @@ integ-test:
52
52
--volume $(CURDIR)/logs:/var/log/firecracker-containerd-test \
53
53
--env ENABLE_ISOLATED_TESTS=1 \
54
54
--workdir="/firecracker-containerd/runtime" \
55
+ --init \
55
56
localhost/firecracker-containerd-naive-integ-test:$(DOCKER_IMAGE_TAG) \
56
57
"go test $(EXTRAGOARGS) -run \"^$(TESTNAME)$$\"" || exit 1; \
57
58
)
Original file line number Diff line number Diff line change @@ -205,22 +205,11 @@ ENTRYPOINT ["/bin/bash", "-c"]
205
205
# Test image that starts up containerd and the naive snapshotter. The default CMD will drop to a bash shell. Overrides
206
206
# to CMD will be provided appended to /bin/bash -c
207
207
FROM 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
-
219
208
COPY tools/docker/naive-snapshotter/config.toml /etc/containerd/config.toml
220
209
COPY tools/docker/naive-snapshotter/entrypoint.sh /entrypoint
221
210
RUN mkdir -p /var/lib/firecracker-containerd/naive
222
211
223
- ENTRYPOINT ["/sbin/tini" , "--" , "/ entrypoint" ]
212
+ ENTRYPOINT ["/entrypoint" ]
224
213
CMD ["exec /bin/bash" ]
225
214
226
215
You can’t perform that action at this time.
0 commit comments