aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2018-03-29 22:15:43 +0200
committerNeels Hofmeyr <neels@hofmeyr.de>2021-04-16 13:38:24 +0000
commitc79b9cc388b4ed2b0fc8366fb8a596ae1fbf43dc (patch)
treeba356e6435694f6a06fa03e6423c28dbf2341994
parentae0e341be9bc113e2de13df861b541a591ef4a62 (diff)
add openbsc-master
-rw-r--r--openbsc-master/Dockerfile42
-rw-r--r--openbsc-master/Makefile3
-rw-r--r--openbsc-master/Release.key20
-rw-r--r--openbsc-master/osmo-nitb.cfg21
4 files changed, 86 insertions, 0 deletions
diff --git a/openbsc-master/Dockerfile b/openbsc-master/Dockerfile
new file mode 100644
index 0000000..2cbd95e
--- /dev/null
+++ b/openbsc-master/Dockerfile
@@ -0,0 +1,42 @@
+FROM neels/debian-jessie-build-no-ssl
+
+ARG OSMOCOM_REPO="http://download.opensuse.org/repositories/network:/osmocom:/nightly/Debian_8.0/"
+
+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 \
+ libdbi-dev \
+ libosmo-abis-dev \
+ libosmo-netif-dev \
+ libosmocore-dev \
+ libsmpp34-dev \
+ telnet && \
+ apt-get clean
+
+WORKDIR /tmp
+
+RUN git clone git://git.osmocom.org/openbsc.git
+ADD http://git.osmocom.org/openbsc/patch /tmp/commit-openbsc
+
+RUN cd openbsc && \
+ git fetch && git checkout -f -B master origin/master && \
+ cd openbsc && \
+ autoreconf -fi && \
+ ./configure --enable-smpp && \
+ make -j8 install
+
+VOLUME /data
+
+COPY osmo-nitb.cfg /data/osmo-nitb.cfg
+
+WORKDIR /data
+CMD ["/usr/local/bin/osmo-nitb"]
+
+#EXPOSE
diff --git a/openbsc-master/Makefile b/openbsc-master/Makefile
new file mode 100644
index 0000000..77d4f8b
--- /dev/null
+++ b/openbsc-master/Makefile
@@ -0,0 +1,3 @@
+RUN_ARGS?=--rm --network sigtran --ip 172.18.0.10 -v msc-vol:/data
+
+include ../make/Makefile
diff --git a/openbsc-master/Release.key b/openbsc-master/Release.key
new file mode 100644
index 0000000..e656238
--- /dev/null
+++ b/openbsc-master/Release.key
@@ -0,0 +1,20 @@
+-----BEGIN PGP PUBLIC KEY BLOCK-----
+Version: GnuPG v1.4.5 (GNU/Linux)
+
+mQENBFJBt/wBCADAht3d/ilNuyzaXYw/QwTRvmjyoDvfXw+H/3Fvk1zlDZoiKPPc
+a1wCVBINUZl7vYM2OXqbJwYa++JP2Q48xKSvC6thbRc/YLievkbcvTemf7IaREfl
+CTjoYpoqXHa9kHMw1aALDm8CNU88jZmnV7v9L6hKkbYDxie+jpoj7D6B9JlxgNJ4
+5dQyRNsFGVcIl4Vplt1HyGc5Q5nQI/VgS2rlF/IOXmhRQBc4LEDdU8R2IKnkU4ee
+S7TWanAigGAQhxGuCkS39/CWzc1DhLhjlNhBl/+RTPejkqJtAy00ZLps3+RqUN1Y
+CU/Fsr7aRlYVGqQ/BlptwV0XQ2VVYJX2oEBBABEBAAG0MG5ldHdvcmsgT0JTIFBy
+b2plY3QgPG5ldHdvcmtAYnVpbGQub3BlbnN1c2Uub3JnPokBPAQTAQIAJgUCWmMc
+aQIbAwUJDEAUbQYLCQgHAwIEFQIIAwQWAgMBAh4BAheAAAoJEGLrGgkXKA3fjsoI
+ALSXmXzFCpTxg8a6tvXkqddY/qAmeBMNUf7hslI9wN3leNmCrnuHS8TbHWYJZgtw
+8M5fKL3aRQYaIiqqm1XOUF0OqwYNDj5V3y38mM68NYOkzgSP7foMwZp9Y0TlGhtI
+L8weA+2RUjB4hwwGMAYMqkRZyKW3NhPqdlGGoXac1ilwEyGXFHdOLbkhtyS+P2yb
+/EvaKIN5cMLzRZKeYgdp9WuAirV+yV/SDbgvabW098lrWhGLltlRRDQgMV883p8I
+ERMI1wlLFZGnHL3mfBWGeQ24M/DaBOdXQDtfBLCJ9nGztmDBUb8i6GFWU7nD2TGi
+8mYUsED1ZDwO/0jdvJ4gSluIRgQTEQIABgUCUkG3/AAKCRA7MBG3a51lIzhdAJ9v
+d6XPffMZRcCGgDEY5OaTn/MsCQCgrXbeZpFJgnirSrc8rRonvzYFiF4=
+=Gvly
+-----END PGP PUBLIC KEY BLOCK-----
diff --git a/openbsc-master/osmo-nitb.cfg b/openbsc-master/osmo-nitb.cfg
new file mode 100644
index 0000000..1261160
--- /dev/null
+++ b/openbsc-master/osmo-nitb.cfg
@@ -0,0 +1,21 @@
+!
+! OsmoMSC configuration saved from vty
+!
+line vty
+ no login
+!
+network
+ network country code 1
+ mobile network code 1
+ short name OsmoMSC
+ long name OsmoMSC
+ auth policy closed
+ location updating reject cause 13
+ encryption a5 0
+ rrlp mode none
+ mm info 1
+msc
+ mgw remote-ip 10.23.24.1
+ assign-tmsi
+ auth-tuple-max-reuse-count 3
+ auth-tuple-reuse-on-error 1