docker-gerrit
docker-gerrit copied to clipboard
Can't install plugin by env GERRIT_INIT_ARGS
Hi im trying to install plugin as you describe in readme, but when im run container i stuck on this:
gerrit_1 |
gerrit_1 | /gerrit-entrypoint.sh: ignoring /docker-entrypoint-init.d/*
gerrit_1 |
gerrit_1 | Waiting for database connection postgres:5432 ...
gerrit_1 | Upgrading gerrit...
gerrit_1 | fatal: No argument is allowed: '--install-plugin=download-commands'
My gerrit service in docker-compose :
version: '3'
services:
gerrit:
image: openfrontier/gerrit
ports:
- "29418:29418"
- "8080:8080"
links:
- postgres
- ldap
depends_on:
- postgres
- ldap
environment:
- WEBURL=http://localhost:8080
- DATABASE_TYPE=postgresql
- DATABASE_HOSTNAME=postgres
- DATABASE_PORT=5432
- DATABASE_DATABASE=reviewdb
- DATABASE_USERNAME=gerrit
- DATABASE_PASSWORD=secret
- AUTH_TYPE=LDAP
- LDAP_SERVER=ldap://ldap
- LDAP_USERNAME=cn=admin,dc=example,dc=org
- LDAP_PASSWORD=secret
- LDAP_ACCOUNTBASE=dc=example,dc=org
- LDAP_ACCOUNTPATTERN=(&(objectClass=person)(uid=$${username}))
- LDAP_ACCOUNTFULLNAME=displayName
- LDAP_ACCOUNTEMAILADDRESS=mail
- DOWNLOAD_SCHEMES=http ssh
- GERRIT_INIT_ARGS='--install-plugin=download-commands'
@9Cube-dpustula
"fatal: No argument is allowed: '--install-all-plugins'
GERRIT_INIT_ARGS is the only place to add this however there's - GERRIT_INIT_ARGS='--install-plugin=download-commands' in your compose file. I wonder where is the '--install-all-plugins' comes from.
Sorry i paste wrong log, at now i checked error again and update my issue with proper log. Mistake was from testing is it problem with this particular plugin or whatever else.
@9Cube-dpustula
I just deployed a fresh new gerrit with almost the same environment variables like yours. I got nothing wrong.
However I deployed it on k8s instead of using docker compose.
Would you please remove - DOWNLOAD_SCHEMES=http ssh
and try again? I've never used docker compose before. I wonder if it's the space between http and ssh cause this.
I removed others env and leave only that one (--install-plugin=download-commands) and still same problem.
Before test I remove container (docker-compose down) and run fresh container.
How about removing single quotes around --install-plugin=download-commands
?
try environment: - "GERRIT_INIT_ARGS=--install-all-plugins"