summaryrefslogtreecommitdiff
path: root/.gitlab-ci/Dockerfile
blob: 3f06d2903793b00eb8d0576a92aec45a8538b887 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
FROM fedora:latest

RUN dnf install --nogpg -y dnf-plugins-core git gnome-desktop-testing dbus-daemon python3-twisted python3-gobject procps-ng bzip2 httpd mod_ssl openssh-server passwd gcc-c++ \
 && dnf builddep --nogpg -y gvfs \
 && dnf clean all

RUN dnf builddep --nogpg -y glib \
 && dnf clean all \
 && git clone --depth 1 https://gitlab.gnome.org/GNOME/glib.git \
 && cd glib \
 && meson . _build --prefix=/usr \
 && ninja -C _build \
 && ninja -C _build install \
 && cd .. \
 && rm -rf glib

RUN dnf builddep --nogpg -y glib-networking \
 && dnf clean all \
 && git clone --depth 1 https://gitlab.gnome.org/GNOME/glib-networking.git \
 && cd glib-networking \
 && meson . _build --prefix=/usr \
 && ninja -C _build \
 && ninja -C _build install \
 && cd .. \
 && rm -rf glib-networking

RUN dnf builddep --nogpg -y libsoup \
 && dnf install -y --nogpg libnghttp2-devel \
 && dnf clean all \
 && git clone --depth 1 https://gitlab.gnome.org/GNOME/libsoup.git \
 && cd libsoup \
 && meson . _build --prefix=/usr \
 && ninja -C _build \
 && ninja -C _build install \
 && cd .. \
 && rm -rf libsoup

RUN sed -i -e 's/# %wheel/%wheel/' /etc/sudoers
RUN useradd -G wheel -m user
RUN passwd -d user
USER user
WORKDIR /home/user
ENV USER user
ENV XDG_RUNTIME_DIR /home/user

RUN ssh-keygen -t rsa -q -N "" -f ~/.ssh/id_rsa