buildah
buildah copied to clipboard
[reproducibility] dpkg.log reports current time when using --timestamp
I'm trying to achieve reproducible builds for my system.
I'm using sudo buildah bud --timestamp 0 Dockerfile .
Then I create a container from my newly created image, and inspect the rootfs using the sudo buildah mount
command
Even though the creation/modification timestamps of the file are indeed set to epoch 0, the apt install logs still report current time:
cat/var/lib/containers/storage/overlay/c1f279796d0ca183ecefacd0db61b0782b072dc50e75694c3a25e49441d065bd/merged/var/log/dpkg.log
gives me:
... 2024-01-10 16:08:57 status unpacked libx11-6:amd64 2:1.7.2-1+deb11u2 2024-01-10 16:08:57 status half-configured libx11-6:amd64 2:1.7.2-1+deb11u2 2024-01-10 16:08:57 status installed libx11-6:amd64 2:1.7.2-1+deb11u2 2024-01-10 16:08:57 configure libxmuu1:amd64 2:1.1.2-2+b3 <none> 2024-01-10 16:08:57 status unpacked libxmuu1:amd64 2:1.1.2-2+b3 2024-01-10 16:08:57 status half-configured libxmuu1:amd64 2:1.1.2-2+b3 2024-01-10 16:08:57 status installed libxmuu1:amd64 2:1.1.2-2+b3 2024-01-10 16:08:57 configure rsync:amd64 3.2.3-4+deb11u1 <none> 2024-01-10 16:08:57 status unpacked rsync:amd64 3.2.3-4+deb11u1 2024-01-10 16:08:57 status half-configured rsync:amd64 3.2.3-4+deb11u1 2024-01-10 16:08:57 status installed rsync:amd64 3.2.3-4+deb11u1 2024-01-10 16:08:57 configure openssh-client:amd64 1:8.4p1-5+deb11u3 <none> 2024-01-10 16:08:57 status unpacked openssh-client:amd64 1:8.4p1-5+deb11u3 2024-01-10 16:08:57 status half-configured openssh-client:amd64 1:8.4p1-5+deb11u3 2024-01-10 16:08:57 status installed openssh-client:amd64 1:8.4p1-5+deb11u3 2024-01-10 16:08:57 configure libxext6:amd64 2:1.3.3-1.1 <none> 2024-01-10 16:08:57 status unpacked libxext6:amd64 2:1.3.3-1.1 2024-01-10 16:08:57 status half-configured libxext6:amd64 2:1.3.3-1.1 2024-01-10 16:08:57 status installed libxext6:amd64 2:1.3.3-1.1 2024-01-10 16:08:57 configure xauth:amd64 1:1.1-1 <none> 2024-01-10 16:08:57 status unpacked xauth:amd64 1:1.1-1 2024-01-10 16:08:57 status half-configured xauth:amd64 1:1.1-1 2024-01-10 16:08:57 status installed xauth:amd64 1:1.1-1 2024-01-10 16:08:57 configure openssh-sftp-server:amd64 1:8.4p1-5+deb11u3 <none> 2024-01-10 16:08:57 status unpacked openssh-sftp-server:amd64 1:8.4p1-5+deb11u3 2024-01-10 16:08:57 status half-configured openssh-sftp-server:amd64 1:8.4p1-5+deb11u3 2024-01-10 16:08:57 status installed openssh-sftp-server:amd64 1:8.4p1-5+deb11u3 2024-01-10 16:08:57 configure openssh-server:amd64 1:8.4p1-5+deb11u3 <none> ...
Is it a normal behavior ? What should I do ?
Regards
Output of rpm -q buildah
or apt list buildah
:
buildah/jammy,now 1.23.1+ds1-2 amd64 [installed]
Output of buildah version
:
Version: 1.23.1
Go Version: go1.17
Image Spec: 1.0.1
Runtime Spec: 1.0.2-dev
CNI Spec: 0.4.0
libcni Version:
image Version: 5.16.0
Git Commit:
Built: Thu Jan 1 01:00:00 1970
OS/Arch: linux/amd64
BuildPlatform: linux/amd64
Output of podman version
if reporting a podman build
issue:
(paste your output here)
Output of cat /etc/*release
:
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=22.04
DISTRIB_CODENAME=jammy
DISTRIB_DESCRIPTION="Ubuntu 22.04.2 LTS"
PRETTY_NAME="Ubuntu 22.04.2 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.2 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy
Output of uname -a
:
Linux LAPTOP-U0QMJHQI 5.15.133.1-microsoft-standard-WSL2 #1 SMP Thu Oct 5 21:02:42 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Just a quick thought, could you pipe the apt-install commands to /dev/null?
A friendly reminder that this issue had no activity for 30 days.