TritonDataCenter / containerpilot

A service for autodiscovery and configuration of applications running in containers
Mozilla Public License 2.0
1.12k stars 136 forks source link

support pts #560

Open untoreh opened 6 years ago

untoreh commented 6 years ago

It doesn't seem container pilot supports pseudo terminals:

exec: "tty"

gives not a tty, ofcourse default

exec: [ "sh", "-ic", "tty" ]

this command on the other end, times out

jwreagor commented 6 years ago

@untoreh I haven't been able to think of a use case where this would be useful. Maybe I'm just not focused on the area, can you give me an example?

untoreh commented 6 years ago

I don't have exactly fledged container/cloud example, I mostly run pets with copi, but other containers init services like dumb-init and tini handle it so maybe copi could too, but in general supporting interactive scripts allows for easier debugging, also it would probably be more useful if the -reload flag allowed to just reload singular jobs under copi supervision instead of the whole config

jwreagor commented 6 years ago

Thanks for the info. I'm familiar with dumb-init and tini but not "copi". Do you have a link?

As for -reload, we can't easily change or enhance the semantics around how that functions today. That existing feature is tied to the entire ContainerPilot configuration and process, and not a subset of either.

untoreh commented 6 years ago

i just meant containerpilot :)

jwreagor commented 6 years ago

haha, fair enough.