fedora-docker-base: Disable dnf-makecache.timer

When containers based on this image are run with systemd as PID 1,
there should not be dnf cache updates inside the container, at least
by default.

https://bugzilla.redhat.com/show_bug.cgi?id=1576993
This commit is contained in:
Mikhail Zabaluev 2018-05-11 21:34:21 +03:00
parent 318b9ecc73
commit 1b4000eb73

View File

@ -23,6 +23,9 @@ rm -rf /tmp/*
# https://pagure.io/atomic-wg/issue/308 # https://pagure.io/atomic-wg/issue/308
printf "tsflags=nodocs\n" >>/etc/dnf/dnf.conf printf "tsflags=nodocs\n" >>/etc/dnf/dnf.conf
# https://bugzilla.redhat.com/show_bug.cgi?id=1576993
systemctl disable dnf-makecache.timer
#Mask mount units and getty service so that we don't get login prompt #Mask mount units and getty service so that we don't get login prompt
systemctl mask systemd-remount-fs.service dev-hugepages.mount sys-fs-fuse-connections.mount systemd-logind.service getty.target console-getty.service systemctl mask systemd-remount-fs.service dev-hugepages.mount sys-fs-fuse-connections.mount systemd-logind.service getty.target console-getty.service