Update ambassador image, use the socat -t option

Signed-off-by: Aidan Hobson Sayers <aidanhs@cantab.net>
This commit is contained in:
Aidan Hobson Sayers 2015-10-06 11:43:06 +01:00 committed by Tibor Vass
parent aa9830907a
commit edbb82c900
1 changed files with 12 additions and 10 deletions

View File

@ -78,18 +78,20 @@ the `Using cache` message in the console output.
(For more information, see the [Build cache section](../articles/dockerfile_best-practices.md#build-cache)) in the (For more information, see the [Build cache section](../articles/dockerfile_best-practices.md#build-cache)) in the
`Dockerfile` best practices guide: `Dockerfile` best practices guide:
$ docker build -t SvenDowideit/ambassador . $ docker build -t svendowideit/ambassador .
Uploading context 10.24 kB Sending build context to Docker daemon 15.36 kB
Uploading context Step 0 : FROM alpine:3.2
Step 1 : FROM docker-ut ---> 31f630c65071
---> cbba202fe96b Step 1 : MAINTAINER SvenDowideit@home.org.au
Step 2 : MAINTAINER SvenDowideit@home.org.au
---> Using cache ---> Using cache
---> 51182097be13 ---> 2a1c91448f5f
Step 3 : CMD env | grep _TCP= | sed 's/.*_PORT_\([0-9]*\)_TCP=tcp:\/\/\(.*\):\(.*\)/socat TCP4-LISTEN:\1,fork,reuseaddr TCP4:\2:\3 \&/' | sh && top Step 2 : RUN apk update && apk add socat && rm -r /var/cache/
---> Using cache ---> Using cache
---> 1a5ffc17324d ---> 21ed6e7fbb73
Successfully built 1a5ffc17324d Step 3 : CMD env | grep _TCP= | sed 's/.*_PORT_\([0-9]*\)_TCP=tcp:\/\/\(.*\):\(.*\)/socat -t 100000000 TCP4-LISTEN:\1,fork,reuseaddr TCP4:\2:\3 \& wait/' | sh
---> Using cache
---> 7ea8aef582cc
Successfully built 7ea8aef582cc
When you're done with your build, you're ready to look into [*Pushing a When you're done with your build, you're ready to look into [*Pushing a
repository to its registry*](../userguide/dockerrepos.md#contributing-to-docker-hub). repository to its registry*](../userguide/dockerrepos.md#contributing-to-docker-hub).