diff --git a/Dockerfile.chroot b/Dockerfile.chroot new file mode 100644 index 00000000..11bded1a --- /dev/null +++ b/Dockerfile.chroot @@ -0,0 +1,12 @@ +FROM golang:1.12.1 +COPY --from=gcr.io/makisu-project/makisu:v0.1.10 /makisu-internal/makisu /usr/local/bin/makisu + +ADD . /workspace +WORKDIR /workspace + +ENV SSL_CERT_DIR=/etc/ssl/certs +RUN makisu pull --extract /testdir --registry gcr.io --tag v0.1.10 makisu-project/makisu +RUN ./tools/scripts/makisu_chroot.sh build -t test:121 --modifyfs=true testdata/build-context/symlink +RUN ./tools/scripts/makisu_chroot.sh build -t test:121 --modifyfs=true testdata/build-context/user-change +RUN ./tools/scripts/makisu_chroot.sh build -t test:121 --modifyfs=true testdata/build-context/chroot-simple +RUN ./tools/scripts/makisu_chroot.sh build -t test:121 --modifyfs=true testdata/build-context/go-from-scratch