2017-08-20 18:19:13 +00:00
|
|
|
FROM laforge/debian-jessie-build
|
|
|
|
|
|
|
|
MAINTAINER Harald Welte <laforge@gnumonks.org>
|
|
|
|
|
|
|
|
COPY Release.key /tmp/Release.key
|
|
|
|
|
|
|
|
RUN apt-key add /tmp/Release.key && \
|
|
|
|
rm /tmp/Release.key && \
|
|
|
|
echo "deb http://download.opensuse.org/repositories/network:/osmocom:/nightly/Debian_8.0/ ./" > /etc/apt/sources.list.d/osmocom-nightly.list
|
|
|
|
|
2017-08-27 07:53:26 +00:00
|
|
|
RUN apt-get update && \
|
|
|
|
apt-get install -y --no-install-recommends \
|
|
|
|
telnet \
|
|
|
|
libosmocore-dev \
|
|
|
|
libosmo-abis-dev \
|
|
|
|
libosmo-netif-dev \
|
|
|
|
libosmo-sccp-dev \
|
|
|
|
libsmpp34-dev \
|
|
|
|
libgtp-dev &&
|
|
|
|
apt-get clean
|
2017-08-20 18:19:13 +00:00
|
|
|
|
|
|
|
WORKDIR /tmp
|
|
|
|
|
|
|
|
RUN git clone git://git.osmocom.org/openbsc.git
|
|
|
|
ADD http://git.osmocom.org/openbsc/patch /tmp/commit-openbsc
|
|
|
|
|
|
|
|
RUN cd openbsc/openbsc && \
|
|
|
|
git fetch && git checkout -f -B master origin/master && \
|
|
|
|
autoreconf -fi && \
|
|
|
|
./configure --enable-nat --enable-osmo-bsc --enable-smpp && \
|
|
|
|
make -j8 install && \
|
|
|
|
ldconfig
|
|
|
|
|
|
|
|
VOLUME /data
|
|
|
|
|
|
|
|
COPY openbsc.cfg /data/openbsc.cfg
|
|
|
|
|
|
|
|
WORKDIR /data
|
|
|
|
CMD ["/usr/local/bin/osmo-nitb"]
|
|
|
|
|
|
|
|
EXPOSE 3002/tcp 3003/tcp 4242/tcp 2775/tcp 4249/tcp
|