X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2Fvim-emu.git;a=blobdiff_plain;f=Dockerfile;h=a15ddc94f1fa1aded7a03879ed541dc4d5de0578;hp=d603a5d368b893b9caf552afd08a2cefaacfe078;hb=d87400255e1997f85b9cdebc583811b70cca4ab7;hpb=e7217c366e8c80b7f6ce1e108c00ba66be303c6e diff --git a/Dockerfile b/Dockerfile index d603a5d..a15ddc9 100755 --- a/Dockerfile +++ b/Dockerfile @@ -27,6 +27,7 @@ FROM ubuntu:xenial ENV SON_EMU_IN_DOCKER 1 +ENV PIP_DEFAULT_TIMEOUT=100 # install required packages RUN apt-get clean @@ -46,7 +47,9 @@ RUN apt-get update \ sudo # install containernet (using its Ansible playbook) -RUN git clone https://github.com/containernet/containernet.git +# Attention: Containernet installation fixed to specific commit. Change to update to latest Containernet version. +RUN git clone https://github.com/containernet/containernet.git && \ + (cd containernet && git checkout 6fcee82e192c8c0e6447650d6f512842185529ee) WORKDIR /containernet/ansible RUN ansible-playbook -i "localhost," -c local --skip-tags "notindocker" install.yml @@ -57,11 +60,12 @@ RUN ansible-playbook -i "localhost," -c local --skip-tags "notindocker" install. WORKDIR /son-emu RUN python setup.py develop -WORKDIR / +# Hotfix: https://github.com/pytest-dev/pytest/issues/4770 +RUN pip2 install "more-itertools<=5.0.0" # Important: This entrypoint is required to start the OVS service ENTRYPOINT ["/son-emu/utils/docker/entrypoint.sh"] -CMD ["python", "son-emu/examples/default_single_dc_topology.py"] +CMD ["python", "examples/default_single_dc_topology.py"] # open ports for emulator APIs # SONATA GK