Open dhm116 opened 10 years ago
I was trying ambassador and got hit by the same issue. Any solutions ?
The problem is, that /start-socat.sh puts socat into the background by adding an ampersand, but supervisord expects it in foreground. If you change /start-socat.sh to:
#!/bin/bash
env | grep _TCP= | sed 's/.*_PORT_\([0-9]*\)_TCP=tcp:\/\/\(.*\):\(.*\)/socat -ls TCP4-LISTEN:\1,fork,reuseaddr TCP4:\2:\3/' | sh
it should work better.
If I follow the example shown in the readme, I get the following output:
docker run --rm --link something:something --name something_ambassador -p 5000:5000 ctlc/ambassador
I imagine it's failing because even if I attempt to run the
env | grep _TCP= | sed 's/.*_PORT_\([0-9]*\)_TCP=tcp:\/\/\(.*\):\(.*\)/socat -ls TCP4-LISTEN:\1,fork,reuseaddr TCP4:\2:\3 \&/' | sh
command within the container, it produces:Any suggestions?