Skip to content

Commit a175bbc

Browse files
authored
Merge pull request #1784 from fanuware/update-container-to-debian-trixie
Update containers to Debian Trixie
2 parents fcf5b83 + 6784e1c commit a175bbc

2 files changed

Lines changed: 20 additions & 28 deletions

File tree

dockerfiles/Dockerfile

Lines changed: 14 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,29 @@
1-
FROM debian:bookworm-slim AS labgrid-base
2-
ARG VERSION
1+
FROM debian:trixie-slim AS labgrid-base
2+
ARG VERSION=0.0.0
33

44
LABEL maintainer="eha@deif.com"
55

66
ENV DEBIAN_FRONTEND=noninteractive
77

88
COPY ./ /opt/labgrid/
99

10-
RUN set -e ;\
11-
apt update -q=2 ;\
12-
apt install -q=2 --yes --no-install-recommends python3 python3-dev python3-pip python3-setuptools git build-essential ;\
13-
pip3 install --break-system-packages -U pip;\
14-
apt clean ;\
15-
rm -rf /var/lib/apt/lists/* ;\
16-
cd /opt/labgrid ;\
17-
SETUPTOOLS_SCM_PRETEND_VERSION="$VERSION" pip3 install --break-system-packages --no-cache-dir .
10+
RUN apt update -q=2 && \
11+
apt install -q=2 --yes --no-install-recommends python3 python3-dev python3-pip python3-setuptools git build-essential && \
12+
rm -rf /var/lib/apt/lists/* && \
13+
pip3 config --site set global.break-system-packages true && \
14+
pip3 config --site set global.root-user-action ignore && \
15+
cd /opt/labgrid && \
16+
SETUPTOOLS_SCM_PRETEND_VERSION="$VERSION" pip3 install --no-cache-dir .
1817

1918
#
2019
# Client
2120
#
2221
FROM labgrid-base AS labgrid-client
2322
ARG VERSION
2423

25-
RUN set -e ;\
26-
pip3 install --break-system-packages yq ;\
27-
apt update -q=2 ;\
28-
apt install -q=2 --yes --no-install-recommends microcom openssh-client rsync jq qemu-system qemu-utils ;\
29-
apt clean ;\
24+
RUN pip3 install yq && \
25+
apt update -q=2 && \
26+
apt install -q=2 --yes --no-install-recommends microcom openssh-client rsync jq qemu-system qemu-utils && \
3027
rm -rf /var/lib/apt/lists/*
3128

3229
CMD ["/bin/bash"]
@@ -53,10 +50,8 @@ ARG VERSION
5350

5451
COPY dockerfiles/exporter/entrypoint.sh /entrypoint.sh
5552

56-
RUN set -e ;\
57-
apt update -q=2 ;\
58-
apt install -q=2 --yes --no-install-recommends ser2net ;\
59-
apt clean ;\
53+
RUN apt update -q=2 && \
54+
apt install -q=2 --yes --no-install-recommends ser2net && \
6055
rm -rf /var/lib/apt/lists/*
6156

6257
VOLUME /opt/conf

dockerfiles/staging/dut/Dockerfile

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
1-
FROM debian:bookworm-slim
1+
FROM debian:trixie-slim
22

33
LABEL org.opencontainers.image.authors="mail@krevsbech.dk"
44

55
ENV DEBIAN_FRONTEND=noninteractive
66

7-
RUN set -e ;\
8-
apt update -q=2 ;\
9-
apt install -q=2 --yes --no-install-recommends openssh-server;\
10-
apt clean ;\
11-
rm -rf /var/lib/apt/lists/* ;\
12-
mkdir /var/run/sshd ;\
13-
echo 'root:PASSWORD' | chpasswd ;\
14-
echo 'PermitRootLogin yes' >> /etc/ssh/sshd_config ;\
7+
RUN apt update -q=2 && \
8+
apt install -q=2 --yes --no-install-recommends openssh-server && \
9+
rm -rf /var/lib/apt/lists/* && \
10+
echo 'root:PASSWORD' | chpasswd && \
11+
echo 'PermitRootLogin yes' >> /etc/ssh/sshd_config && \
1512
sed 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g' -i /etc/pam.d/sshd
1613
# SSH login fix. Otherwise user is kicked off after login
1714

0 commit comments

Comments
 (0)