2020-11-02 13:24:39 +00:00
|
|
|
ARG REGISTRY=docker.io
|
2020-11-18 15:45:28 +00:00
|
|
|
ARG UPSTREAM_DISTRO=debian:stretch
|
|
|
|
FROM ${REGISTRY}/${UPSTREAM_DISTRO}
|
2020-11-18 16:52:56 +00:00
|
|
|
# Arguments used after FROM must be specified again
|
|
|
|
ARG OSMOCOM_REPO_MIRROR="http://download.opensuse.org"
|
2018-08-30 10:04:18 +00:00
|
|
|
|
|
|
|
MAINTAINER Daniel Willmann <dwillmann@sysmocom.de>
|
|
|
|
|
2020-11-18 16:52:56 +00:00
|
|
|
ARG OSMOCOM_REPO="$OSMOCOM_REPO_MIRROR/repositories/network:/osmocom:/latest/Debian_9.0/"
|
2018-08-30 10:04:18 +00:00
|
|
|
|
|
|
|
COPY Release.key /tmp/Release.key
|
|
|
|
|
|
|
|
RUN apt-get update && \
|
|
|
|
apt-get install -y --no-install-recommends \
|
|
|
|
gnupg
|
|
|
|
|
|
|
|
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
|
|
|
|
RUN apt-get update && \
|
|
|
|
apt-get install -y --no-install-recommends \
|
|
|
|
osmo-msc osmo-hlr osmo-sgsn osmo-ggsn osmo-mgw osmo-stp \
|
|
|
|
runit telnet iptables && \
|
|
|
|
apt-get clean
|
|
|
|
|
|
|
|
WORKDIR /tmp
|
|
|
|
|
|
|
|
VOLUME /data
|
|
|
|
COPY osmo-stp.cfg /data/osmo-stp.cfg
|
|
|
|
COPY osmo-msc.cfg /data/osmo-msc.cfg
|
|
|
|
COPY osmo-hlr.cfg /data/osmo-hlr.cfg
|
|
|
|
COPY osmo-mgw.cfg /data/osmo-mgw.cfg
|
|
|
|
COPY osmo-sgsn.cfg /data/osmo-sgsn.cfg
|
|
|
|
COPY osmo-ggsn.cfg /data/osmo-ggsn.cfg
|
|
|
|
|
|
|
|
COPY runit/stp-run /etc/service/osmo-stp/run
|
|
|
|
COPY runit/msc-run /etc/service/osmo-msc/run
|
|
|
|
COPY runit/hlr-run /etc/service/osmo-hlr/run
|
|
|
|
COPY runit/mgw-run /etc/service/osmo-mgw/run
|
|
|
|
COPY runit/sgsn-run /etc/service/osmo-sgsn/run
|
|
|
|
COPY runit/ggsn-run /etc/service/osmo-ggsn/run
|
|
|
|
|
|
|
|
WORKDIR /data
|
|
|
|
CMD ["/sbin/runit"]
|
|
|
|
|
|
|
|
|
|
|
|
EXPOSE 23000/udp
|