-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
local mysql #55
Comments
Hi @xinglongjian |
I set those 2 environment variables and the result is same! ~docker run --name gerrit -e GERRIT_START_ACTION=supervise -v ~/gerrit_volume:/var/gerrit/review_site -p 8080:8080 -p 29418:29418 -e DATABASE_TYPE=mysql -e MYSQL_USER=gerrit2 -e MYSQL_PASSWORD=secret -e MYSQL_DB=reviewdbb -e DB_PORT_3306_TCP_ADDR=localhost -e DB_PORT_3306_TCP_PORT=3306 -e USER_NAME=xinglongjian openfrontier/gerrit:2.12.3 /gerrit-entrypoint.sh: ignoring /docker-entrypoint-init.d/* Upgrading gerrit... |
You need wait mysql container ready. |
May I use local mysql in the docker-gerrit? What variables need to set?
issues occured:
➜ ~ docker run --name gerrit -e GERRIT_START_ACTION=supervise -v ~/gerrit_volume:/var/gerrit/review_site -p 8080:8080 -p 29418:29418 -e DATABASE_TYPE=mysql -e DB_ENV_MYSQL_USER=gerrit2 -e DB_ENV_MYSQL_PASSWORD=secret -e DB_ENV_MYSQL_DB=reviewdb -e USER_NAME=xxx openfrontier/gerrit:2.12.3
/gerrit-entrypoint.sh: ignoring /docker-entrypoint-init.d/*
Upgrading gerrit...
fatal: DbInjector failed
fatal: Unable to determine SqlDialect
fatal: caused by com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
fatal:
fatal: The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
fatal: caused by java.net.ConnectException: Connection refused
The text was updated successfully, but these errors were encountered: