Skip to content

Commit

Permalink
🐧 do not install unattended upgrades (#1514)
Browse files Browse the repository at this point in the history
We do remove it in case it is present in the base image, but there is no
reason to install it in the first place if isn't there already.

Signed-off-by: mudler <[email protected]>
  • Loading branch information
mudler authored Jun 14, 2023
1 parent 5814eaa commit 97fff81
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 34 deletions.
6 changes: 0 additions & 6 deletions images/Dockerfile.ubuntu
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ RUN apt-get update \
systemd-resolved \
systemd-timesyncd \
thermald \
unattended-upgrades \
xdg-user-dirs \
xxd \
xz-utils \
Expand All @@ -83,11 +82,6 @@ RUN apt-get update \
linux-image-generic-hwe-22.04 \
&& apt-get remove -y unattended-upgrades && apt-get clean && rm -rf /var/lib/apt/lists/*

# not sure if this is really necessary, since the package is already removed
RUN sed -i 's/APT::Periodic::Update-Package-Lists "1";/APT::Periodic::Update-Package-Lists "0";/g' /etc/apt/apt.conf.d/20auto-upgrades
RUN sed -i 's/APT::Periodic::Unattended-Upgrade "1";/APT::Periodic::Unattended-Upgrade "0";/g' /etc/apt/apt.conf.d/20auto-upgrades


RUN ln -s /usr/sbin/grub-install /usr/sbin/grub2-install
RUN ln -s /usr/bin/grub-editenv /usr/bin/grub2-editenv
RUN systemctl enable systemd-networkd
Expand Down
4 changes: 0 additions & 4 deletions images/Dockerfile.ubuntu-20-lts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ RUN apt-get update \
systemd-timesyncd \
thermald \
ubuntu-advantage-tools \
unattended-upgrades \
xdg-user-dirs \
xxd \
xz-utils \
Expand All @@ -78,9 +77,6 @@ RUN apt-get update \
zfsutils-linux \
&& apt-get remove -y unattended-upgrades && apt-get clean && rm -rf /var/lib/apt/lists/*

# not sure if this is really necessary, since the package is already removed
RUN sed -i 's/APT::Periodic::Update-Package-Lists "1";/APT::Periodic::Update-Package-Lists "0";/g' /etc/apt/apt.conf.d/20auto-upgrades
RUN sed -i 's/APT::Periodic::Unattended-Upgrade "1";/APT::Periodic::Unattended-Upgrade "0";/g' /etc/apt/apt.conf.d/20auto-upgrades

RUN ln -s /usr/sbin/grub-install /usr/sbin/grub2-install
RUN ln -s /usr/bin/grub-editenv /usr/bin/grub2-editenv
Expand Down
4 changes: 0 additions & 4 deletions images/Dockerfile.ubuntu-20-lts-arm-nvidia-jetson-agx-orin
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,6 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \

RUN apt-get remove -y unattended-upgrades

# not sure if this is really necessary, since the package is already removed
RUN sed -i 's/APT::Periodic::Update-Package-Lists "1";/APT::Periodic::Update-Package-Lists "0";/g' /etc/apt/apt.conf.d/20auto-upgrades
RUN sed -i 's/APT::Periodic::Unattended-Upgrade "1";/APT::Periodic::Unattended-Upgrade "0";/g' /etc/apt/apt.conf.d/20auto-upgrades

# https://docs.nvidia.com/jetson/l4t/index.html#page/Tegra%20Linux%20Driver%20Package%20Development%20Guide/updating_jetson_and_host.html
RUN apt-get install -y -o Dpkg::Options::="--force-overwrite" \
nvidia-l4t-core \
Expand Down
5 changes: 0 additions & 5 deletions images/Dockerfile.ubuntu-20-lts-arm-rpi
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,6 @@ RUN apt-get update && apt-get install -y \
tar \
&& apt-get remove -y unattended-upgrades && apt-get clean && rm -rf /var/lib/apt/lists/*

# not sure if this is really necessary, since the package is already removed
RUN sed -i 's/APT::Periodic::Update-Package-Lists "1";/APT::Periodic::Update-Package-Lists "0";/g' /etc/apt/apt.conf.d/20auto-upgrades
RUN sed -i 's/APT::Periodic::Unattended-Upgrade "1";/APT::Periodic::Unattended-Upgrade "0";/g' /etc/apt/apt.conf.d/20auto-upgrades


RUN ln -s /usr/sbin/grub-install /usr/sbin/grub2-install
RUN ln -s /usr/bin/grub-editenv /usr/bin/grub2-editenv
RUN systemctl enable systemd-networkd
Expand Down
5 changes: 0 additions & 5 deletions images/Dockerfile.ubuntu-22-lts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ RUN apt-get update \
systemd-timesyncd \
thermald \
ubuntu-advantage-tools \
unattended-upgrades \
xdg-user-dirs \
xxd \
xz-utils \
Expand All @@ -79,10 +78,6 @@ RUN apt-get update \
zfsutils-linux \
&& apt-get remove -y unattended-upgrades && apt-get clean && rm -rf /var/lib/apt/lists/*

# not sure if this is really necessary, since the package is already removed
RUN sed -i 's/APT::Periodic::Update-Package-Lists "1";/APT::Periodic::Update-Package-Lists "0";/g' /etc/apt/apt.conf.d/20auto-upgrades
RUN sed -i 's/APT::Periodic::Unattended-Upgrade "1";/APT::Periodic::Unattended-Upgrade "0";/g' /etc/apt/apt.conf.d/20auto-upgrades

RUN ln -s /usr/sbin/grub-install /usr/sbin/grub2-install
RUN ln -s /usr/bin/grub-editenv /usr/bin/grub2-editenv
RUN systemctl enable systemd-networkd
Expand Down
5 changes: 0 additions & 5 deletions images/Dockerfile.ubuntu-22-lts-arm-rpi
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,6 @@ RUN apt-get update && apt-get install -y \
tar \
&& apt-get remove -y unattended-upgrades && apt-get clean && rm -rf /var/lib/apt/lists/*

# not sure if this is really necessary, since the package is already removed
RUN sed -i 's/APT::Periodic::Update-Package-Lists "1";/APT::Periodic::Update-Package-Lists "0";/g' /etc/apt/apt.conf.d/20auto-upgrades
RUN sed -i 's/APT::Periodic::Unattended-Upgrade "1";/APT::Periodic::Unattended-Upgrade "0";/g' /etc/apt/apt.conf.d/20auto-upgrades


RUN ln -s /usr/sbin/grub-install /usr/sbin/grub2-install
RUN ln -s /usr/bin/grub-editenv /usr/bin/grub2-editenv
RUN systemctl enable systemd-networkd
Expand Down
5 changes: 0 additions & 5 deletions images/Dockerfile.ubuntu-arm-rpi
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,6 @@ RUN apt-get update && apt-get install -y \
tar \
&& apt-get remove -y unattended-upgrades && apt-get clean && rm -rf /var/lib/apt/lists/*

# not sure if this is really necessary, since the package is already removed
RUN sed -i 's/APT::Periodic::Update-Package-Lists "1";/APT::Periodic::Update-Package-Lists "0";/g' /etc/apt/apt.conf.d/20auto-upgrades
RUN sed -i 's/APT::Periodic::Unattended-Upgrade "1";/APT::Periodic::Unattended-Upgrade "0";/g' /etc/apt/apt.conf.d/20auto-upgrades


RUN ln -s /usr/sbin/grub-install /usr/sbin/grub2-install
RUN ln -s /usr/bin/grub-editenv /usr/bin/grub2-editenv
RUN systemctl enable systemd-networkd
Expand Down

0 comments on commit 97fff81

Please sign in to comment.