-
Notifications
You must be signed in to change notification settings - Fork 840
Add flag to define Marathon PORT prefix #1254
Comments
The question is where to define this? In the AppDefinition or globally (as suggested on the mailing list). To keep Marathon jsons portable between installations, I would vote for the AppDefinition. |
Maybe a mix makes sense. Set it global with a marathon start parameter but it still can be overwritten in a json app definition. |
@MikeMichel just to check if I understood it correctly: you are talking about environment variable name clashes, right? So if you have a container which also uses the Correct? |
Hi, right. Apps like nodejs usually do a process.env.PORT just to name one. One of the last official elasticsearch containers also had this problem. A prefix would prevent this. |
I guess, we should have prefixed all automatic variables with In my opinion, we should definitely enable defining this per AppDefinition since a global setting would potentially invalidate existing app configurations. That would also allow migration of the config on a per app basis. We can either make the prefix port variable specific or more general. What would be a good name for a general prefix attribute of the app definition? I guess the setting should not effect
since they are already prefixed. All ports related variables should be prefixed. We also set I would like to hear the opinion of @drexin and @ConnorDoyle about that as well. |
@kolloch is there a time frame to get this done? |
@kolloch 0.10.0 seems to be far away. could you give me a hint where to disable this override in the source code? |
Hi @MikeMichel , unfortunately, you are absolutely right because many things in 0.10.0 will actually be shifted to even later releases. The code is in Does it help you to make this a global setting (since that's easier to do)? That might make migrations difficult, though. |
yes, a global setting would be absolutely fine. |
Fixes #1254 - Add flag to define Marathon PORT prefix.
Marathon overrrides the PORT env inside the container. This can be a nice feature but is also causing trouble if you need to connect to the port the container app did set to PORT.
A flag to set env prefix for the ports marathon sets would solve this.
The text was updated successfully, but these errors were encountered: