Commit graph

3 commits

Author SHA1 Message Date
Alex Pyrgiotis
de45069b55
Make our container image more reproducible
Fix the following sources of non-determinism in our container image:
1. Touch /etc/apt/sources.list with a UTC timestamp. Else, builds on
   different machines will result to different Unix epochs for that
   file.
2. Turn "date of last password change" in /etc/shadow into a constant
   number.
3. Fix r-s file permissions in groups, due to inconsistent COPY behavior
   in containerized Buildkit. This requires creating a full file
   hierarchy in a separate directory (see new_root/).
4. Set a specific modification time to the entrypoint script, because
   rewrite-timestamp=true does not overwrite it.
2025-02-26 18:40:28 +02:00
Alex Pyrgiotis
fb90243668
Symlink /usr in Debian container image
Update our Dockerfile and entrypoint script in order to reuse the /usr
dir in the inner and outer container image.

Refs #1048
2025-01-27 21:40:27 +02:00
Alex Pyrgiotis
0ce7773ca1
Render the Dockerfile from a template and some params
Allow updating the Dockerfile from a template and some envs, so that
it's easier to bump the dates in it.
2025-01-27 21:40:27 +02:00