Add ethtool to the built image.
parent
98be119f9d
commit
e0c13f9ce4
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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/
|
||||
|
|
@ -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 .
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue