Merge "Trust user in Gerrit docker setup"
diff --git a/src/test/docker/etc/gerrit.config b/src/test/docker/etc/gerrit.config
index 59b5f4b..d07b58b 100644
--- a/src/test/docker/etc/gerrit.config
+++ b/src/test/docker/etc/gerrit.config
@@ -6,6 +6,7 @@
 	type = LUCENE
 [auth]
 	type = DEVELOPMENT_BECOME_ANY_ACCOUNT
+	trustContainerAuth = true
 	cookiedomain = localhost
 [sendemail]
 	smtpServer = localhost
diff --git a/src/test/docker/gerrit/start_gerrit.sh b/src/test/docker/gerrit/start_gerrit.sh
index ba2ed5e..948e4bf 100755
--- a/src/test/docker/gerrit/start_gerrit.sh
+++ b/src/test/docker/gerrit/start_gerrit.sh
@@ -7,7 +7,7 @@
 if [[ ! -f /var/gerrit/etc/ssh_host_ed25519_key ]]
 then
   echo "Initializing Gerrit site ..."
-  java -jar /var/gerrit/bin/gerrit.war init -d /var/gerrit --batch
+  java -jar /var/gerrit/bin/gerrit.war init --dev -d /var/gerrit --batch
 fi
 
 echo "Reindexing Gerrit ..."