Skip to content

Commit

Permalink
[#188408474] Add Debian12
Browse files Browse the repository at this point in the history
  • Loading branch information
eifelmicha committed Oct 10, 2024
1 parent 8ad59a6 commit 55c24f8
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ jobs:
- dockerfile: dockerfiles/Ubuntu
image: ghcr.io/rheinwerk/molecule:ubuntu-22.04
build-args: "OS_VERSION=22.04"
- dockerfile: dockerfiles/Debian
image: ghcr.io/rheinwerk/molecule:debian-12
build-args: "OS_VERSION=bookworm"

steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
58 changes: 58 additions & 0 deletions dockerfiles/Debian
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
ARG OS_VERSION=stable

FROM --platform=$BUILDPLATFORM ubuntu:${OS_VERSION}

ARG DEBIAN_FRONTEND=noninteractive

# Install dependencies.
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
apt-transport-https \
bash \
gnupg \
ca-certificates \
curl \
cron \
dnsmasq \
iproute2 \
locales \
lsb-release \
procps \
python3-minimal \
python3-apt \
python3-pip \
python3-setuptools \
python3-simplejson \
python3-debian \
rsyslog \
software-properties-common \
sudo \
systemd \
systemd-sysv \
tar \
unzip \
wget \
xz-utils \
zip \
&& apt-get clean \
&& rm -Rf /var/lib/apt/lists/* \
&& rm -Rf /usr/share/doc && find /usr/share/man -type f -delete \
&& rm -rf /tmp/* /var/tmp/* ; \
rm -rf /lib/systemd/system/multi-user.target.wants/* ; \
rm -rf /etc/systemd/system/*.wants/* ; \
rm -rf /lib/systemd/system/local-fs.target.wants/* ; \
rm -rf /lib/systemd/system/sockets.target.wants/*udev* ; \
rm -rf /lib/systemd/system/sockets.target.wants/*initctl* ; \
rm -rf /lib/systemd/system/sysinit.target.wants/systemd-tmpfiles-setup* ; \
rm -rf /lib/systemd/system/systemd-update-utmp* ; \
rm -rf /lib/systemd/system/getty.target

# Install Python 3.12
RUN add-apt-repository ppa:deadsnakes/ppa \
&& apt-get update \
&& apt-get -y install python3.12 python3.12-dev python3.12-venv

# Fix potential UTF-8 errors with ansible-test.
RUN locale-gen en_US.UTF-8

CMD ["/lib/systemd/systemd"]

0 comments on commit 55c24f8

Please sign in to comment.