2017-08-20 20:43:00 +00:00
|
|
|
FROM laforge/debian-jessie-build
|
|
|
|
|
|
|
|
MAINTAINER Harald Welte <laforge@gnumonks.org>
|
|
|
|
|
2017-12-17 10:48:54 +00:00
|
|
|
ARG OSMOCOM_REPO="http://download.opensuse.org/repositories/network:/osmocom:/nightly/Debian_8.0/"
|
|
|
|
|
2017-08-20 20:43:00 +00:00
|
|
|
COPY Release.key /tmp/Release.key
|
|
|
|
|
|
|
|
RUN apt-key add /tmp/Release.key && \
|
|
|
|
rm /tmp/Release.key && \
|
2017-12-17 10:48:54 +00:00
|
|
|
echo "deb " $OSMOCOM_REPO " ./" > /etc/apt/sources.list.d/osmocom-nightly.list
|
2017-08-20 20:43:00 +00:00
|
|
|
|
2017-12-17 10:48:54 +00:00
|
|
|
ADD $OSMOCOM_REPO/Release /tmp/Release
|
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 20:43:00 +00:00
|
|
|
|
|
|
|
WORKDIR /tmp
|
|
|
|
|
|
|
|
RUN git clone git://git.osmocom.org/osmocom-bb.git
|
|
|
|
ADD http://git.osmocom.org/osmocom-bb/patch /tmp/commit
|
|
|
|
|
|
|
|
RUN cd osmocom-bb/src/host/virt_phy && \
|
|
|
|
git fetch && git checkout -f -B master origin/master && \
|
|
|
|
autoreconf -fi && \
|
|
|
|
./configure && \
|
|
|
|
make -j8 install
|
|
|
|
|
|
|
|
VOLUME /data
|
|
|
|
|
|
|
|
WORKDIR /data
|
|
|
|
CMD ["/usr/local/sbin/virtphy","-s","/data/osmocom_l2"]
|
|
|
|
|
|
|
|
#EXPOSE 3002/tcp 3003/tcp 4242/tcp 2775/tcp 4249/tcp
|