diff options
Diffstat (limited to 'gitolite/Dockerfile')
| -rw-r--r-- | gitolite/Dockerfile | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gitolite/Dockerfile b/gitolite/Dockerfile index f6749f7..8ac87f6 100644 --- a/gitolite/Dockerfile +++ b/gitolite/Dockerfile @@ -17,6 +17,11 @@ VOLUME /etc/ssh/keys # Volume used to store all Gitolite data (keys, config and repositories), initialized on first run VOLUME /var/lib/git +# Permissions are fixed in docker-entrypoint.sh +RUN mkdir -p /var/lib/git/local/hooks/common +COPY post-receive /var/lib/git/local/hooks/common/ +RUN chmod +x /var/lib/git/local/hooks/common/post-receive + # Entrypoint responsible for SSH host keys generation, and Gitolite data initialization COPY docker-entrypoint.sh / RUN chmod +x /docker-entrypoint.sh @@ -26,5 +31,4 @@ ENTRYPOINT ["/docker-entrypoint.sh"] EXPOSE 22 # Default command is to run the SSH server - CMD ["sshd"] |
