diff --git a/gerrit/Dockerfile b/gerrit/Dockerfile new file mode 100644 index 00000000..e67c7600 --- /dev/null +++ b/gerrit/Dockerfile @@ -0,0 +1,18 @@ +FROM gerritcodereview/gerrit + +USER root +RUN yum -y install zip unzip patch + +RUN \ + unzip /var/gerrit/bin/gerrit.war WEB-INF/lib/gerrit-openid-libopenid.jar && \ + unzip WEB-INF/lib/gerrit-openid-libopenid.jar com/google/gerrit/httpd/auth/openid/LoginForm.html + +COPY add_osmocom.diff /tmp +RUN patch -p0 < /tmp/add_osmocom.diff + +RUN \ + zip -u WEB-INF/lib/gerrit-openid-libopenid.jar com/google/gerrit/httpd/auth/openid/LoginForm.html && \ + zip -u /var/gerrit/bin/gerrit.war WEB-INF/lib/gerrit-openid-libopenid.jar + +USER gerrit + diff --git a/gerrit/add_osmocom.diff b/gerrit/add_osmocom.diff new file mode 100644 index 00000000..f078a96a --- /dev/null +++ b/gerrit/add_osmocom.diff @@ -0,0 +1,11 @@ +--- com/google/gerrit/httpd/auth/openid/LoginForm.html.orig 2018-04-24 21:07:24.000000000 +0800 ++++ com/google/gerrit/httpd/auth/openid/LoginForm.html 2018-04-24 21:08:26.000000000 +0800 +@@ -70,6 +70,8 @@ +
+
+ ++
Sign in with Osmocom
++ +
+ + Sign in with a Launchpad ID