mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-26 15:36:14 +01:00
e04d2e81fc
We're mostly interested into building and testing everything that gets pushed to the repository — including merge requests. When pushing tags, though, we should assume we're spinning a release, so let's run the dist target, and store the tarball, and the generated documentation while we're at it, as artifacts on GitLab. The Dockerfile for the image used for the build is included in tree, and published on Docker Hub. Using a custom image allows us to avoid the costly "download and install build dependencies" phase, as well as controlling the environment a little bit better. https://bugzilla.gnome.org/show_bug.cgi?id=793635
32 lines
522 B
Docker
32 lines
522 B
Docker
FROM fedora:27
|
|
|
|
RUN dnf -y install \
|
|
desktop-file-utils \
|
|
elfutils-libelf-devel \
|
|
gcc \
|
|
gcc-c++ \
|
|
gettext \
|
|
git \
|
|
glibc-devel \
|
|
glibc-headers \
|
|
gtk-doc \
|
|
itstool \
|
|
libattr-devel \
|
|
libffi-devel \
|
|
libmount-devel \
|
|
libselinux-devel \
|
|
libxslt \
|
|
meson \
|
|
pcre-devel \
|
|
systemtap-sdt-devel \
|
|
zlib-devel
|
|
|
|
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.utf8
|