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

Guess ports when user fills the image of a service #1211

Open
astrojuanlu opened this issue Aug 22, 2022 · 2 comments
Open

Guess ports when user fills the image of a service #1211

astrojuanlu opened this issue Aug 22, 2022 · 2 comments
Labels
good first issue Good for newcomers improvement An improvement or enhancement to an existing feature.

Comments

@astrojuanlu
Copy link
Contributor

Describe the problem this improvement solves
When I add a new service, I have to have a look at the ports (by default 8080) and usually change them.

Describe the solution you'd like
Since many common applications have standard ports, it would be nice if the UI filled them for me. We already have part of that logic here:

image = service["image"].lower()
if "redis" in image:
service["ports"] = [6379]
elif "postgres" in image:
service["ports"] = [5432]
elif "streamlit" in image:
service["ports"] = [8501]
elif "mysql" in image:
service["ports"] = [3306]
elif "rabbitmq" in image:
service["ports"] = [5672]
elif "tensorflow" in image:
service["ports"] = [6006]
elif "voila" in image:
service["ports"] = [8866]
elif "mlflow" in image:
service["ports"] = [5000]
elif "shiny" in image:
service["ports"] = [8000]
else:
service["ports"] = [8080]

@astrojuanlu astrojuanlu added good first issue Good for newcomers improvement An improvement or enhancement to an existing feature. labels Aug 22, 2022
@astrojuanlu astrojuanlu added the hacktoberfest Issues seeking Hacktoberfest contributions label Sep 30, 2022
@cacrespo
Copy link
Contributor

cacrespo commented Oct 8, 2022

Hello!
I can start working on this topic from October 15. If no one is in charge of this, please assign it to me. I may have to use some spanglish but I think it's not a problem for you. 😄

@astrojuanlu
Copy link
Contributor Author

Thanks @cacrespo! English is preferred in the repo, we can work on that through other channels :)

I'm guessing you're already setting up a local development environment. Keep us posted about your progress.

@ricklamers ricklamers removed the hacktoberfest Issues seeking Hacktoberfest contributions label Nov 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers improvement An improvement or enhancement to an existing feature.
Projects
None yet
Development

No branches or pull requests

3 participants