2018-09-05 11:12:13 +00:00
|
|
|
ARG USER
|
2019-03-27 11:31:48 +00:00
|
|
|
FROM $USER/debian-stretch-build
|
2017-12-17 11:02:57 +00:00
|
|
|
|
|
|
|
MAINTAINER Harald Welte <laforge@gnumonks.org>
|
|
|
|
|
2019-03-27 11:31:48 +00:00
|
|
|
ARG OSMOCOM_REPO="http://download.opensuse.org/repositories/network:/osmocom:/nightly/Debian_9.0/"
|
2017-12-17 11:02:57 +00:00
|
|
|
|
|
|
|
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-nightly.list
|
|
|
|
|
|
|
|
ADD $OSMOCOM_REPO/Release /tmp/Release
|
|
|
|
RUN apt-get update && \
|
|
|
|
apt-get install -y --no-install-recommends \
|
|
|
|
telnet \
|
|
|
|
libosmocore-dev \
|
|
|
|
libosmo-abis-dev \
|
|
|
|
libosmo-netif-dev \
|
|
|
|
libosmo-sccp-dev \
|
|
|
|
libosmo-sigtran-dev \
|
|
|
|
libosmo-mgcp-client-dev \
|
|
|
|
libgtp-dev && \
|
|
|
|
apt-get clean
|
|
|
|
|
|
|
|
WORKDIR /tmp
|
|
|
|
|
2018-05-23 17:58:38 +00:00
|
|
|
ARG OSMO_BSC_BRANCH="master"
|
|
|
|
|
2017-12-17 11:02:57 +00:00
|
|
|
RUN git clone git://git.osmocom.org/osmo-bsc.git
|
2018-05-23 17:58:38 +00:00
|
|
|
ADD http://git.osmocom.org/osmo-bsc/patch?h=$OSMO_BSC_BRANCH /tmp/commit-osmo-bsc
|
2017-12-17 11:02:57 +00:00
|
|
|
|
|
|
|
RUN cd osmo-bsc && \
|
2018-05-23 17:58:38 +00:00
|
|
|
git fetch && git checkout -f -B $OSMO_BSC_BRANCH origin/$OSMO_BSC_BRANCH && \
|
2019-03-29 13:12:28 +00:00
|
|
|
git rev-parse --abbrev-ref HEAD && git rev-parse HEAD && \
|
2017-12-17 11:02:57 +00:00
|
|
|
autoreconf -fi && \
|
2018-06-25 07:43:51 +00:00
|
|
|
./configure && \
|
2017-12-17 11:02:57 +00:00
|
|
|
make -j8 install
|
|
|
|
|
|
|
|
VOLUME /data
|
|
|
|
|
|
|
|
COPY osmo-bsc.cfg /data/osmo-bsc.cfg
|
|
|
|
|
|
|
|
WORKDIR /data
|
|
|
|
CMD ["/usr/local/bin/osmo-bsc"]
|
|
|
|
|
|
|
|
#EXPOSE
|