[evince] .gitlab-ci: Add scripts to update Docker image for CI



commit fab38620a734e1b97242b77c967d687bfd5ba3fa
Author: Germán Poo-Caamaño <gpoo gnome org>
Date:   Thu May 7 22:04:28 2020 -0400

    .gitlab-ci: Add scripts to update Docker image for CI

 .gitlab-ci/README.md         | 21 +++++++++++++++++++++
 .gitlab-ci/setup-ubuntu.sh   | 25 +++++++++++++++++++++++++
 .gitlab-ci/ubuntu.Dockerfile |  9 +++++++++
 3 files changed, 55 insertions(+)
---
diff --git a/.gitlab-ci/README.md b/.gitlab-ci/README.md
new file mode 100644
index 00000000..1848583a
--- /dev/null
+++ b/.gitlab-ci/README.md
@@ -0,0 +1,21 @@
+Evince CI infrastructure
+------------------------
+
+Evince uses Docker containers, generated using `docker`. Evince uses
+a custom image to install large number of packages, like the LaTeX ones,
+and ghostscript, which are are required to build support for DVI and
+PostScript.
+
+Building a Docker image for Evince CI
+-------------------------------------
+
+Steps for building a docker image:
+
+```
+docker login registry.gitlab.gnome.org
+```
+
+```
+$ docker build -t registry.gitlab.gnome.org/gnome/evince/master-amd64 -f ubuntu.Dockerfile .
+$ docker push registry.gitlab.gnome.org/gnome/evince/master-amd64
+```
diff --git a/.gitlab-ci/setup-ubuntu.sh b/.gitlab-ci/setup-ubuntu.sh
new file mode 100644
index 00000000..6b72079c
--- /dev/null
+++ b/.gitlab-ci/setup-ubuntu.sh
@@ -0,0 +1,25 @@
+#!/bin/bash
+
+export DEBIAN_FRONTEND=noninteractive
+
+apt-get -yqq update
+apt-get -yqq install apt-utils
+apt-get -yq install gnome-common libglib2.0-dev-bin \
+                    yelp-tools itstool gtk-doc-tools \
+                                       appstream \
+                                   libgirepository1.0-dev  \
+                    libgtk-3-dev libgstreamer1.0-dev \
+                                   libgstreamer-plugins-base1.0-dev \
+                                   libxml2-dev libxml2-utils \
+                                   libnautilus-extension-dev \
+                                   libsecret-1-dev libgspell-1-dev libgnome-desktop-3-dev \
+                    libpoppler-glib-dev poppler-data \
+                                   libspectre-dev libtiff5-dev libdjvulibre-dev \
+                                   libkpathsea-dev libarchive-dev libgxps-dev \
+                               ccache systemd ninja-build python3-pip
+apt-get clean
+rm -rf /var/lib/apt/lists/*
+
+pip3 install meson
+
+useradd -u 1984 -ms /bin/bash user
diff --git a/.gitlab-ci/ubuntu.Dockerfile b/.gitlab-ci/ubuntu.Dockerfile
new file mode 100644
index 00000000..5e5566aa
--- /dev/null
+++ b/.gitlab-ci/ubuntu.Dockerfile
@@ -0,0 +1,9 @@
+FROM ubuntu:20.04
+
+ENV LANG C.UTF-8
+
+ADD setup-ubuntu.sh /opt/
+RUN /bin/bash /opt/setup-ubuntu.sh
+
+USER user
+WORKDIR /home/user


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]