Skip to content

local mysql #55

@xinglongjian

Description

@xinglongjian

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions