Add debian-buster-erlang container

The idea for this is to be used in build verification for erlang
projects.  We also include C compiler and common utilities for those
projects or upstream dependencies that may require it.

Change-Id: I06c11a188404e183ed04bacf1673ecef2dc9ca47
changes/37/16737/1
Harald Welte 3 years ago
parent 898e276772
commit c76c3f24fd
  1. 50
      debian-buster-erlang/Dockerfile
  2. 1
      debian-buster-erlang/Makefile
  3. 20
      debian-buster-erlang/Release.key

@ -0,0 +1,50 @@
FROM debian:buster
MAINTAINER Harald Welte <laforge@gnumonks.org>
ARG OSMOCOM_REPO="http://download.opensuse.org/repositories/network:/osmocom:/latest/Debian_10/"
# install the erlang vm and rebar (2)
RUN apt-get update && \
apt-get upgrade -y && \
apt-get -y install \
erlang \
rebar
# add rebar3
ADD https://s3.amazonaws.com/rebar3/rebar3 /usr/bin/rebar3
RUN chmod 0755 /usr/bin/rebar3
# install ninimal build utilities as well as system utilities
RUN apt-get update && \
apt-get -y install \
build-essential \
git \
procps \
tcpdump \
vim \
netcat-openbsd \
wget \
&& \
apt-get clean
# install additional C-language / system dependencies of our Erlang projects
RUN apt-get update && \
apt-get -y install \
libpcap-dev \
&& \
apt-get clean
# add osmocom latest repo, should we ever require packages from there
RUN apt-get update && apt-get install -y \
gnupg
COPY 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-latest.list
ADD $OSMOCOM_REPO/Release /tmp/Release
# add a non-root user under which we will normaly execute build tests
RUN useradd -m osmocom
WORKDIR /home/osmocom
USER osmocom

@ -0,0 +1 @@
include ../make/Makefile

@ -0,0 +1,20 @@
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.4.5 (GNU/Linux)
mQENBFJBt/wBCADAht3d/ilNuyzaXYw/QwTRvmjyoDvfXw+H/3Fvk1zlDZoiKPPc
a1wCVBINUZl7vYM2OXqbJwYa++JP2Q48xKSvC6thbRc/YLievkbcvTemf7IaREfl
CTjoYp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