2018-09-05 11:12:13 +00:00
|
|
|
ARG USER
|
2019-03-27 11:31:48 +00:00
|
|
|
FROM $USER/debian-stretch-build
|
2018-03-01 15:05:56 +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/"
|
2018-03-01 15:05:56 +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 \
|
|
|
|
libdbd-sqlite3 \
|
|
|
|
libosmo-abis-dev \
|
|
|
|
libosmo-netif-dev \
|
|
|
|
libosmo-sigtran-dev \
|
|
|
|
libosmocore-dev \
|
|
|
|
telnet && \
|
|
|
|
apt-get clean
|
|
|
|
|
|
|
|
WORKDIR /tmp
|
|
|
|
|
2018-05-23 17:58:38 +00:00
|
|
|
ARG OSMO_HLR_BRANCH="master"
|
|
|
|
|
2018-03-01 15:05:56 +00:00
|
|
|
RUN git clone git://git.osmocom.org/osmo-hlr.git
|
2018-05-23 17:58:38 +00:00
|
|
|
ADD http://git.osmocom.org/osmo-hlr/patch?h=$OSMO_HLR_BRANCH /tmp/commit-osmo-hlr
|
2018-03-01 15:05:56 +00:00
|
|
|
|
|
|
|
RUN cd osmo-hlr && \
|
2019-05-21 15:51:49 +00:00
|
|
|
git fetch && git checkout -f -B $OSMO_HLR_BRANCH $OSMO_HLR_BRANCH && \
|
2019-03-29 13:12:28 +00:00
|
|
|
git rev-parse --abbrev-ref HEAD && git rev-parse HEAD && \
|
2018-03-01 15:05:56 +00:00
|
|
|
autoreconf -fi && \
|
|
|
|
./configure && \
|
|
|
|
make -j8 install
|
|
|
|
|
|
|
|
VOLUME /data
|
|
|
|
|
|
|
|
COPY osmo-hlr.cfg /data/osmo-hlr.cfg
|
|
|
|
|
|
|
|
WORKDIR /data
|
|
|
|
CMD ["/usr/local/bin/osmo-hlr"]
|
|
|
|
|
|
|
|
#EXPOSE
|