2023-01-25 17:35:53 +00:00
|
|
|
#!/usr/bin/env bash
|
2021-08-26 18:22:41 +01:00
|
|
|
#
|
|
|
|
# This script runs as the top level of our reproducible build process.
|
|
|
|
# It launches the actual build script inside a docker container.
|
|
|
|
|
2022-05-25 12:10:55 +01:00
|
|
|
set -euo pipefail
|
|
|
|
|
2021-08-26 07:30:05 +01:00
|
|
|
## use a fixed image to not suffer from image retaging when newer rustc or
|
|
|
|
## alpine emerges. Increase shm size for the reasons described in
|
2022-02-17 17:56:33 +00:00
|
|
|
## reproducible_build
|
2022-03-04 13:22:57 +00:00
|
|
|
##
|
|
|
|
## If you change this image, make sure also to change the one listed in
|
|
|
|
## the build-repro job in .gitlab-ci.yml
|
2021-08-26 07:30:05 +01:00
|
|
|
exec docker run --rm -i -v "$(git rev-parse --show-toplevel)":/builds/arti \
|
2022-09-02 11:20:07 +01:00
|
|
|
-w /builds/arti --shm-size=512m rust:1.63.0-alpine3.16 \
|
2022-05-26 08:44:06 +01:00
|
|
|
sh -c "apk add bash && ./maint/reproducible_build $*"
|