[SPT] Added downloaded iperf package for vm2vm test
Added possibility to execute vm2vm test in case if
the OpenStack instances have no Internet to install
iperf packages from Internet using apt.
In case if there is no Internet, the deb package is
already dwnloaded and present inside the Docker image.
When VM is ready, the iperf package is transported to
it and installed.
The possibility is configured with 'internet_at_vms'
string option that is 'true' by default.
Change-Id: I45c47f9691f484340e7f4a9decc584dcedb63b6c
Related-PROD: #PROD-32023
diff --git a/Dockerfile b/Dockerfile
index 92a8468..64df905 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -61,7 +61,10 @@
# Cleanup
&& apt-get -y purge libx11-data xauth libxmuu1 libxcb1 libx11-6 libxext6 ppp pppconfig pppoeconf popularity-contest cpp gcc g++ libssl-doc && \
apt-get -y autoremove; apt-get -y clean ; rm -rf /root/.cache; rm -rf /var/lib/apt/lists/* && \
- rm -rf /tmp/* ; rm -rf /var/tmp/* ; rm -rfv /etc/apt/sources.list.d/* ; echo > /etc/apt/sources.list
+ rm -rf /tmp/* ; rm -rf /var/tmp/* ; rm -rfv /etc/apt/sources.list.d/* ; echo > /etc/apt/sources.list \
+
+# Download iperf package
+ && wget http://ftp.br.debian.org/debian/pool/main/i/iperf/iperf_2.0.5+dfsg1-2_amd64.deb -O /var/lib/iperf_2.0.5+dfsg1-2_amd64.deb
ENTRYPOINT ["entrypoint.sh"]
# docker build --no-cache -t cvp-sanity-checks:test_latest .