Skip to content

Commit

Permalink
Add systemd-ubuntu:24.04/systemd-ubuntu:noble (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
Skeli789 authored Jun 3, 2024
1 parent 289dd4f commit 8d81951
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 2 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ jobs:
tags: |-
jrei/systemd-ubuntu:20.04
jrei/systemd-ubuntu:focal
jrei/systemd-ubuntu:latest
- name: systemd-ubuntu-22.04
dockerfile: systemd/ubuntu/22.04.Dockerfile
platforms: |-
Expand All @@ -120,6 +119,16 @@ jobs:
tags: |-
jrei/systemd-ubuntu:22.04
jrei/systemd-ubuntu:jammy
- name: systemd-ubuntu-24.04
dockerfile: systemd/ubuntu/24.04.Dockerfile
platforms: |-
linux/amd64
linux/arm/v7
linux/arm64
tags: |-
jrei/systemd-ubuntu:24.04
jrei/systemd-ubuntu:noble
jrei/systemd-ubuntu:latest
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down
27 changes: 27 additions & 0 deletions systemd/ubuntu/24.04.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
FROM ubuntu:24.04

ENV container docker
ENV LC_ALL C
ENV DEBIAN_FRONTEND noninteractive

RUN apt-get update \
&& apt-get install -y systemd systemd-sysv \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

RUN cd /lib/systemd/system/sysinit.target.wants/ \
&& rm $(ls | grep -v systemd-tmpfiles-setup)

RUN rm -f /lib/systemd/system/multi-user.target.wants/* \
/etc/systemd/system/*.wants/* \
/lib/systemd/system/local-fs.target.wants/* \
/lib/systemd/system/sockets.target.wants/*udev* \
/lib/systemd/system/sockets.target.wants/*initctl* \
/lib/systemd/system/basic.target.wants/* \
/lib/systemd/system/anaconda.target.wants/* \
/lib/systemd/system/plymouth* \
/lib/systemd/system/systemd-update-utmp*

VOLUME [ "/sys/fs/cgroup" ]

CMD ["/lib/systemd/systemd"]
3 changes: 2 additions & 1 deletion systemd/ubuntu/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
You can use this image as a base container to run systemd services inside.

## Supported tags
- `24.04`, `latest`
- `22.04`
- `20.04`, `latest`
- `20.04`
- `18.04`
- `16.04`

Expand Down

0 comments on commit 8d81951

Please sign in to comment.