-
Notifications
You must be signed in to change notification settings - Fork 659
Closed
Labels
devopsSomething about CI/CD (devops)Something about CI/CD (devops)type/feature-requestThis issue is a proposal for something newThis issue is a proposal for something new
Description
Lake / Docker / Mac OS + MySQL
Users / Developers in a Mac OS Environment are unable to start Lake with docker-compose up due to a bad MySQL TCP Connection string. To resolve this issue for Mac OS and potentially other environments, please see the steps below.
SOLUTION STEPS
- Update MySQL Docker Configuration in
docker-compose.ymlSETcontainer_name- Define a CONTAINER NAME For the MySQL Instance eg.
container_name: lakeMYSQL
- Define a CONTAINER NAME For the MySQL Instance eg.
- Update Dev Lake's DB_URL Connection String to use Container Name and NOT localhost
DB_URL=merico:merico@tcp(lakeMYSQL:3306)/lake?charset=utf8mb4&parseTime=True
To Reproduce
Steps to reproduce the behavior:
- Go to DevLake project folder (
lake) runningmainbranch - Run
docker-compose upto start services - Notice the Go Init Model fails to connect
/app/models/init.go:31 - DevLake Issues Panic Error and exits with Code 2
Expected behavior
DevLake should startup successfully and connect to the MySQL Service instance when running docker-compose up instead of throwing panic errors.
Screenshots
Additional context
Please see a similar issue below on StackOverflow for addtional context with regard to Go and Docker.
https://stackoverflow.com/questions/52504318/unable-to-connect-to-mysql-server-with-go-and-docker-dial-tcp-127-0-0-13306
Metadata
Metadata
Assignees
Labels
devopsSomething about CI/CD (devops)Something about CI/CD (devops)type/feature-requestThis issue is a proposal for something newThis issue is a proposal for something new


