feat: openwrt docker recipe
Some checks failed
arcad/emissary-firmware/pipeline/head There was a failure building this commit

This commit is contained in:
2024-03-13 10:42:53 +01:00
parent ede2142b9f
commit 772f3fff61
4 changed files with 51 additions and 0 deletions

View File

@ -25,6 +25,13 @@ main() {
uci set firewall.@rule[-1].dest_port='443'
uci set firewall.@rule[-1].target='ACCEPT'
uci add firewall rule
uci set firewall.@rule[-1].name='Allow 42521 on WAN'
uci set firewall.@rule[-1].src='wan'
uci set firewall.@rule[-1].proto='tcp'
uci set firewall.@rule[-1].dest_port='42521'
uci set firewall.@rule[-1].target='ACCEPT'
uci commit firewall
# Disable DNS-rebind protection

21
misc/docker/Dockerfile Normal file
View File

@ -0,0 +1,21 @@
ARG OPENWRT_VERSION=
ARG CUSTOM_FILES=
ARG ADDITIONAL_OPENWRT_PACKAGES=
FROM reg.cadoles.com/proxy_cache/openwrt/rootfs:x86-64-${OPENWRT_VERSION}
COPY files/ /
COPY misc/x86/uci/ /etc/config/
COPY misc/x86/uci-defaults/ /etc/uci-defaults/
RUN mkdir -p /var/lock \
&& mkdir -p /var/run \
&& opkg update \
&& opkg install dmidecode ${ADDITIONAL_OPENWRT_PACKAGES} \
&& rm /var/opkg-lists/* \
&& /etc/init.d/emissary-agent enable
STOPSIGNAL SIGKILL
CMD ["/sbin/init"]