| # Setup container with Ubuntu 20.04 image |
| # Set the working directory to / |
| # expose ports for openvswitch-switch |
| RUN apt-get update -y && \ |
| apt-get autoremove -y && \ |
| apt-get install --no-install-recommends -y \ |
| zip unzip wget git ca-certificates \ |
| curl iproute2 iputils-ping net-tools \ |
| tcpdump vim x11-xserver-utils xterm && \ |
| update-ca-certificates && \ |
| RUN git clone --depth 1 https://github.com/mininet/mininet.git && \ |
| cd mininet && ./util/install.sh && cd / |
| pip3 install -r requirements.txt && \ |
| ./install.sh -y --ppa && cd / |
| RUN rm -rf /var/lib/apt/lists/* |
| COPY docker/ENTRYPOINT.sh / |
| RUN chmod +x ENTRYPOINT.sh |
| # Change the working directory to /mini-ndn |
| ENTRYPOINT ["/ENTRYPOINT.sh"] |