-
Notifications
You must be signed in to change notification settings - Fork 10
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
Refactor port resources for application port allocation #29
Comments
This is definitely a step in the right direction. A few thing I would like to add. Spring Boot has support for maps in Properties and YAML, so no need to embed JSON.
Where We don't distinguish between Docker command and Command command. They're just
I'd like to distinguish privileged and unprivileged ports. For security reasons. Eventually by saying that |
Agree with implementation. I don't understand how the port property would make it into the command without explicitly setting it. Do you mean that with images that use an env var by default would be able to use the setting? If so, yes. That would be possible in the first method too. And with regards to the If so, if a user is setting a port number, 514 for example, are we ok with assuming that the user knows he is using a privileged port? |
Quite a few application support picking up environment variables.
Either removing
Good question… But if it's a label we have no real knowledge of the application port. Removing |
Solved by #39 |
My suggestion for implementation:
*
means any port.I.e. take a Map<String, Port> in the resources section. Map ports to env vars, using the as the env var name. Then use the env var in the command.
The text was updated successfully, but these errors were encountered: