Skip to content
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

Fix Devcontainer Port Mapping #463

Open
hoerstl opened this issue Nov 19, 2024 · 2 comments
Open

Fix Devcontainer Port Mapping #463

hoerstl opened this issue Nov 19, 2024 · 2 comments
Assignees

Comments

@hoerstl
Copy link
Contributor

hoerstl commented Nov 19, 2024

This change should be a one-liner.

As it currently stands, the only way to see the mysql database while developing is by running commands via a command line inside the mysql container. You can run vscode and connect to the devcontainer and run mysql -u lsf_user -ppassword and it'll work. If you'd like to run it in a separate terminal, however, we aren't exposing a port to the mysql server. We are exposing port 3308:3308 but inside the container, there seems to be nothing listening to 3308. Since a mysql server runs on the default port 3306, we can't currently create a mysql connection via a terminal outside of the dev container.

mysql -u lsf_user -ppassword -h 127.0.0.1 -P 3308 should connect to the server

Since it doesn't, we should change the port mapping of the db to 3308:3306.

@hoerstl
Copy link
Contributor Author

hoerstl commented Nov 19, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@hoerstl @stevensonmichel and others