[gimp-web/oscp] Land pieces for docs.gimp.org migration to OSCP



commit 228c07431b6add62fec5adbc18cae3e480e182db
Author: Andrea Veri <averi redhat com>
Date:   Fri Mar 13 19:40:55 2020 +0100

    Land pieces for docs.gimp.org migration to OSCP

 docs.gimp.org/docs_build/Dockerfile                | 11 +++++++++++
 docs.gimp.org/docs_build/entrypoint.sh             |  9 +++++++++
 docs.gimp.org/httpd/Dockerfile                     |  9 +++++++++
 .../httpd/app_data/httpd-cfg/docs.gimp.org.conf    | 23 ++++++++++++++++++++++
 4 files changed, 52 insertions(+)
---
diff --git a/docs.gimp.org/docs_build/Dockerfile b/docs.gimp.org/docs_build/Dockerfile
new file mode 100644
index 00000000..71ad2ed9
--- /dev/null
+++ b/docs.gimp.org/docs_build/Dockerfile
@@ -0,0 +1,11 @@
+FROM centos:7
+USER root
+
+COPY entrypoint.sh /tmp/entrypoint.sh
+RUN yum install -y docbook-dtds docbook-style-dsssl docbook-style-xsl rsync \
+                   docbook-utils-pdf docbook-utils git autoconf automake
+
+EXPOSE 8080
+
+USER 1000580000
+ENTRYPOINT ["/tmp/entrypoint.sh"]
diff --git a/docs.gimp.org/docs_build/entrypoint.sh b/docs.gimp.org/docs_build/entrypoint.sh
new file mode 100644
index 00000000..87807b17
--- /dev/null
+++ b/docs.gimp.org/docs_build/entrypoint.sh
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+set -x
+
+git clone https://gitlab.gnome.org/GNOME/gimp-help.git /tmp/gimp-help
+cd /tmp/gimp-help && ./autogen.sh --without-gimp && make
+
+rsync -rl /tmp/gimp-help/web/html/* /docs_data
+rm -rf /tmp/gimp-help
diff --git a/docs.gimp.org/httpd/Dockerfile b/docs.gimp.org/httpd/Dockerfile
new file mode 100644
index 00000000..de279197
--- /dev/null
+++ b/docs.gimp.org/httpd/Dockerfile
@@ -0,0 +1,9 @@
+FROM centos/httpd-24-centos7
+USER root
+
+COPY app_data /opt/app-root/src
+
+EXPOSE 8080
+
+USER 1000580000
+ENTRYPOINT ["/usr/bin/run-httpd"]
diff --git a/docs.gimp.org/httpd/app_data/httpd-cfg/docs.gimp.org.conf 
b/docs.gimp.org/httpd/app_data/httpd-cfg/docs.gimp.org.conf
new file mode 100644
index 00000000..c25748b0
--- /dev/null
+++ b/docs.gimp.org/httpd/app_data/httpd-cfg/docs.gimp.org.conf
@@ -0,0 +1,23 @@
+<VirtualHost *:8080>
+    ServerName docs.gimp.org
+
+    ServerAdmin webmaster gimp org
+    DocumentRoot /opt/app-root/src/html
+
+    Header always unset Content-Security-Policy 
+</VirtualHost>
+
+<Location />
+    BrowserMatchNoCase "HTTrack" bad_agent
+
+    Order Deny,Allow
+    Deny from env=bad_agent
+</Location>
+
+<Directory "/opt/app-root/src/html">
+  Require all granted
+</Directory>
+
+<LocationMatch "^/.well-known/acme-challenge">
+  RedirectMatch ^(.*) https://letsencrypt.gnome.org$1
+</LocationMatch>


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