fix: determinism for multiple packages

This commit is contained in:
Lance R. Vick 2024-03-31 21:12:56 -07:00
parent 12d6b0a584
commit dc80893cf7
No known key found for this signature in database
GPG key ID: 8E47A1EC35A1551D
4 changed files with 7 additions and 4 deletions

View file

@ -48,6 +48,7 @@ RUN <<-EOF
set -eu
python -m installer -d /rootfs .dist/*.whl
find /rootfs | grep -E "(/__pycache__$|\.pyc$|\.pyo$)" | xargs rm -rf
rm /rootfs/usr/lib/python*/site-packages/awscli-*.dist-info/RECORD
find /rootfs -exec touch -hcd "@0" "{}" +
EOF

View file

@ -1,6 +1,6 @@
FROM scratch as base
ENV VERSION=1.8.9
ENV SRC_HASH=401d29af71cb962eb328cefd5166695587f195f9bd960edd1ede630f7e98bf7a
ENV SRC_HASH=962fe7d3da7653519d2975e130244af9286db32041b0745613aebf89949a9009
ENV SRC_FILE=v${VERSION}.tar.gz
ENV SRC_SITE=https://github.com/fullstorydev/grpcurl/archive/refs/tags/${SRC_FILE}
ENV GOCACHE=/cache/

View file

@ -24,7 +24,9 @@ RUN --network=none <<-EOF
--prefix=/usr \
--enable-pax_emutrap \
--enable-portable-binary \
--disable-exec-static-tramp
--disable-exec-static-tramp \
--without-gcc-arch
make -j "$(nproc)"
EOF

View file

@ -44,9 +44,9 @@ FROM build as install
RUN --network=none <<-EOF
set -eux
make DESTDIR=/rootfs install
rm -rf /rootfs/usr/lib/python3.12/site-packages/__pycache__
find /rootfs | grep -E "(/__pycache__$|\.pyc$|\.pyo$)" | xargs rm -rf
find /rootfs -exec touch -hcd "@0" "{}" +
EOF
RUN find /rootfs -exec touch -hcd "@0" "{}" +
FROM stagex/filesystem as package
COPY --from=install /rootfs/. /