Skip to content

Commit

Permalink
feat: add ubuntu-24.04
Browse files Browse the repository at this point in the history
  • Loading branch information
antmelekhin committed Jul 11, 2024
1 parent d3678ee commit ffa8c4b
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build-and-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ jobs:
dockerfile: 'ubuntu/22.04.Dockerfile'
platforms: 'linux/amd64,linux/arm64'

- tag: 'ubuntu-24.04'
dockerfile: 'ubuntu/24.04.Dockerfile'
platforms: 'linux/amd64,linux/arm64'

steps:
- name: 'Checkout the codebase'
uses: 'actions/checkout@v4'
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ Ubuntu:
- `ubuntu-18.04` (`linux/amd64`,`linux/arm64`)
- `ubuntu-20.04` (`linux/amd64`,`linux/arm64`)
- `ubuntu-22.04` (`linux/amd64`,`linux/arm64`)
- `ubuntu-24.04` (`linux/amd64`,`linux/arm64`)

## Usage

Expand Down
22 changes: 22 additions & 0 deletions ubuntu/24.04.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
FROM ubuntu:24.04

LABEL maintainer='Anton Melekhin'

ENV container=docker \
DEBIAN_FRONTEND=noninteractive

RUN INSTALL_PKGS='findutils iproute2 python3 python3-apt sudo systemd' \
&& apt-get update && apt-get install $INSTALL_PKGS -y --no-install-recommends \
&& apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

RUN find /etc/systemd/system \
/lib/systemd/system \
-path '*.wants/*' \
-not -name '*journald*' \
-not -name '*systemd-tmpfiles*' \
-not -name '*systemd-user-sessions*' \
-print0 | xargs -0 rm -vf

VOLUME [ "/sys/fs/cgroup" ]

ENTRYPOINT [ "/lib/systemd/systemd" ]

0 comments on commit ffa8c4b

Please sign in to comment.