Debian Codegraph @

.ci/Containerfile.functional-tests-stable

raw
1 # SPDX-License-Identifier: AGPL-3.0-or-later
2
3 FROM debian:stable
4
5 CMD /sbin/init
6 USER root:root
7
8 ENV DEBIAN_FRONTEND=noninteractive
9
10 RUN echo "deb http://deb.debian.org/debian trixie-backports main" > /etc/apt/sources.list.d/backports.list; echo "deb-src http://deb.debian.org/debian trixie-backports main" >> /etc/apt/sources.list.d/backports.list
11
12 RUN apt-get update
13
14 # Update all packages
15 RUN apt-get dist-upgrade -y
16
17 # Install freedombox package so that plint:plinth user/group are created etc.
18 RUN apt-get install -y freedombox/trixie-backports
19 RUN systemctl disable plinth.service
20
21 # Don't ask for the secret in first wizard
22 RUN rm -f /var/lib/plinth/firstboot-wizard-secret
23
24 # Dependencies of the freedombox Debian package
25 RUN apt-get build-dep -y freedombox/trixie-backports
26
27 # Build and test dependencies
28 RUN apt-get install -y \
29 build-essential \
30 parted \
31 sshpass \
32 wget
33
34
35 # Install functional test dependencies
36 ADD https://salsa.debian.org/freedombox-team/freedombox/-/raw/main/plinth/tests/functional/install.sh /usr/src/install.sh
37 RUN bash /usr/src/install.sh; rm -f /usr/src/install.sh
38
39 # Allow daemons to start when container is started
40 RUN rm -f /usr/sbin/policy-rc.d