From 0f888c458d69fab8c8a53c982137b3b5369f680f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Wed, 8 Jun 2022 23:27:04 +0300 Subject: [PATCH] README: short and long container versions --- README.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index feae11f..8b0c159 100644 --- a/README.md +++ b/README.md @@ -396,10 +396,23 @@ apt install wine-binfmt A standalone Docker environment to play with bazel-zig-cc: +``` +$ docker run -e CC=/usr/bin/false -ti --rm -v "$PWD:/x" -w /x debian:bullseye-slim +# apt update +# apt install --no-install-recommends -y direnv git shellcheck ca-certificates +# eval "$(direnv hook bash)" && direnv allow +# ./ci/test +# ./ci/lint +``` + +Some of the tests rely on `qemu-aarch64` to run arm64 binaries and wine for +Windows binaries. Therefore, with the setup above, these tests will fail. +To install *all* dependencies, so all tests can pass: + ``` $ docker run -e CC=/usr/bin/false -ti --rm -v "$PWD:/x" -w /x debian:bullseye-slim # dpkg --add-architecture arm64 && apt update -# apt install --no-install-recommends -y direnv git shellcheck ca-certificates libc6:arm64 qemu-user-static +# apt install --no-install-recommends -y direnv git shellcheck ca-certificates libc6:arm64 qemu-user-static wine64 # eval "$(direnv hook bash)" && direnv allow # ./ci/test # ./ci/lint