diff options
Diffstat (limited to 'third_party/rust/libz-sys/ci')
-rw-r--r-- | third_party/rust/libz-sys/ci/Dockerfile | 7 | ||||
-rwxr-xr-x | third_party/rust/libz-sys/ci/run-docker.sh | 18 |
2 files changed, 25 insertions, 0 deletions
diff --git a/third_party/rust/libz-sys/ci/Dockerfile b/third_party/rust/libz-sys/ci/Dockerfile new file mode 100644 index 0000000000..ae1599c059 --- /dev/null +++ b/third_party/rust/libz-sys/ci/Dockerfile @@ -0,0 +1,7 @@ +FROM ubuntu:18.04 + +RUN apt-get update -y && apt-get install -y --no-install-recommends \ + gcc \ + libc6-dev \ + ca-certificates + diff --git a/third_party/rust/libz-sys/ci/run-docker.sh b/third_party/rust/libz-sys/ci/run-docker.sh new file mode 100755 index 0000000000..cc7ce291fd --- /dev/null +++ b/third_party/rust/libz-sys/ci/run-docker.sh @@ -0,0 +1,18 @@ +set -ex + +mkdir -p target + +docker build --rm -t libz-sys-ci ci +docker run \ + --rm \ + --init \ + --user $(id -u):$(id -g) \ + --volume `rustc --print sysroot`:/usr/local:ro \ + --volume `pwd`:/src:ro \ + --volume `pwd`/target:/src/target \ + --workdir /src \ + --env CARGO_HOME=/cargo \ + --volume $HOME/.cargo:/cargo \ + -it \ + libz-sys-ci \ + cargo run --manifest-path systest/Cargo.toml -vv |