Add SDWAN build and test script
[icn.git] / sdwan / build / Dockerfile_1806_mwan3.tpl
1 FROM openwrt-1806-4-base
2
3 #EXPOSE 80
4 ENV http_proxy={docker_proxy}
5 ENV https_proxy={docker_proxy}
6 ENV no_proxy=localhost,120.0.0.1,192.168.*
7
8 RUN mkdir /var/lock && \
9     opkg update && \
10     opkg install uhttpd-mod-lua && \
11     uci set uhttpd.main.interpreter='.lua=/usr/bin/lua' && \
12     uci commit uhttpd && \
13     opkg install mwan3 && \
14     opkg install luci-app-mwan3; exit 0
15
16 COPY system /etc/config/system
17 COPY commands.lua /usr/lib/lua/luci/controller/
18
19 ENV http_proxy=
20 ENV https_proxy=
21 ENV no_proxy=
22
23 USER root
24
25 # using exec format so that /sbin/init is proc 1 (see procd docs)
26 CMD ["/sbin/init"]