Do not change Gerrit files ownership The Gerrit volumes mounted externally do not allow changing files ownership from the container and therefore would result in the failure of the container. It was originally working but it isn't supported anymore from Docker 2.4.x onwards. Bug: Issue 13822 Change-Id: Ie27524cb834e67b1729cb4c600e47d6010043f85
diff --git a/src/test/docker/gerrit/start.sh b/src/test/docker/gerrit/start.sh index 65804b3..0dae4c3 100755 --- a/src/test/docker/gerrit/start.sh +++ b/src/test/docker/gerrit/start.sh
@@ -5,8 +5,6 @@ wait-for-it.sh $WAIT_FOR -t 600 -- echo "$WAIT_FOR is up" fi -chown -R gerrit: /var/gerrit - sudo -u gerrit cp /var/gerrit/etc/gerrit.config.orig /var/gerrit/etc/gerrit.config sudo -u gerrit cp /var/gerrit/etc/high-availability.config.orig /var/gerrit/etc/high-availability.config