forked from rare-freertr/freeRtr-docker
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
executable file
·35 lines (26 loc) · 942 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
FROM debian
MAINTAINER Frederic LOUI <frederic.loui@@renater.fr>
RUN apt-get update
RUN apt-get -f -y dist-upgrade
RUN apt-get -f -y install wget unzip net-tools libpcap-dev openssl iproute2 dpdk openvswitch-switch ethtool default-jre-headless
RUN apt-get clean
RUN mkdir -p /opt/freertr
RUN mkdir -p /opt/freertr/bin
RUN mkdir -p /opt/freertr/src
RUN mkdir -p /opt/freertr/run
WORKDIR /opt/freertr/
RUN wget http://www.freertr.org/rtr.zip
RUN wget http://www.freertr.org/rtr.jar
RUN wget http://www.freertr.org/rtr.ver
RUN wget http://www.freertr.org/rtr-`uname -m`.tgz
RUN mv ./rtr.jar ./bin
RUN mv ./rtr.ver ./bin
RUN unzip ./rtr.zip -d /opt/freertr/src
WORKDIR /opt/freertr/bin
RUN tar xvfz ../rtr-`uname -m`.tar
COPY . /opt/freertr/
WORKDIR /opt/freertr/
VOLUME ./run:/opt/freertr/run
ENV FREERTR_HOSTNAME=freertr \
FREERTR_INTF_LIST="eth2/20010/20011"
CMD ./scripts/freertr.sh -i "$FREERTR_INTF_LIST" -r $FREERTR_HOSTNAME