This patch fixes test_vsctl.py to use osrg/ryu-book image as
Mininet container and shortens the testing hours.

Also, this patch removes the Dockerfile for building the Mininet
Docker image.

Signed-off-by: IWASE Yusuke <[email protected]>
---
 .travis.yml                            |  1 -
 ryu/tests/docker/mininet/Dockerfile    | 21 ---------------------
 ryu/tests/docker/mininet/ENTRYPOINT.sh |  7 -------
 ryu/tests/unit/lib/ovs/test_vsctl.py   |  2 +-
 4 files changed, 1 insertion(+), 30 deletions(-)
 delete mode 100644 ryu/tests/docker/mininet/Dockerfile
 delete mode 100644 ryu/tests/docker/mininet/ENTRYPOINT.sh

diff --git a/.travis.yml b/.travis.yml
index b98a6e2..67e9f8b 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -15,7 +15,6 @@ services:
 sudo: required  # Required to enable Docker service
 
 install:
-  - docker build -t ut_mininet ryu/tests/docker/mininet/
   - pip install tox coveralls
 
 script:
diff --git a/ryu/tests/docker/mininet/Dockerfile 
b/ryu/tests/docker/mininet/Dockerfile
deleted file mode 100644
index 6e048bc..0000000
--- a/ryu/tests/docker/mininet/Dockerfile
+++ /dev/null
@@ -1,21 +0,0 @@
-FROM ubuntu:16.04
-
-MAINTAINER IWASE Yusuke <[email protected]>
-
-USER root
-WORKDIR /root
-
-COPY ENTRYPOINT.sh /
-
-RUN apt-get update && apt-get install -y --no-install-recommends \
-    iproute2 \
-    mininet \
-    net-tools \
- && rm -rf /var/lib/apt/lists/* \
- && sed -i -e "s/datapath='kernel'/datapath='user'/" \
-        /usr/lib/python2.7/dist-packages/mininet/node.py \
- && chmod +x /ENTRYPOINT.sh
-
-EXPOSE 6640
-
-ENTRYPOINT ["/ENTRYPOINT.sh"]
diff --git a/ryu/tests/docker/mininet/ENTRYPOINT.sh 
b/ryu/tests/docker/mininet/ENTRYPOINT.sh
deleted file mode 100644
index 2b7e318..0000000
--- a/ryu/tests/docker/mininet/ENTRYPOINT.sh
+++ /dev/null
@@ -1,7 +0,0 @@
-#!/usr/bin/env bash
-
-service openvswitch-switch start
-
-bash
-
-service openvswitch-switch stop
diff --git a/ryu/tests/unit/lib/ovs/test_vsctl.py 
b/ryu/tests/unit/lib/ovs/test_vsctl.py
index c7fe835..d32a536 100644
--- a/ryu/tests/unit/lib/ovs/test_vsctl.py
+++ b/ryu/tests/unit/lib/ovs/test_vsctl.py
@@ -27,7 +27,7 @@ from ryu.lib.ovs import vsctl
 
 LOG = logging.getLogger(__name__)
 
-DOCKER_IMAGE_MININET = 'ut_mininet'
+DOCKER_IMAGE_MININET = 'osrg/ryu-book'
 
 OVSDB_MANAGER_ADDR = 'ptcp:6640'
 OVSDB_SWITCH_ADDR = 'tcp:%s:6640'
-- 
2.7.4


------------------------------------------------------------------------------
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to