From fcea6e0e9e02ee7904a519863cc0bb8f44034375 Mon Sep 17 00:00:00 2001 From: Manuel de Brito Fontes Date: Wed, 25 May 2016 22:37:16 -0300 Subject: [PATCH] Use ubuntu-slim to reduce size of the iperf:e2e image --- test/images/iperf/Dockerfile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/test/images/iperf/Dockerfile b/test/images/iperf/Dockerfile index af478e10b4..a0abaa1cee 100644 --- a/test/images/iperf/Dockerfile +++ b/test/images/iperf/Dockerfile @@ -12,9 +12,10 @@ # See the License for the specific language governing permissions and # limitations under the License. -FROM fedora +FROM gcr.io/google_containers/ubuntu-slim:0.2 MAINTAINER jay@apache.org -RUN dnf install -y git gcc gcc-c++ make -RUN git clone https://github.com/esnet/iperf.git -RUN cd iperf && git checkout 2.0.4-RELEASE && ./configure && make && make install && rm -rf iperf +RUN apt-get update && apt-get install -y --no-install-recommends iperf bash \ + && apt-get clean -y \ + && rm -rf /var/lib/apt/lists/* \ + && ln -s /usr/bin/iperf /usr/local/bin/iperf RUN ls -altrh /usr/local/bin/iperf