From: peusterm Date: Fri, 20 Dec 2019 07:47:20 +0000 (+0100) Subject: Fix: Force Python3 in vim-emu container X-Git-Tag: release-v8.0-start~1 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F30%2F8430%2F1;p=osm%2Fvim-emu.git Fix: Force Python3 in vim-emu container Change-Id: I5ee780bc71fbbc5482e8a5db0c23f27b1bd95f2f Signed-off-by: peusterm --- diff --git a/Dockerfile b/Dockerfile index 97b2aad..81aa587 100644 --- a/Dockerfile +++ b/Dockerfile @@ -41,6 +41,11 @@ RUN python3 setup.py develop RUN pip3 install "tinyrpc==1.0.3" RUN pip3 install wheel --upgrade +# Force python3 +RUN mv /usr/bin/python /usr/bin/python2 && \ + ln -s /usr/bin/python3 /usr/bin/python && \ + ln -s /usr/bin/pip3 /usr/bin/pip + # Important: This entrypoint is required to start the OVS service ENTRYPOINT ["/vim-emu/utils/docker/entrypoint.sh"] CMD ["python3", "examples/default_single_dc_topology.py"]