blob: 304da77b457859ec06a60359aa4a6ee63aee239b [file] [log] [blame]
Varun Patil047b92c2022-10-14 12:02:51 -07001# Setup container with Ubuntu 22.04 image
2FROM ubuntu:22.04
Varun Patil97a347f2022-05-18 14:09:20 -07003
4# Set the working directory to /
5WORKDIR /
6
7# expose ports for openvswitch-switch
8EXPOSE 6633 6653 6640
9
10# Update container image
11RUN apt-get update -y && \
Varun Patil97a347f2022-05-18 14:09:20 -070012 apt-get install --no-install-recommends -y \
13 lsb-release sudo \
14 zip unzip wget git ca-certificates \
15 curl iproute2 iputils-ping net-tools \
Varun Patil047b92c2022-10-14 12:02:51 -070016 python3 python3-pip \
Varun Patil97a347f2022-05-18 14:09:20 -070017 tcpdump vim x11-xserver-utils xterm && \
18 update-ca-certificates && \
Varun Patil047b92c2022-10-14 12:02:51 -070019 rm -rf /var/lib/apt/lists/* && \
Varun Patil97a347f2022-05-18 14:09:20 -070020 alias python=python3
21
Varun Patil97a347f2022-05-18 14:09:20 -070022COPY . /mini-ndn
23
24RUN cd mini-ndn && \
25 pip3 install -r requirements.txt && \
Varun Patil047b92c2022-10-14 12:02:51 -070026 ./install.sh -y --source && \
27 cd dl/mininet && make install && cd ../.. && \
28 cd dl/mininet-wifi && make install && cd ../.. && \
29 rm -rf dl && rm -rf /var/lib/apt/lists/* && cd /
Varun Patil97a347f2022-05-18 14:09:20 -070030
31COPY docker/ENTRYPOINT.sh /
32RUN chmod +x ENTRYPOINT.sh
33
34# Change the working directory to /mini-ndn
35WORKDIR /mini-ndn
36
37ENTRYPOINT ["/ENTRYPOINT.sh"]