Commit b56712be authored by Stephan Großberndt's avatar Stephan Großberndt
Browse files

[TASK] Use named volumes

Switch to named volumes for cache, db, git, index and logs in order to
improve future compatibility with cloud services like Kubernetes. Move
etc and ssh from volumes to assets as they shall be versioned but
Gerrit may change contents. This means in future extra care has to be
taken when executing docker-build as changed contents inside the
container will be discarded.
parent 6aea20a4
.idea/*
assets/etc/secure.config
assets/etc/ssh_host*
assets/ssh
volumes/cache
volumes/db
volumes/etc/secure.config
volumes/etc/ssh_host*
volumes/git
volumes/index
volumes/logs
volumes/ssh
hook-tokens.env
\ No newline at end of file
......@@ -14,7 +14,6 @@ RUN export DEBIAN_FRONTEND=noninteractive \
USER gerrit
# Add assets
RUN rm -f /var/gerrit/plugins/avatars-gravatar.jar \
......@@ -22,6 +21,7 @@ RUN rm -f /var/gerrit/plugins/avatars-gravatar.jar \
/var/gerrit/plugins/plugin-manager.jar \
/var/gerrit/plugins/webhooks.jar
ADD assets/hooks /var/gerrit/hooks
ADD assets/static /var/gerrit/static
ADD --chown=1000:1000 assets/etc /var/gerrit/etc
ADD --chown=1000:1000 assets/hooks /var/gerrit/hooks
ADD --chown=1000:1000 assets/ssh /var/gerrit/.ssh
ADD --chown=1000:1000 assets/static /var/gerrit/static
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment