deterministic stage0
This commit is contained in:
parent
6c5b0e0855
commit
a87ee08911
|
@ -18,10 +18,12 @@ RUN set -eux; \
|
||||||
echo "${SRC_HASH} stage0-posix-${VERSION}.tar.gz" | sha256sum -c; \
|
echo "${SRC_HASH} stage0-posix-${VERSION}.tar.gz" | sha256sum -c; \
|
||||||
tar -xf stage0-posix-${VERSION}.tar.gz
|
tar -xf stage0-posix-${VERSION}.tar.gz
|
||||||
WORKDIR stage0-posix-${VERSION}
|
WORKDIR stage0-posix-${VERSION}
|
||||||
RUN bootstrap-seeds/POSIX/x86/kaem-optional-seed
|
RUN set -eux; \
|
||||||
RUN mkdir -p /rootfs && cp -R * /rootfs/
|
bootstrap-seeds/POSIX/x86/kaem-optional-seed; \
|
||||||
|
mkdir -p /rootfs && cp -R * /rootfs/
|
||||||
WORKDIR /rootfs
|
WORKDIR /rootfs
|
||||||
RUN sha256sum x86/bin/* > hashes.txt
|
RUN sha256sum x86/bin/* > hashes.txt; \
|
||||||
|
find . -exec touch -hcd "@0" "{}" +
|
||||||
|
|
||||||
FROM archlinux as build2
|
FROM archlinux as build2
|
||||||
ARG VERSION
|
ARG VERSION
|
||||||
|
@ -36,10 +38,12 @@ RUN set -eux; \
|
||||||
echo "${SRC_HASH} stage0-posix-${VERSION}.tar.gz" | sha256sum -c; \
|
echo "${SRC_HASH} stage0-posix-${VERSION}.tar.gz" | sha256sum -c; \
|
||||||
tar -xf stage0-posix-${VERSION}.tar.gz
|
tar -xf stage0-posix-${VERSION}.tar.gz
|
||||||
WORKDIR stage0-posix-${VERSION}
|
WORKDIR stage0-posix-${VERSION}
|
||||||
RUN bootstrap-seeds/POSIX/x86/kaem-optional-seed
|
RUN set -eux; \
|
||||||
RUN mkdir -p /rootfs && cp -R * /rootfs/
|
bootstrap-seeds/POSIX/x86/kaem-optional-seed; \
|
||||||
|
mkdir -p /rootfs && cp -R * /rootfs/
|
||||||
WORKDIR /rootfs
|
WORKDIR /rootfs
|
||||||
RUN sha256sum x86/bin/* > hashes.txt
|
RUN sha256sum x86/bin/* > hashes.txt; \
|
||||||
|
find . -exec touch -hcd "@0" "{}" +
|
||||||
|
|
||||||
FROM alpine as build3
|
FROM alpine as build3
|
||||||
ARG VERSION
|
ARG VERSION
|
||||||
|
@ -54,10 +58,12 @@ RUN set -eux; \
|
||||||
echo "${SRC_HASH} stage0-posix-${VERSION}.tar.gz" | sha256sum -c; \
|
echo "${SRC_HASH} stage0-posix-${VERSION}.tar.gz" | sha256sum -c; \
|
||||||
tar -xf stage0-posix-${VERSION}.tar.gz
|
tar -xf stage0-posix-${VERSION}.tar.gz
|
||||||
WORKDIR stage0-posix-${VERSION}
|
WORKDIR stage0-posix-${VERSION}
|
||||||
RUN bootstrap-seeds/POSIX/x86/kaem-optional-seed
|
RUN set -eux; \
|
||||||
RUN mkdir -p /rootfs && cp -R * /rootfs/
|
bootstrap-seeds/POSIX/x86/kaem-optional-seed; \
|
||||||
|
mkdir -p /rootfs && cp -R * /rootfs/
|
||||||
WORKDIR /rootfs
|
WORKDIR /rootfs
|
||||||
RUN sha256sum x86/bin/* > hashes.txt
|
RUN sha256sum x86/bin/* > hashes.txt; \
|
||||||
|
find . -exec touch -hcd "@0" "{}" +
|
||||||
|
|
||||||
FROM scratch as compare
|
FROM scratch as compare
|
||||||
COPY --from=build1 /rootfs/ /a
|
COPY --from=build1 /rootfs/ /a
|
||||||
|
|
Reference in New Issue