[gimp-web/oscp] redirects_httpd: add a redirect service for GIMP.
- From: Jehan <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp-web/oscp] redirects_httpd: add a redirect service for GIMP.
- Date: Wed, 7 Sep 2022 11:42:26 +0000 (UTC)
commit 870d04c8d02bb4238de03abae58625f972cc2c20
Author: Jehan <jehan girinstud io>
Date: Wed Sep 7 13:38:34 2022 +0200
redirects_httpd: add a redirect service for GIMP.
Based on the redirect service by GNOME:
https://gitlab.gnome.org/Infrastructure/openshift-images/redirects/-/tree/master/redirects_httpd/app_data/httpd-cfg
https://gitlab.gnome.org/Infrastructure/openshift-images/redirects/-/blob/master/redirects_httpd/Dockerfile
Andrea Veri told me we can either make MRs to
Infrastructure/openshift-images/redirects or build our own on gimp-web,
copying what their scripts. I will try the later in order not to have to
make MRs all the time.
.gitlab-ci.yml | 6 ++++++
redirects_httpd/Dockerfile | 9 +++++++++
redirects_httpd/app_data/wiki.gimp.org.conf | 5 +++++
3 files changed, 20 insertions(+)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 646052d7..5bf6511c 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -25,6 +25,12 @@
--dockerfile "${CI_JOB_NAME}/Dockerfile"
$KANIKO_DESTINATION
+redirects_httpd:
+ extends:
+ - .build
+ variables:
+ OCI_TAG: redirects
+
developer.gimp.org:
extends:
- .build
diff --git a/redirects_httpd/Dockerfile b/redirects_httpd/Dockerfile
new file mode 100644
index 00000000..2b39e7ae
--- /dev/null
+++ b/redirects_httpd/Dockerfile
@@ -0,0 +1,9 @@
+FROM registry.access.redhat.com/ubi8/httpd-24:1
+
+USER 0
+ADD app_data /tmp/src/
+RUN chown -R 1001:0 /tmp/src
+
+USER 1001
+RUN /usr/libexec/s2i/assemble
+CMD /usr/libexec/s2i/run
diff --git a/redirects_httpd/app_data/wiki.gimp.org.conf b/redirects_httpd/app_data/wiki.gimp.org.conf
new file mode 100644
index 00000000..7eb177d6
--- /dev/null
+++ b/redirects_httpd/app_data/wiki.gimp.org.conf
@@ -0,0 +1,5 @@
+<VirtualHost *:8080>
+ ServerName wiki.gimp.org
+
+ RedirectPermanent / https://developer.gimp.org/
+</VirtualHost>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]