From 7f375b8097e7a44cc5924bf1cee5159593cbe0eb Mon Sep 17 00:00:00 2001 From: Johannes Stoelp Date: Wed, 14 Dec 2022 23:04:46 +0100 Subject: git: add role to build and start gitolite-cgit This contains a role to build and start a gitolite-cgit container. Additionally this installed a firewall rule to open the gitolite sshd port. --- roles/git/files/gitolite-cgit/Dockerfile | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 roles/git/files/gitolite-cgit/Dockerfile (limited to 'roles/git/files/gitolite-cgit/Dockerfile') diff --git a/roles/git/files/gitolite-cgit/Dockerfile b/roles/git/files/gitolite-cgit/Dockerfile new file mode 100644 index 0000000..509a611 --- /dev/null +++ b/roles/git/files/gitolite-cgit/Dockerfile @@ -0,0 +1,25 @@ +FROM alpine:latest + +RUN apk add --update-cache --upgrade --no-cache --purge \ + gitolite openssh \ + cgit nginx fcgiwrap spawn-fcgi \ + py3-markdown py3-pygments \ + && rm -rf /var/cache/apk + +VOLUME /var/lib/git +EXPOSE 22 80 + +# -- sshd +COPY etc/sshd_config /etc/ssh/sshd_config + +# -- nginx +COPY etc/cgit.conf /etc/nginx/http.d + +# -- cgit +COPY etc/cgitrc /etc/cgitrc + +# -- gitolite +COPY etc/gitolite.rc /etc/gitolite.rc + +COPY entrypoint.sh / +ENTRYPOINT ["/entrypoint.sh"] -- cgit v1.2.3