Skip to content

Commit 9ac2c29

Browse files
authored
Merge pull request #246 from kzys/remove-tini-2
Use docker's --init as is
2 parents 744552f + 0f262e2 commit 9ac2c29

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

runtime/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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
)

tools/docker/Dockerfile

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff 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
207207
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-
219208
COPY tools/docker/naive-snapshotter/config.toml /etc/containerd/config.toml
220209
COPY tools/docker/naive-snapshotter/entrypoint.sh /entrypoint
221210
RUN mkdir -p /var/lib/firecracker-containerd/naive
222211

223-
ENTRYPOINT ["/sbin/tini", "--", "/entrypoint"]
212+
ENTRYPOINT ["/entrypoint"]
224213
CMD ["exec /bin/bash"]
225214

226215

0 commit comments

Comments
 (0)