Build socat as part of the iso build.

pull/72/head
Dan Lorenc 2016-05-13 09:34:03 -07:00
parent 46fcb77943
commit 3fa98665be
3 changed files with 15 additions and 0 deletions

View File

@ -8,6 +8,7 @@ ENV DOCKER_SHA 8824f8a67fbe55d1e52dcbebc74219ba8090006e
# Add other dependencies here to $ROOTFS/
ADD nsenter $ROOTFS/usr/bin/
ADD socat $ROOTFS/usr/bin
# Get a specific version of Docker. This will overwrite the binary installed
# in the base image.

8
iso/Dockerfile.socat Normal file
View File

@ -0,0 +1,8 @@
FROM golang:1.6
RUN apt-get update && apt-get install libssl-dev -q -y
ENV SOCAT socat-2.0.0-b8
RUN wget http://www.dest-unreach.org/socat/download/$SOCAT.tar.gz
RUN tar -zvxf $SOCAT.tar.gz
RUN cd $SOCAT && ./configure --disable-readline && make && mv ./socat /go/

View File

@ -7,9 +7,15 @@ echo "Building in $tmpdir."
cp -r . $tmpdir/
pushd $tmpdir
# Get nsenter.
docker run --rm jpetazzo/nsenter cat /nsenter > $tmpdir/nsenter && chmod +x $tmpdir/nsenter
# Get socat
docker build -t socat -f Dockerfile.socat .
docker run socat cat socat > $tmpdir/socat
chmod +x $tmpdir/socat
# Do the build.
docker build -t iso .