You've already forked runc
mirror of
https://github.com/opencontainers/runc.git
synced 2025-08-01 05:06:52 +03:00
Replace dind with smaller script
It just mounts /tmp into tmpfs. We need this because criu tests has problems on overlayfs. Signed-off-by: Alexander Morozov <lk4d4@docker.com>
This commit is contained in:
@ -864,7 +864,6 @@ func TestMountCgroupRO(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestMountCgroupRW(t *testing.T) {
|
func TestMountCgroupRW(t *testing.T) {
|
||||||
t.Skip("This test is screwed because of dind")
|
|
||||||
if testing.Short() {
|
if testing.Short() {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
@ -7,8 +7,6 @@ RUN apt-get update && apt-get install -y iptables criu=1.6-2 && rm -rf /var/lib/
|
|||||||
RUN mkdir /busybox && \
|
RUN mkdir /busybox && \
|
||||||
curl -sSL 'https://github.com/jpetazzo/docker-busybox/raw/buildroot-2014.11/rootfs.tar' | tar -xC /busybox
|
curl -sSL 'https://github.com/jpetazzo/docker-busybox/raw/buildroot-2014.11/rootfs.tar' | tar -xC /busybox
|
||||||
|
|
||||||
RUN curl -sSL https://raw.githubusercontent.com/docker/docker/master/hack/dind -o /dind && \
|
COPY script/tmpmount /
|
||||||
chmod +x /dind
|
|
||||||
|
|
||||||
WORKDIR /go/src/github.com/opencontainers/runc
|
WORKDIR /go/src/github.com/opencontainers/runc
|
||||||
ENTRYPOINT ["/dind"]
|
ENTRYPOINT ["/tmpmount"]
|
||||||
|
4
script/tmpmount
Executable file
4
script/tmpmount
Executable file
@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
mount -t tmpfs none /tmp
|
||||||
|
exec "$@"
|
Reference in New Issue
Block a user