| Giorgi Lekveishvili | 285ab62 | 2023-11-22 13:50:45 +0400 | [diff] [blame^] | 1 | ARG TAG=latest |
| 2 | FROM base:${TAG} |
| 3 | |
| 4 | # Install apache2 |
| 5 | RUN apk update && \ |
| 6 | apk add --no-cache \ |
| 7 | apache2 \ |
| 8 | apache2-ctl \ |
| 9 | apache2-utils \ |
| 10 | git-daemon \ |
| 11 | logrotate && \ |
| 12 | rm /etc/apache2/conf.d/default.conf && \ |
| 13 | rm /etc/apache2/conf.d/info.conf |
| 14 | |
| 15 | # Configure git-http-backend |
| 16 | COPY config/git-http-backend.conf /etc/apache2/conf.d/ |
| 17 | COPY config/envvars /usr/sbin/envvars |
| 18 | COPY config/httpd.conf /etc/apache2/httpd.conf |
| 19 | COPY config/logrotation /etc/logrotate.d/apache2 |
| 20 | |
| 21 | COPY tools/start /var/tools/start |
| 22 | COPY tools/project_admin.sh /var/cgi/project_admin.sh |
| 23 | |
| 24 | RUN mkdir -p /var/gerrit/git && \ |
| 25 | mkdir -p /var/log/apache2 && \ |
| 26 | chown -R gerrit:users /var/gerrit/git && \ |
| 27 | chown -R gerrit:users /var/log/apache2 |
| 28 | |
| 29 | # Start |
| 30 | ENTRYPOINT ["ash", "/var/tools/start"] |