Skip to content

Commit d058bc6

Browse files
authored
Create Dockerfile PI5
1 parent 5ec7e74 commit d058bc6

File tree

1 file changed

+63
-0
lines changed

1 file changed

+63
-0
lines changed

Diff for: Dockerfile PI5

+63
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# basic image for building ax25
2+
# Ubuntu works on pi4 but armhf apps have segmentation fault on pi5
3+
# FROM ubuntu
4+
# Ubuntu Jammy works on raspberry 5
5+
FROM ubuntu:22.04
6+
# Debian works on pi4, not on pi5:
7+
# bookworm armhf apps have problems with libc.so.6 or libm.so.6
8+
# bullsaye does not accept the HamNet openvpn file
9+
# FROM debian:bookworm
10+
11+
# some info
12+
LABEL description="HAM Radio AX25 experiment"
13+
LABEL version="0.13"
14+
LABEL build="Hackberry Lane"
15+
LABEL email="[email protected]"
16+
17+
# Make it multiarch for XNet
18+
RUN dpkg --add-architecture armhf
19+
20+
# Update from the external repo
21+
RUN apt update && apt upgrade -y && apt autoremove -y
22+
23+
# some extra service needed in container
24+
RUN apt install -y kmod net-tools telnet xinetd openvpn screen curl procps
25+
26+
# and a timezone would be handy (ENV TZ=Europe/Amsterdam in docker-compose.yml)
27+
ARG DEBIAN_FRONTEND=noninteractive
28+
ENV TZ=Europe/Amsterdam
29+
RUN apt-get install -y tzdata
30+
31+
# install ax25 stuff
32+
RUN apt install -y --install-recommends libax25 ax25-apps ax25-tools uronode fbb
33+
RUN apt install -y --install-recommends socat aprsdigi aprx
34+
35+
# armhf cross platform essential
36+
RUN apt install -y --install-recommends crossbuild-essential-armhf
37+
RUN apt install -y --install-recommends libc6:armhf libstdc++6:armhf
38+
39+
# this is where we want our config
40+
VOLUME ["/etc/ax25","/opt","/etc/openvpn","/var/ax25"]
41+
EXPOSE 3600 3694 6300 93/udp 1194/udp
42+
43+
# let's copy some needed files
44+
ADD ./ax25 /etc/ax25
45+
ADD ./varl /var/lib
46+
ADD ./varf /var/ax25
47+
ADD ./xnet /opt/xnet
48+
ADD ./xrpi /opt/xrpi
49+
ADD ./bpq /opt/bpq
50+
ADD ./startup /opt/startup
51+
ADD ./rc.local /etc/rc.local
52+
ADD ./ax25.sh /opt/startup/ax25.sh
53+
54+
# Uronode
55+
ADD ./uronode /etc/xinetd.d
56+
# services to add
57+
RUN echo "uronode 3694/tcp # Node/URONode packet" >> /etc/services
58+
59+
# let's start off in /opt
60+
#WORKDIR /opt
61+
62+
## It starts
63+
CMD /etc/rc.local

0 commit comments

Comments
 (0)