Merge "Expose volume for tmp dir, add dirs for hooks and static"

This commit is contained in:
Zuul 2019-10-16 22:53:39 +00:00 committed by Gerrit Code Review
commit 6cc8598305
2 changed files with 9 additions and 5 deletions

View File

@ -34,8 +34,10 @@ RUN addgroup gerrit --gid 3000 --system \
USER gerrit
# Download the gerrit war
RUN mkdir /var/gerrit/bin && \
wget https://tarballs.openstack.org/gerrit/gerrit-v2.13.12.11.1707fec.war -O /var/gerrit/bin/gerrit.war
RUN mkdir /var/gerrit/bin \
&& mkdir /var/gerrit/hooks \
&& mkdir /var/gerrit/static \
&& wget https://tarballs.openstack.org/gerrit/gerrit-v2.13.12.11.1707fec.war -O /var/gerrit/bin/gerrit.war
# Install plugins
RUN mkdir /var/gerrit/plugins && \
@ -53,7 +55,7 @@ RUN mkdir /var/gerrit/lib && \
# Allow incoming traffic
EXPOSE 29418 8080
VOLUME /var/gerrit/git /var/gerrit/index /var/gerrit/cache /var/gerrit/db /var/gerrit/etc /var/log/gerrit
VOLUME /var/gerrit/git /var/gerrit/index /var/gerrit/cache /var/gerrit/db /var/gerrit/etc /var/log/gerrit /var/gerrit/tmp
RUN ln -s /var/log/gerrit /var/gerrit/logs

View File

@ -42,12 +42,14 @@ RUN addgroup gerrit --gid 3000 --system \
gerrit
USER gerrit
RUN mkdir /var/gerrit/bin
RUN mkdir /var/gerrit/bin \
&& mkdir /var/gerrit/hooks \
&& mkdir /var/gerrit/static
# Allow incoming traffic
EXPOSE 29418 8080
VOLUME /var/gerrit/git /var/gerrit/index /var/gerrit/cache /var/gerrit/db /var/gerrit/etc /var/log/gerrit
VOLUME /var/gerrit/git /var/gerrit/index /var/gerrit/cache /var/gerrit/db /var/gerrit/etc /var/log/gerrit /var/gerrit/tmp
RUN ln -s /var/log/gerrit /var/gerrit/logs