summaryrefslogtreecommitdiffstats
path: root/docker
diff options
context:
space:
mode:
authorfmenguy <francoisregis.menguy@orange.com>2020-04-14 11:37:27 +0200
committerfmenguy <francoisregis.menguy@orange.com>2020-04-14 11:41:49 +0200
commiteca4818caf553f8950934bc9ee05ce26162d395f (patch)
treef8ed43c7b59f933c31112ffab4f7e44fa00c9b23 /docker
parentae6e172471fef8bef60d497eedaf199966ffb799 (diff)
Add no-check-certificate option in TRex release download to avoid error on image build
Change-Id: Ia7a36c13c43e801d30c80fc24b82a197f8a60182 Signed-off-by: fmenguy <francoisregis.menguy@orange.com>
Diffstat (limited to 'docker')
-rw-r--r--docker/Dockerfile12
1 files changed, 5 insertions, 7 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile
index cdd7f92..8cebd47 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -23,16 +23,14 @@ RUN apt-get update && apt-get install -y \
iproute2 \
libelf1 \
&& ln -s /usr/bin/python3.6 /usr/local/bin/python3 \
- && mkdir -p /opt/trex/$TREX_VER \
+ && mkdir -p /opt/trex \
&& mkdir /var/log/nfvbench \
- && mkdir /tmp/trex \
- && wget --no-cache https://github.com/cisco-system-traffic-generator/trex-core/archive/$TREX_VER.tar.gz \
- && tar xzf $TREX_VER.tar.gz --strip-components=1 -C /tmp/trex \
+ && wget --no-cache --no-check-certificate https://trex-tgn.cisco.com/trex/release/$TREX_VER.tar.gz \
+ && tar xzf $TREX_VER.tar.gz -C /opt/trex \
&& rm -f /$TREX_VER.tar.gz \
- && cp -a /tmp/trex/scripts/automation/trex_control_plane/interactive/trex /usr/local/lib/python3.6/dist-packages/ \
- && cp -a /tmp/trex/scripts/* /opt/trex/$TREX_VER/ \
+ && rm -f /opt/trex/$TREX_VER/trex_client_$TREX_VER.tar.gz \
+ && cp -a /opt/trex/$TREX_VER/automation/trex_control_plane/interactive/trex /usr/local/lib/python3.6/dist-packages/ \
&& rm -rf /opt/trex/$TREX_VER/automation/trex_control_plane/interactive/trex \
- && rm -rf /tmp/trex \
&& wget https://bootstrap.pypa.io/get-pip.py \
&& python3 get-pip.py \
&& pip3 install -U pbr \