Merge "Bind mount Gerrit's review_site/data dir"

This commit is contained in:
Zuul 2023-03-01 22:40:15 +00:00 committed by Gerrit Code Review
commit 7420eef7ea
4 changed files with 4 additions and 1 deletions

View File

@ -67,7 +67,7 @@ ADD --chown=gerrit:gerrit https://repo1.maven.org/maven2/org/mariadb/jdbc/mariad
# OpenDev Gerrit listens on 8081 not default of 8080 # OpenDev Gerrit listens on 8081 not default of 8080
EXPOSE 29418 8081 EXPOSE 29418 8081
VOLUME /var/gerrit/git /var/gerrit/index /var/gerrit/cache /var/gerrit/db /var/gerrit/etc /var/log/gerrit /var/gerrit/tmp VOLUME /var/gerrit/git /var/gerrit/index /var/gerrit/cache /var/gerrit/db /var/gerrit/etc /var/log/gerrit /var/gerrit/tmp /var/gerrit/data
RUN ln -s /var/log/gerrit /var/gerrit/logs RUN ln -s /var/log/gerrit /var/gerrit/logs

View File

@ -18,6 +18,7 @@ letsencrypt_gid: 3003
borg_backup_excludes_extra: borg_backup_excludes_extra:
- /home/gerrit2/.launchpadlib/cache/* - /home/gerrit2/.launchpadlib/cache/*
- /home/gerrit2/review_site/cache/* - /home/gerrit2/review_site/cache/*
- /home/gerrit2/review_site/data/*
- /home/gerrit2/review_site/tmp/* - /home/gerrit2/review_site/tmp/*
- /home/gerrit2/review_site/index/* - /home/gerrit2/review_site/index/*
# scratch location for admins # scratch location for admins

View File

@ -12,6 +12,7 @@ gerrit_container_volumes:
- /home/gerrit2/.launchpadlib:/var/gerrit/.launchpadlib - /home/gerrit2/.launchpadlib:/var/gerrit/.launchpadlib
- /home/gerrit2/.ssh:/var/gerrit/.ssh - /home/gerrit2/.ssh:/var/gerrit/.ssh
- /home/gerrit2/review_site/cache:/var/gerrit/cache - /home/gerrit2/review_site/cache:/var/gerrit/cache
- /home/gerrit2/review_site/data:/var/gerrit/data
- /home/gerrit2/review_site/db:/var/gerrit/db - /home/gerrit2/review_site/db:/var/gerrit/db
- /home/gerrit2/review_site/etc:/var/gerrit/etc - /home/gerrit2/review_site/etc:/var/gerrit/etc
- /home/gerrit2/review_site/git:/var/gerrit/git - /home/gerrit2/review_site/git:/var/gerrit/git

View File

@ -53,6 +53,7 @@
mode: 0755 mode: 0755
loop: loop:
- cache - cache
- data
- db - db
- etc - etc
- etc/its - etc/its