-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile PI5
63 lines (51 loc) · 1.81 KB
/
Dockerfile PI5
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# basic image for building ax25
# Ubuntu works on pi4 but armhf apps have segmentation fault on pi5
# FROM ubuntu
# Ubuntu Jammy works on raspberry 5
FROM ubuntu:22.04
# Debian works on pi4, not on pi5:
# bookworm armhf apps have problems with libc.so.6 or libm.so.6
# bullsaye does not accept the HamNet openvpn file
# FROM debian:bookworm
# some info
LABEL description="HAM Radio AX25 experiment"
LABEL version="0.13"
LABEL build="Hackberry Lane"
LABEL email="[email protected]"
# Make it multiarch for XNet
RUN dpkg --add-architecture armhf
# Update from the external repo
RUN apt update && apt upgrade -y && apt autoremove -y
# some extra service needed in container
RUN apt install -y kmod net-tools telnet xinetd openvpn screen curl procps
# and a timezone would be handy (ENV TZ=Europe/Amsterdam in docker-compose.yml)
ARG DEBIAN_FRONTEND=noninteractive
ENV TZ=Europe/Amsterdam
RUN apt-get install -y tzdata
# install ax25 stuff
RUN apt install -y --install-recommends libax25 ax25-apps ax25-tools uronode fbb
RUN apt install -y --install-recommends socat aprsdigi aprx
# armhf cross platform essential
RUN apt install -y --install-recommends crossbuild-essential-armhf
RUN apt install -y --install-recommends libc6:armhf libstdc++6:armhf
# this is where we want our config
VOLUME ["/etc/ax25","/opt","/etc/openvpn","/var/ax25"]
EXPOSE 3600 3694 6300 93/udp 1194/udp
# let's copy some needed files
ADD ./ax25 /etc/ax25
ADD ./varl /var/lib
ADD ./varf /var/ax25
ADD ./xnet /opt/xnet
ADD ./xrpi /opt/xrpi
ADD ./bpq /opt/bpq
ADD ./startup /opt/startup
ADD ./rc.local /etc/rc.local
ADD ./ax25.sh /opt/startup/ax25.sh
# Uronode
ADD ./uronode /etc/xinetd.d
# services to add
RUN echo "uronode 3694/tcp # Node/URONode packet" >> /etc/services
# let's start off in /opt
#WORKDIR /opt
## It starts
CMD /etc/rc.local