2020-10-03 14:02:24 +00:00
|
|
|
FROM gerritcodereview/gerrit:3.2.3
|
2018-04-24 13:32:26 +00:00
|
|
|
|
|
|
|
USER root
|
|
|
|
RUN yum -y install zip unzip patch
|
|
|
|
|
2018-12-07 14:53:09 +00:00
|
|
|
# Patch LoginForm.html (unpack and repack from gerrit.war)
|
|
|
|
ARG gerritwar="/var/gerrit/bin/gerrit.war"
|
|
|
|
ARG libopenid="WEB-INF/lib/com_google_gerrit_httpd_auth_openid_libopenid.jar"
|
|
|
|
ARG loginform="com/google/gerrit/httpd/auth/openid/LoginForm.html"
|
|
|
|
|
2018-04-24 13:32:26 +00:00
|
|
|
RUN \
|
2018-12-07 14:53:09 +00:00
|
|
|
unzip "$gerritwar" "$libopenid" && \
|
|
|
|
unzip "$libopenid" "$loginform"
|
2018-04-24 13:32:26 +00:00
|
|
|
|
|
|
|
COPY add_osmocom.diff /tmp
|
|
|
|
RUN patch -p0 < /tmp/add_osmocom.diff
|
|
|
|
|
|
|
|
RUN \
|
2018-12-07 14:53:09 +00:00
|
|
|
zip -u "$libopenid" "$loginform" && \
|
|
|
|
zip -u "$gerritwar" "$libopenid"
|
2018-04-24 13:32:26 +00:00
|
|
|
|
|
|
|
USER gerrit
|
|
|
|
|