Add debian-bullseye-build container

Change-Id: Ie2c75f30a5fc46979812ddfbea349e3d2fa91a7d
This commit is contained in:
Harald Welte 2021-12-15 15:36:12 +01:00 committed by laforge
parent 7b607306b7
commit d3d4bcec41
1 changed files with 70 additions and 0 deletions

View File

@ -0,0 +1,70 @@
ARG REGISTRY=docker.io
ARG UPSTREAM_DISTRO=debian:bullseye
FROM ${REGISTRY}/${UPSTREAM_DISTRO}
# Arguments used after FROM must be specified again
ARG OSMOCOM_REPO_MIRROR="http://download.opensuse.org"
ARG OSMOCOM_REPO_PATH="repositories/network:/osmocom:"
ARG OSMOCOM_REPO="$OSMOCOM_REPO_MIRROR/${OSMOCOM_REPO_PATH}/nightly/Debian_11/"
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y --no-install-recommends \
autoconf \
autoconf-archive \
autogen \
automake \
bison \
build-essential \
cppcheck \
dahdi-source \
debhelper \
devscripts \
dh-autoreconf \
doxygen \
flex \
g++ \
gawk \
gcc \
gcc-arm-none-eabi \
git \
git-buildpackage \
gnupg \
libc-ares-dev \
libdbd-sqlite3 \
libdbi-dev \
libfftw3-dev \
libgnutls28-dev \
libgps-dev \
libgsm1-dev \
libncurses5-dev \
libnewlib-arm-none-eabi \
libortp-dev \
libpcap-dev \
libpcsclite-dev \
libtalloc-dev \
libtool \
libreadline-dev \
libsctp-dev \
libsofia-sip-ua-glib-dev \
libsqlite3-dev \
libssl-dev \
libusb-dev \
libusb-1.0-0-dev \
make \
pkg-config \
sqlite3 \
stow \
telnet \
wget && \
apt-get clean
# Make respawn.sh part of this image, so it can be used by other images based on it
COPY .common/respawn.sh /usr/local/bin/respawn.sh
COPY .common/Release.key /tmp/Release.key
RUN apt-key add /tmp/Release.key && \
rm /tmp/Release.key && \
echo "deb " $OSMOCOM_REPO " ./" > /etc/apt/sources.list.d/osmocom-nightly.list
# Invalidate cache once the repository is updated
ADD $OSMOCOM_REPO/Release /tmp/Release