-
Notifications
You must be signed in to change notification settings - Fork 4
FR: a reliable way to fetch the script #11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Well I guess this could do: # SOURCE_DATE_EPOCH is set to 1691114774 (i.e., 20230804T020614Z, timestamp of /etc/apt/sources.list)
FROM ubuntu:jammy-20230804
ENV DEBIAN_FRONTEND=noninteractive
RUN \
--mount=type=cache,target=/var/cache/apt,sharing=locked \
--mount=type=cache,target=/var/lib/apt,sharing=locked \
--mount=from=repro_sources_list,source=/repro-sources-list.sh,target=/usr/local/bin/repro-sources-list.sh \
repro-sources-list.sh && \
apt-get update && \
apt-get install -y gcc docker buildx build \
--build-context repro_sources_list=https://github.com/reproducible-containers/repro-sources-list.sh.git#v0.1.0 \
. |
Example: ADD --chmod=0755 --checksum=sha256:4c97fd03a3b181996b1473f3a99b69a1efc6ecaf2b4ede061b6bd60a96b9325a \
https://raw.githubusercontent.com/reproducible-containers/repro-sources-list.sh/v0.1.0/repro-sources-list.sh \
/usr/local/bin/repro-sources-list.sh I guess this does not need to be a container image. |
Magnificent! Thank you @AkihiroSuda and happy new year :) |
I understand that I can just pin the exact version and checksum via that FROM reproducible-containers:debian-12@sha256:4c97fd03a3b181996b1473f3a99b69a1efc6ecaf2b4ede061b6bd60a96b9325a
RUN apt-get install -y gcc && \
: "Clean up for improving reproducibility (optional)" && \
rm -rf /var/log/* /var/cache/ldconfig/aux-cache As far as I can tell, the only work would be to cleanup the @AkihiroSuda what do you think? Would you be open to such a PR? Thanks!! |
These images will need to be updated and pushed very frequently, so I don't think this should happen in this repo. It could be better added to the upstream |
Much better! 🥳 Can't wait to have the base Debian images packing the repro-sources-list script :) |
This can be proposed to https://github.com/debuerreotype/debuerreotype/issues if you like |
Hi! Thanks for your great work :)
The README mentions
What do you think about showing an example
Dockerfile
that fetches/repro-sources-list.sh
?I'm thinking this repo could be maintaining a docker image that only contains the script in a
scratch
image. This could make the setup even simpler:The scratch image
Dockerfile
could be:Thoughts?
The text was updated successfully, but these errors were encountered: