ContainerSolutions / mesos-starter

https://container-solutions.com/mesos-starter/
45 stars 10 forks source link

Provide port injection for arguments #27

Closed philwinder closed 8 years ago

philwinder commented 8 years ago

E.g. mesos.command.command=./webserver.sh mesos.command.arguments=--port=$MESOS_PORT_0 mesos.docker.command=kibana mesos.docker.arguments=--port=$MESOS_PORT_0

Current thinking is to get the starter to create standardized env vars for the created ports and inject them into the container/command. Then the application can use the env vars.

Martin also suggested SPEL.

mwl commented 8 years ago

Assuming that we map all chosen ports to environment variables, then they should be available in the shell where you run the command?

philwinder commented 8 years ago

yes

mwl commented 8 years ago

This was fixed in #39.