/ maint / docker_reproducible_build
docker_reproducible_build
 1  #!/usr/bin/env bash
 2  #
 3  # This script runs as the top level of our reproducible build process.
 4  # It launches the actual build script inside a docker container.
 5  
 6  set -euo pipefail
 7  
 8  ## use a fixed image to not suffer from image retaging when newer rustc or
 9  ## alpine emerges. Increase shm size for the reasons described in
10  ## reproducible_build
11  ##
12  ## If you change this image, make sure also to change the one listed in
13  ## the build-repro job in .gitlab-ci.yml
14  exec docker run --rm -i -v "$(git rev-parse --show-toplevel)":/builds/arti \
15  		-w /builds/arti rust:1.77.0-alpine3.18 \
16  		sh -c "apk add bash && ./maint/reproducible_build $*"