Files
mikrotik-olsr/container/Dockerfile
T
feedc0de 474da1af9e
Check source / check (push) Successful in 12s
Build OLSR container / image (push) Successful in 5m10s
Let RouterOS own OLSR link addresses
2026-11-19 11:57:42 +01:00

18 lines
846 B
Docker

FROM alpine:3.22 AS build
RUN apk add --no-cache build-base flex bison git linux-headers
COPY container/patches/olsrd-nonlocal-ipv4-src.patch /tmp/olsrd-nonlocal-ipv4-src.patch
RUN git clone https://github.com/OLSR/olsrd.git /src && \
git -C /src checkout 8d2a2500c2f626e45a7d343f2d8160784b34fb37 && \
git -C /src apply /tmp/olsrd-nonlocal-ipv4-src.patch && \
sed -i 's/yyunput(0, NULL);/;/' /src/src/cfgparser/oscan.lex && \
make -C /src -j2 OS=linux DEBUG=0 olsrd
FROM alpine:3.22
RUN apk add --no-cache bird python3 iproute2 iptables
COPY --from=build /src/olsrd /usr/local/sbin/olsrd
COPY --from=build /src/license.txt /usr/share/licenses/olsrd.txt
COPY container/bird.conf.template /opt/olsr/bird.conf.template
COPY container/start.py /opt/olsr/start.py
STOPSIGNAL SIGTERM
ENTRYPOINT ["python3", "-u", "/opt/olsr/start.py"]