mirror of
https://github.com/vimagick/dockerfiles
synced 2024-06-28 09:41:20 +00:00
add n2n-arm
This commit is contained in:
parent
ac6df3b57e
commit
cb6e125df4
23
n2n/arm/Dockerfile
Normal file
23
n2n/arm/Dockerfile
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
#
|
||||||
|
# Dockerfile for n2n-arm
|
||||||
|
#
|
||||||
|
|
||||||
|
FROM arm32v7/debian:stretch
|
||||||
|
MAINTAINER EasyPi Software Foundation
|
||||||
|
|
||||||
|
RUN set -xe \
|
||||||
|
&& apt update \
|
||||||
|
&& apt install -y gnupg lsb-release net-tools wget \
|
||||||
|
&& wget -qO- http://packages.ntop.org/apt/ntop.key | apt-key add - \
|
||||||
|
&& { \
|
||||||
|
echo "deb http://apt.ntop.org/stretch_pi armhf/"; \
|
||||||
|
echo "deb http://apt.ntop.org/stretch_pi all/"; \
|
||||||
|
} > /etc/apt/sources.list.d/ntop.list \
|
||||||
|
&& apt update \
|
||||||
|
&& apt install -y n2n \
|
||||||
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
EXPOSE 5645/udp 7654/udp
|
||||||
|
|
||||||
|
ENTRYPOINT ["supernode"]
|
||||||
|
CMD ["-l", "7654"]
|
7
n2n/arm/docker-compose.yml
Normal file
7
n2n/arm/docker-compose.yml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
n2n:
|
||||||
|
image: easypi/n2n-arm
|
||||||
|
entrypoint: ["edge"]
|
||||||
|
command: ["-dn2n0", "-cEasyPi", "-ksecret", "-m11:22:33:44:55:55", "-a10.1.2.100", "-p50001", "-l1.2.3.4:7654"]
|
||||||
|
net: host
|
||||||
|
privileged: true
|
||||||
|
restart: unless-stopped
|
Loading…
Reference in New Issue
Block a user