X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2Fvim-emu.git;a=blobdiff_plain;f=Dockerfile;h=a823cdad172a9a6d141290fdfe90715a912dc664;hp=84fa5860da31c92ebffe6a58b1beee571e0a18cd;hb=refs%2Fchanges%2F76%2F7976%2F1;hpb=bbe128904ab07e43a0386f17a500c679ff9059e0 diff --git a/Dockerfile b/Dockerfile index 84fa586..a823cda 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 @@ -42,9 +43,13 @@ RUN apt-get update \ ansible \ curl \ iptables \ - sudo + iputils-ping \ + sudo \ + vim # install containernet (using its Ansible playbook) +#RUN git clone https://github.com/containernet/containernet.git && \ +# (cd containernet && git checkout 6fcee82e192c8c0e6447650d6f512842185529ee) RUN git clone https://github.com/containernet/containernet.git WORKDIR /containernet/ansible RUN ansible-playbook -i "localhost," -c local --skip-tags "notindocker" install.yml @@ -56,11 +61,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