[gimp-web/oscp] docs/docs_build: Switch to CentOS Stream 8, add CI



commit b7eda20af08729e4c9f3c1d4a060f45c4cf0fb48
Author: Bartłomiej Piotrowski <bpiotrowski gnome org>
Date:   Tue May 24 15:56:51 2022 +0200

    docs/docs_build: Switch to CentOS Stream 8, add CI

 .gitlab-ci.yml                         |  7 +++++++
 docs.gimp.org/docs_build/Dockerfile    | 14 +++++---------
 docs.gimp.org/docs_build/entrypoint.sh |  2 +-
 3 files changed, 13 insertions(+), 10 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 5a776c2e..d8a8cd02 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -44,3 +44,10 @@ testing.gimp.org:
     - .build
   variables:
     OCI_TAG: testing
+
+docs_build:
+  extends:
+    - .build
+  variables:
+    OCI_TAG: docs_build
+    CI_JOB_NAME: docs.gimp.org/docs_build
diff --git a/docs.gimp.org/docs_build/Dockerfile b/docs.gimp.org/docs_build/Dockerfile
index ad080a4e..c1a72dd5 100644
--- a/docs.gimp.org/docs_build/Dockerfile
+++ b/docs.gimp.org/docs_build/Dockerfile
@@ -1,14 +1,10 @@
-FROM centos:7
-USER root
+FROM quay.io/centos/centos:stream8
 
-RUN yum install -y docbook-dtds docbook-style-dsssl docbook-style-xsl rsync \
-                   docbook-utils-pdf docbook-utils git autoconf automake make \
-                   libxslt gettext python3
-
-RUN groupadd gimpdocs -g 1000580000 && \
-    useradd gimpdocs -g 1000580000 -u 1000580000 -r -l -m
+RUN yum install -y docbook-dtds docbook-style-xsl rsync \
+                   git autoconf automake make pkg-config \
+                   libxslt gettext python3 librsvg2-tools
 
 ADD entrypoint.sh /entrypoint.sh
 
-USER 1000580000
+USER 1001
 ENTRYPOINT ["/entrypoint.sh"]
diff --git a/docs.gimp.org/docs_build/entrypoint.sh b/docs.gimp.org/docs_build/entrypoint.sh
index a85cd666..0b0ebb42 100755
--- a/docs.gimp.org/docs_build/entrypoint.sh
+++ b/docs.gimp.org/docs_build/entrypoint.sh
@@ -3,7 +3,7 @@
 set -x
 set -e
 
-git clone --depth 1 https://gitlab.gnome.org/GNOME/gimp-help.git /tmp/gimp-help
+git clone --branch master --single-branch --depth 1 https://gitlab.gnome.org/GNOME/gimp-help.git 
/tmp/gimp-help
 export ALL_LINGUAS="ca da de el en en_GB es fi fr hr it ja ko lt nl nn pt_BR ro ru zh_CN"
 cd /tmp/gimp-help && ./autogen.sh --without-gimp && make
 


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