| # Setup container with Ubuntu 22.04 image |
| # Set the working directory to / |
| # expose ports for openvswitch-switch |
| RUN apt-get update -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 && \ |
| rm -rf /var/lib/apt/lists/* && \ |
| pip3 install -r requirements.txt && \ |
| ./install.sh -y --source && \ |
| cd dl/mininet && make install && cd ../.. && \ |
| cd dl/mininet-wifi && make install && cd ../.. && \ |
| rm -rf dl && rm -rf /var/lib/apt/lists/* && cd / |
| COPY docker/ENTRYPOINT.sh / |
| RUN chmod +x ENTRYPOINT.sh |
| # Change the working directory to /mini-ndn |
| ENTRYPOINT ["/ENTRYPOINT.sh"] |