Closed gaborcsardi closed 8 years ago
Would be :+1: if we could get this in, as it breaks any dokku plugins that rely on the ambassador dockerfile.
:+1: would be great to get this in
Sorry, this is my fault. Ping @SvenDowideit, I have a PR to fix the docker docs when this is merged.
I am getting too many notifications - sorry for the delay :(
LGTM - thank you!
The little shell script in the ambassador image breaks if there are multiple ports that need to be forwarded. The problem is that you have a
wait
after everysocat
line, and then the script stops running at the firstwait
and the other ports won't be forwarded.This came up in the
dokku-rabbitmq
project, that exposes 4 ports using the ambassador image: https://github.com/dokku/dokku-rabbitmq/issues/27This is the problematic line: https://github.com/SvenDowideit/dockerfiles/blob/5bfe59de304fe6f1489e42ddceb37bb980f38a9e/ambassador/Dockerfile#L19
My fix calls
wait
only once, after allsocat
processes have started in the background.So I guess whether you want this fix depends on whether you want to support multiple ports. If not, then I suggest to document this somewhere, because it causes a lot of confusion and delay. :)