Add ethtool to the built image.

pull/80/head
Dan Lorenc 2016-05-14 19:03:04 -07:00
parent 98be119f9d
commit e0c13f9ce4
3 changed files with 11 additions and 0 deletions

View File

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

5
iso/Dockerfile.ethtool Normal file
View File

@ -0,0 +1,5 @@
FROM golang:1.6
ENV ETHTOOL ethtool-3.16
RUN wget https://www.kernel.org/pub/software/network/ethtool/$ETHTOOL.tar.gz
RUN tar -xvzf $ETHTOOL.tar.gz
RUN cd $ETHTOOL && ./configure LDFLAGS=-static && make && cp ethtool /go/

View File

@ -16,6 +16,11 @@ docker build -t socat -f Dockerfile.socat .
docker run socat cat socat > $tmpdir/socat
chmod +x $tmpdir/socat
# Get ethotool
docker build -t ethtool -f Dockerfile.ethtool .
docker run ethtool cat ethtool > $tmpdir/ethtool
chmod +x $tmpdir/ethtool
# Do the build.
docker build -t iso .