fixeria has submitted this change. ( 
https://gerrit.osmocom.org/c/docker-playground/+/26574 )

Change subject: Add Dockerfile for OpenBTS-UMTS
......................................................................

Add Dockerfile for OpenBTS-UMTS

Change-Id: Ibbab5973b84047ee7654a5fb2a8e4b36e1d43847
---
A openbts-umts/Dockerfile
A openbts-umts/Makefile
2 files changed, 69 insertions(+), 0 deletions(-)

Approvals:
  laforge: Looks good to me, approved
  fixeria: Verified



diff --git a/openbts-umts/Dockerfile b/openbts-umts/Dockerfile
new file mode 100644
index 0000000..b3fd386
--- /dev/null
+++ b/openbts-umts/Dockerfile
@@ -0,0 +1,64 @@
+# See https://fairwaves.co/blog/openbts-umts-3g-umtrx/
+
+# Ancient software requires ancient distro
+FROM   debian:jessie
+
+MAINTAINER Vadim Yanitskiy <[email protected]>
+
+RUN    apt-get update && \
+       apt-get install -y --no-install-recommends \
+                          --no-install-suggests \
+               ca-certificates \
+               build-essential \
+               pkg-config \
+               debhelper \
+               automake \
+               autoconf \
+               libtool-bin \
+               libtool \
+               unzip \
+               wget \
+               git \
+               libboost-dev \
+               libreadline6-dev \
+               libusb-1.0-0-dev \
+               libsqlite3-dev \
+               libosip2-dev \
+               libortp-dev \
+               libzmq3-dev \
+               python-zmq \
+               libuhd-dev
+
+WORKDIR        /home/root
+
+# Download and install UHD firmware
+ARG    UHD_RELEASE="003.007.003"
+RUN    wget 
http://files.ettus.com/binaries/maint_images/archive/uhd-images_$UHD_RELEASE-release.zip
 && \
+               unzip uhd-images_$UHD_RELEASE-release.zip && \
+               cp -r uhd-images_$UHD_RELEASE-release/share/uhd/ /usr/share/
+
+# Install asn1c
+ARG    ASN1C_COMMIT="80b3752c8093251a1ef924097e9894404af2d304"
+RUN    git clone https://github.com/vlm/asn1c.git
+RUN    cd asn1c && \
+               git checkout $ASN1C_COMMIT && \
+               ./configure && \
+               make install
+
+# Install libcoredumper
+RUN    git clone https://github.com/RangeNetworks/libcoredumper.git
+RUN    cd libcoredumper && \
+               ./build.sh && \
+               dpkg -i libcoredumper*.deb
+
+# Finally, install OpenBTS-UMTS
+RUN    git clone https://github.com/RangeNetworks/OpenBTS-UMTS.git
+RUN    cd OpenBTS-UMTS && \
+               git submodule init && \
+               git submodule update && \
+               ./autogen.sh && \
+               ./configure && \
+               make install && \
+               make clean
+
+CMD    cd /OpenBTS/ && ./OpenBTS-UMTS
diff --git a/openbts-umts/Makefile b/openbts-umts/Makefile
new file mode 100644
index 0000000..b030a43
--- /dev/null
+++ b/openbts-umts/Makefile
@@ -0,0 +1,5 @@
+RUN_ARGS?= \
+       --privileged \
+       -v /dev/bus/usb:/dev/bus/usb
+
+include ../make/Makefile

--
To view, visit https://gerrit.osmocom.org/c/docker-playground/+/26574
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: docker-playground
Gerrit-Branch: master
Gerrit-Change-Id: Ibbab5973b84047ee7654a5fb2a8e4b36e1d43847
Gerrit-Change-Number: 26574
Gerrit-PatchSet: 2
Gerrit-Owner: fixeria <[email protected]>
Gerrit-Reviewer: fixeria <[email protected]>
Gerrit-Reviewer: laforge <[email protected]>
Gerrit-MessageType: merged

Reply via email to