Wiki Anleitung veraltet
Background
Quelle: https://wiki.freifunk-dresden.de/index.php/Firmware_selber_bauen
python-pip
und python-pathlib
sind ab (mindestens) Ubuntu 20.04 nicht mehr in den Paketquellen unter diesem Namen zu finden.
DoD
apt install python-pip python-pathlib python-pathlib2 python-scandir
ersetzen durch
apt install python3-pip python-pathlib2 python-scandir
Hier mein Docker build container:
Dockerfile
:
FROM ubuntu:20.04
ARG USER_ID=1000
ARG GROUP_ID=1000
ARG DEBIAN_FRONTEND=noninteractive
ENV TZ=Europe/Berlin
RUN apt update &&\
apt install --no-install-recommends -y nodejs git subversion build-essential devscripts debhelper &&\
apt install --no-install-recommends -y dh-systemd python python3 dh-python libssl-dev libncurses5-dev unzip &&\
apt install --no-install-recommends -y gawk zlib1g-dev gcc-multilib flex gettext curl &&\
apt install --no-install-recommends -y wget time rsync jq &&\
rm -rf /var/lib/apt/lists/*
RUN apt update &&\
apt install --no-install-recommends -y python3-pip python-pathlib2 python-scandir &&\
rm -rf /var/lib/apt/lists/*
RUN groupadd -g ${GROUP_ID} builderGroup &&\
useradd -m -u ${USER_ID} -g builderGroup builder
USER builder
WORKDIR /home/builder
COPY . .
VOLUME /home/builder/buildroot
ENTRYPOINT ./build.sh target all