Skip to content

Gitpod ports await look also is the service available #13802

Open
@shyim

Description

@shyim

Is your feature request related to a problem? Please describe

When you start a MySQL server in Docker and you want to execute a MySQL command directly it's annoying as you have to wait for the right moment where the server is available

With gp ports await 3306 you get notified when the port is reachable. But port reachable is not the same as useable. You get then weird errors like `MySQL server has gone away'.

Describe the behaviour you'd like

Add an --type mysql to the command to try to connect to the MySQL server instead of just looking is the port open

Describe alternatives you've considered

until mysqladmin ping; do
          sleep 1
done

Works but for DX it would be better I guess when it would be easier to do that

Additional context

I would like to implement that also

Originally asked at Discord.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions