apache / gravitino-playground

A playground to experience Gravitino
Apache License 2.0
18 stars 13 forks source link

[Improvement] Add port checks for MySQL and Postgres #22

Open justinmclean opened 5 months ago

justinmclean commented 5 months ago

Add scripts to check if ports are in use and that means the user is likely running MySQl or Posgres locally. I assume for this scripts to run new MySQL and Postgres docker images will need to be made. I tested the scripts manually and they detected if the port was in use.

qqqttt123 commented 5 months ago

Think twice. The shell shouldn't take effect. The shell of init.sh should be executed in the Docker image container. The ports are available all the time.

justinmclean commented 5 months ago

Ah, yes, you are right. This doesn't fix the issue; I'll pull the script out and place them in the launch script.

qqqttt123 commented 5 months ago

Is the scrip ok for both mac and linux?

justinmclean commented 5 months ago

Is the script ok for both Mac and Linux?

Yep see https://manpages.ubuntu.com/manpages/bionic/en/man8/lsof.8.html