Files
mikrotik-olsr/container/Dockerfile
T
feedc0de 22cf76deaf
Check source / check (push) Successful in 16s
Build OLSR container / image (push) Failing after 8m35s
Build NPK and multiarch container releases with native next-hop groundwork
2026-11-19 08:44:02 +01:00

16 lines
696 B
Docker

FROM alpine:3.22 AS build
RUN apk add --no-cache build-base flex bison git linux-headers
RUN git clone https://github.com/OLSR/olsrd.git /src && \
git -C /src checkout 8d2a2500c2f626e45a7d343f2d8160784b34fb37 && \
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"]