Skip to content

Commit

Permalink
Merge pull request #47 from TritonDataCenter/202501
Browse files Browse the repository at this point in the history
Fix ubuntu 24 images
  • Loading branch information
oetiker authored Jan 31, 2025
2 parents d03bc94 + 40677d8 commit 3f9355c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions ubuntu/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ ARG UBUNTU_RELEASE
FROM ubuntu:${UBUNTU_RELEASE}
COPY helpers /helpers
ARG UBUNTU_RELEASE=${UBUNTU_RELEASE}
RUN apt-get update && apt-get install -y systemd systemd-sysv systemd-timesyncd libnss-systemd libpam-systemd libsystemd0 networkd-dispatcher
RUN chmod 0 /bin/systemctl;cd /helpers; sh build.sh; cd /; rm -rf helpers;chmod 755 /bin/systemctl
3 changes: 3 additions & 0 deletions ubuntu/helpers/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ echo Installing Ubuntu $UBUNTU_RELEASE
export DEBIAN_FRONTEND=noninteractive
apt-get update
apt-get install -yq apt-utils
if ! command -v unminimize; then
apt-get install -yq unminimize
fi
yes | unminimize
apt-get install -yq \
systemd-sysv \
Expand Down

0 comments on commit 3f9355c

Please sign in to comment.