summaryrefslogtreecommitdiff
path: root/.gitlab-ci/Dockerfile
blob: bc4d4b4ea3c64618f1a89dc1167f7a35c64b4e09 (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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
FROM fedora:34

RUN dnf update -y \
    && dnf install -y \
                      brotli-devel \
                      clang-analyzer \
                      'dnf-command(builddep)' \
                      git \
                      glib2-doc \
                      gnutls-devel \
                      gobject-introspection-devel \
                      gtk-doc \
                      httpd \
                      krb5-devel \
                      lcov \
                      libasan \
                      libpsl-devel \
                      libnghttp2-devel \
                      lsof \
                      make \
                      meson \
                      mod_ssl \
                      python2.7 \
                      redhat-rpm-config \
                      samba-winbind-clients \
                      sqlite-devel \
                      sysprof-devel \
                      valgrind \
                      which \
    && dnf builddep -y glib2 \
    && dnf install --releasever=35 -y vala \
    && dnf clean all \
    && python2.7 -m ensurepip \
    && pip2.7 install virtualenv autobahntestsuite \
    && pip3 install quart

RUN git clone https://gitlab.gnome.org/GNOME/glib.git \
    && pushd glib \
    && git checkout 02742ef957b532789c003eef80ec7f51c370e3d5 \
    && meson _build --prefix=/usr \
    && ninja -C _build install \
    && popd \
    && rm -rf glib

RUN git clone https://gitlab.gnome.org/GNOME/glib-networking.git \
    && pushd glib-networking \
    && git checkout 2.70.alpha \
    && meson _build --prefix=/usr \
    && ninja -C _build install \
    && popd \
    && rm -rf glib-networking

ARG HOST_USER_ID=5555
ENV HOST_USER_ID ${HOST_USER_ID}
RUN useradd -u $HOST_USER_ID -ms /bin/bash user

USER user
WORKDIR /home/user

ENV LANG C.UTF-8