make base-images
docker buildx build -t rust-buildenv .Clone some source tree into the workspace/src directory:
git clone --depth=1 https://github.com/BurntSushi/ripgrep.git workspace/srcCreate workspacefs.override.yaml:
cat <<EOF >workspace/workspacefs.override.yaml
cache:
negative:
excludes:
- .cargo
EOFBuild it with worker containers:
concc-boot -C workspace -i gcc-buildenv -s scripts \
concc -C src \
'env RUSTC_WRAPPER=concc-exec cargo build --release -j $(concc-worker-pool limit)'Specify worker hosts when building with remote worker containers:
concc-boot -C workspace -i gcc-buildenv -s scripts -w remote \
concc -C src \
'env RUSTC_WRAPPER=concc-exec cargo build --release -j $(concc-worker-pool limit)'where remote must be accessible via SSH.
Using docker stats, you can confirm that build jobs will be distributed to the
worker containers.
rustc will be executed on worker containers. Other jobs like downloading
crates will be performed on the user container.