Skip to content

Commit dd854ba

Browse files
authored
Merge pull request #16 from AkihiroSuda/clean-up-logs
Dockerfile: add `rm -rf /var/log/* /var/cache/ldconfig/aux-cache`
2 parents a0a47b4 + f6e62e6 commit dd854ba

File tree

7 files changed

+24
-6
lines changed

7 files changed

+24
-6
lines changed

Dockerfile.archlinux

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,9 @@ RUN \
55
repro-sources-list.sh && \
66
pacman -Sy && \
77
pacman -Su --noconfirm gcc
8+
9+
# Note: the following files in the image are not reproducible:
10+
# etc/pacman.d/gnupg/trustdb.gpg
11+
# var/cache/ldconfig/aux-cache
12+
# var/lib/pacman/local/*/desc
13+
# var/log/pacman.log

Dockerfile.debian-11

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,6 @@ RUN \
66
--mount=type=bind,source=./repro-sources-list.sh,target=/usr/local/bin/repro-sources-list.sh \
77
repro-sources-list.sh && \
88
apt-get update && \
9-
apt-get install -y gcc
9+
apt-get install -y gcc && \
10+
: "Clean up for improving reproducibility (optional)" && \
11+
rm -rf /var/log/* /var/cache/ldconfig/aux-cache

Dockerfile.debian-12

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,6 @@ RUN \
66
--mount=type=bind,source=./repro-sources-list.sh,target=/usr/local/bin/repro-sources-list.sh \
77
repro-sources-list.sh && \
88
apt-get update && \
9-
apt-get install -y gcc
9+
apt-get install -y gcc && \
10+
: "Clean up for improving reproducibility (optional)" && \
11+
rm -rf /var/log/* /var/cache/ldconfig/aux-cache

Dockerfile.ubuntu-2204

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,6 @@ RUN \
66
--mount=type=bind,source=./repro-sources-list.sh,target=/usr/local/bin/repro-sources-list.sh \
77
repro-sources-list.sh && \
88
apt-get update && \
9-
apt-get install -y gcc
9+
apt-get install -y gcc && \
10+
: "Clean up for improving reproducibility (optional)" && \
11+
rm -rf /var/log/* /var/cache/ldconfig/aux-cache

Dockerfile.ubuntu-2404

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,6 @@ RUN \
66
--mount=type=bind,source=./repro-sources-list.sh,target=/usr/local/bin/repro-sources-list.sh \
77
repro-sources-list.sh && \
88
apt-get update && \
9-
apt-get install -y gcc
9+
apt-get install -y gcc && \
10+
: "Clean up for improving reproducibility (optional)" && \
11+
rm -rf /var/log/* /var/cache/ldconfig/aux-cache

alternative/Dockerfile.debian-13

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,6 @@ RUN \
1414
: "Fetching the snapshot and installing ca-certificates in one command" && \
1515
apt-get install --update --snapshot "${snapshot}" -o Acquire::Check-Valid-Until=false -o Acquire::https::Verify-Peer=false -y ca-certificates && \
1616
: "Installing gcc" && \
17-
apt-get install --snapshot "${snapshot}" -y gcc
17+
apt-get install --snapshot "${snapshot}" -y gcc && \
18+
: "Clean up for improving reproducibility (optional)" && \
19+
rm -rf /var/log/* /var/cache/ldconfig/aux-cache

alternative/Dockerfile.ubuntu-2404

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,6 @@ RUN \
1414
: "Fetching the snapshot and installing ca-certificates in one command" && \
1515
apt-get install --update --snapshot "${snapshot}" -o Acquire::Check-Valid-Until=false -o Acquire::https::Verify-Peer=false -y ca-certificates && \
1616
: "Installing gcc" && \
17-
apt-get install --snapshot "${snapshot}" -y gcc
17+
apt-get install --snapshot "${snapshot}" -y gcc && \
18+
: "Clean up for improving reproducibility (optional)" && \
19+
rm -rf /var/log/* /var/cache/ldconfig/aux-cache

0 commit comments

Comments
 (0)