aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Willmann <dwillmann@sysmocom.de>2018-08-30 12:04:18 +0200
committerDaniel Willmann <dwillmann@sysmocom.de>2018-11-29 10:48:57 +0100
commit85faa53aec93a5b4db4b9bb1878381c08cadb7fd (patch)
tree1e988b641e4a38f42ba5b3614a456e02f628222c
parent6870d873451f6d8356b939d8f622206bcee8df13 (diff)
Add first osmo-cn-latest image
Core network in a container. Starts all the services, configuration needs to be tweaked. Change-Id: Icfddc75447fbd94f9d5c19408ccc7f3a914e083f
-rw-r--r--osmo-cn-latest/.release2
-rw-r--r--osmo-cn-latest/Dockerfile51
-rw-r--r--osmo-cn-latest/Makefile1
-rw-r--r--osmo-cn-latest/Release.key20
-rw-r--r--osmo-cn-latest/osmo-ggsn.cfg51
-rw-r--r--osmo-cn-latest/osmo-hlr.cfg19
-rw-r--r--osmo-cn-latest/osmo-mgw.cfg53
-rw-r--r--osmo-cn-latest/osmo-msc.cfg27
-rw-r--r--osmo-cn-latest/osmo-sgsn.cfg31
-rw-r--r--osmo-cn-latest/osmo-stp.cfg49
-rwxr-xr-xosmo-cn-latest/runit/ggsn-run3
-rwxr-xr-xosmo-cn-latest/runit/hlr-run3
-rwxr-xr-xosmo-cn-latest/runit/mgw-run3
-rwxr-xr-xosmo-cn-latest/runit/msc-run3
-rwxr-xr-xosmo-cn-latest/runit/sgsn-run3
-rwxr-xr-xosmo-cn-latest/runit/stp-run3
16 files changed, 322 insertions, 0 deletions
diff --git a/osmo-cn-latest/.release b/osmo-cn-latest/.release
new file mode 100644
index 0000000..334aa04
--- /dev/null
+++ b/osmo-cn-latest/.release
@@ -0,0 +1,2 @@
+release=0.0.0
+tag=osmo-cn-latest-0.0.0
diff --git a/osmo-cn-latest/Dockerfile b/osmo-cn-latest/Dockerfile
new file mode 100644
index 0000000..d60a8e8
--- /dev/null
+++ b/osmo-cn-latest/Dockerfile
@@ -0,0 +1,51 @@
+FROM debian:stretch
+
+MAINTAINER Daniel Willmann <dwillmann@sysmocom.de>
+
+ARG OSMOCOM_REPO="http://download.opensuse.org/repositories/network:/osmocom:/latest/Debian_9.0/"
+
+COPY Release.key /tmp/Release.key
+
+RUN apt-get update && \
+ apt-get install -y --no-install-recommends \
+ gnupg
+
+RUN apt-key add /tmp/Release.key && \
+ rm /tmp/Release.key && \
+ echo "deb " $OSMOCOM_REPO " ./" > /etc/apt/sources.list.d/osmocom-latest.list
+
+ADD $OSMOCOM_REPO/Release /tmp/Release
+RUN apt-get update && \
+ apt-get install -y --no-install-recommends \
+ osmo-msc osmo-hlr osmo-sgsn osmo-ggsn osmo-mgw osmo-stp \
+ runit telnet && \
+ apt-get clean
+
+WORKDIR /tmp
+
+VOLUME /data
+COPY osmo-stp.cfg /data/osmo-stp.cfg
+COPY osmo-msc.cfg /data/osmo-msc.cfg
+COPY osmo-hlr.cfg /data/osmo-hlr.cfg
+COPY osmo-mgw.cfg /data/osmo-mgw.cfg
+COPY osmo-sgsn.cfg /data/osmo-sgsn.cfg
+COPY osmo-ggsn.cfg /data/osmo-ggsn.cfg
+
+COPY runit/stp-run /etc/service/osmo-stp/run
+COPY runit/msc-run /etc/service/osmo-msc/run
+COPY runit/hlr-run /etc/service/osmo-hlr/run
+COPY runit/mgw-run /etc/service/osmo-mgw/run
+COPY runit/sgsn-run /etc/service/osmo-sgsn/run
+COPY runit/ggsn-run /etc/service/osmo-ggsn/run
+
+WORKDIR /data
+CMD ["/sbin/runit"]
+
+# STP
+EXPOSE 2905 14001 4239
+# HLR
+EXPOSE 4222 4258 4259
+# SGSN
+EXPOSE 23000/udp 4245/tcp 4249/tcp
+# GGSN
+EXPOSE 3386/udp 2123/udp 2152/udp 4257/tcp 4260/tcp
diff --git a/osmo-cn-latest/Makefile b/osmo-cn-latest/Makefile
new file mode 100644
index 0000000..8d0e10b
--- /dev/null
+++ b/osmo-cn-latest/Makefile
@@ -0,0 +1 @@
+include ../make/Makefile
diff --git a/osmo-cn-latest/Release.key b/osmo-cn-latest/Release.key
new file mode 100644
index 0000000..e656238
--- /dev/null
+++ b/osmo-cn-latest/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/osmo-cn-latest/osmo-ggsn.cfg b/osmo-cn-latest/osmo-ggsn.cfg
new file mode 100644
index 0000000..899f261
--- /dev/null
+++ b/osmo-cn-latest/osmo-ggsn.cfg
@@ -0,0 +1,51 @@
+!
+! OpenGGSN (0.94.1-adac) configuration saved from vty
+!!
+!
+log file /data/osmo-ggsn.log
+ logging filter all 1
+ logging color 0
+ logging print category 1
+ logging timestamp 1
+ logging level ip info
+ logging level tun info
+ logging level ggsn info
+ logging level sgsn notice
+ logging level icmp6 debug
+ logging level lglobal notice
+ logging level llapd notice
+ logging level linp notice
+ logging level lmux notice
+ logging level lmi notice
+ logging level lmib notice
+ logging level lsms notice
+ logging level lctrl notice
+ logging level lgtp info
+ logging level lstats notice
+ logging level lgsup notice
+ logging level loap notice
+ logging level lss7 notice
+ logging level lsccp notice
+ logging level lsua notice
+ logging level lm3ua notice
+ logging level lmgcp notice
+!
+stats interval 5
+!
+line vty
+ no login
+ bind 0.0.0.0
+!
+ggsn ggsn0
+ gtp state-dir /tmp
+ gtp bind-ip 127.0.0.2
+ apn internet
+ gtpu-mode tun
+ tun-device tun4
+ type-support v4
+ ip prefix dynamic 10.0.0.1/24
+ ip dns 0 9.9.9.9
+ ip ifconfig 10.0.0.0/24
+ no shutdown
+ default-apn internet
+ no shutdown ggsn
diff --git a/osmo-cn-latest/osmo-hlr.cfg b/osmo-cn-latest/osmo-hlr.cfg
new file mode 100644
index 0000000..77454ed
--- /dev/null
+++ b/osmo-cn-latest/osmo-hlr.cfg
@@ -0,0 +1,19 @@
+!
+! OsmoHLR example configuration
+!
+log file /data/osmo-hlr.log
+ logging filter all 1
+ logging color 0
+ logging print category 1
+ logging timestamp 1
+ logging print extended-timestamp 1
+ logging level all debug
+ logging level linp error
+!
+line vty
+ bind 0.0.0.0
+ctrl
+ bind 0.0.0.0
+hlr
+ gsup
+ bind ip 127.0.0.1
diff --git a/osmo-cn-latest/osmo-mgw.cfg b/osmo-cn-latest/osmo-mgw.cfg
new file mode 100644
index 0000000..4ecd4e2
--- /dev/null
+++ b/osmo-cn-latest/osmo-mgw.cfg
@@ -0,0 +1,53 @@
+!
+! OsmoMGW (1.2.0.17-52e3) configuration saved from vty
+!!
+!
+log file /data/osmo-mgw.log
+ logging filter all 1
+ logging color 1
+ logging print category 1
+ logging timestamp 0
+ logging level all everything
+ logging level rtp notice
+ logging level lglobal notice
+ logging level llapd notice
+ logging level linp notice
+ logging level lmux notice
+ logging level lmi notice
+ logging level lmib notice
+ logging level lsms notice
+ logging level lctrl notice
+ logging level lgtp notice
+ logging level lstats notice
+ logging level lgsup notice
+ logging level loap notice
+ logging level lss7 notice
+ logging level lsccp notice
+ logging level lsua notice
+ logging level lm3ua notice
+ logging level lmgcp debug
+!
+stats interval 5
+!
+line vty
+ no login
+ bind 0.0.0.0
+!
+mgcp
+ bind ip 172.18.0.180
+ bind port 2427
+ rtp port-range 4002 16000
+ rtp bind-ip 172.18.0.180
+ rtp ip-probing
+ rtp ip-dscp 184
+ no rtp keep-alive
+ no rtcp-omit
+ no rtp-patch
+ sdp audio-payload number 98
+ sdp audio-payload name GSM
+ sdp audio-payload send-ptime
+ sdp audio-payload send-name
+ loop 0
+ number endpoints 31
+ allow-transcoding
+ osmux off
diff --git a/osmo-cn-latest/osmo-msc.cfg b/osmo-cn-latest/osmo-msc.cfg
new file mode 100644
index 0000000..07f0372
--- /dev/null
+++ b/osmo-cn-latest/osmo-msc.cfg
@@ -0,0 +1,27 @@
+!
+! OsmoMSC configuration saved from vty
+!
+log file /data/osmo-msc.log
+ logging filter all 1
+ logging color 1
+ logging print category 1
+ logging timestamp 0
+ logging level all everything
+!
+line vty
+ no login
+ bind 0.0.0.0
+!
+network
+ network country code 1
+ mobile network code 1
+ short name OsmoMSC
+ long name OsmoMSC
+ encryption a5 0
+ rrlp mode none
+ mm info 1
+msc
+ mgw remote-ip 127.0.0.1
+ assign-tmsi
+ auth-tuple-max-reuse-count 3
+ auth-tuple-reuse-on-error 1
diff --git a/osmo-cn-latest/osmo-sgsn.cfg b/osmo-cn-latest/osmo-sgsn.cfg
new file mode 100644
index 0000000..bff9f00
--- /dev/null
+++ b/osmo-cn-latest/osmo-sgsn.cfg
@@ -0,0 +1,31 @@
+!
+! Osmocom SGSN (0.9.0.474-0ede2) configuration saved from vty
+!!
+!
+log file /data/osmo-sgsn.log
+ logging filter all 1
+ logging color 1
+ logging print category 1
+ logging timestamp 0
+ logging level all everything
+!
+line vty
+ no login
+ bind 0.0.0.0
+!
+sgsn
+ gtp local-ip 127.0.0.1
+ ggsn 0 remote-ip 127.0.0.2
+ ggsn 0 gtp-version 1
+ns
+ timer tns-block 3
+ timer tns-block-retries 3
+ timer tns-reset 3
+ timer tns-reset-retries 3
+ timer tns-test 30
+ timer tns-alive 3
+ timer tns-alive-retries 10
+ encapsulation udp local-ip 192.168.42.1
+ encapsulation udp local-port 23000
+ encapsulation framerelay-gre enabled 0
+bssgp
diff --git a/osmo-cn-latest/osmo-stp.cfg b/osmo-cn-latest/osmo-stp.cfg
new file mode 100644
index 0000000..abd3b84
--- /dev/null
+++ b/osmo-cn-latest/osmo-stp.cfg
@@ -0,0 +1,49 @@
+!
+! osmo-stp (0.0.6.3.179-b248) configuration saved from vty
+!!
+!
+log file /data/osmo-stp.log
+ logging filter all 1
+ logging color 0
+ logging print category 1
+ logging timestamp 1
+ logging level all everything
+ logging level lglobal notice
+ logging level llapd notice
+ logging level linp debug
+ logging level lmux notice
+ logging level lmi notice
+ logging level lmib notice
+ logging level lsms notice
+ logging level lctrl notice
+ logging level lgtp notice
+ logging level lstats notice
+ logging level lgsup notice
+ logging level loap notice
+ logging level lss7 debug
+ logging level lsccp debug
+ logging level lsua debug
+ logging level lm3ua debug
+!
+line vty
+ no login
+ bind 0.0.0.0
+!
+cs7 instance 0
+ asp asp0 0 2905 m3ua
+ remote-ip 127.0.0.1
+ asp asp-s-0 0 14001 sua
+ remote-ip 127.0.0.1
+ as as0 m3ua
+ asp asp0
+ routing-key 23 0.2.7
+ as as-s-0 sua
+ asp asp-s-0
+ routing-key 24 0.3.0
+ route-table system
+ update route 0.2.7 0.2.7 linkset as0
+ update route 0.3.0 0.3.0 linkset as-s-0
+ listen m3ua 2905
+ local-ip 127.0.0.10
+ listen sua 14001
+ local-ip 127.0.0.10
diff --git a/osmo-cn-latest/runit/ggsn-run b/osmo-cn-latest/runit/ggsn-run
new file mode 100755
index 0000000..b03ccd6
--- /dev/null
+++ b/osmo-cn-latest/runit/ggsn-run
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+exec /usr/bin/osmo-ggsn -c /data/osmo-ggsn.cfg
diff --git a/osmo-cn-latest/runit/hlr-run b/osmo-cn-latest/runit/hlr-run
new file mode 100755
index 0000000..f82fc26
--- /dev/null
+++ b/osmo-cn-latest/runit/hlr-run
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+exec /usr/bin/osmo-hlr -c /data/osmo-hlr.cfg
diff --git a/osmo-cn-latest/runit/mgw-run b/osmo-cn-latest/runit/mgw-run
new file mode 100755
index 0000000..fbbcbc8
--- /dev/null
+++ b/osmo-cn-latest/runit/mgw-run
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+exec /usr/bin/osmo-mgw -c /data/osmo-mgw.cfg
diff --git a/osmo-cn-latest/runit/msc-run b/osmo-cn-latest/runit/msc-run
new file mode 100755
index 0000000..368aefa
--- /dev/null
+++ b/osmo-cn-latest/runit/msc-run
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+exec /usr/bin/osmo-msc -c /data/osmo-msc.cfg
diff --git a/osmo-cn-latest/runit/sgsn-run b/osmo-cn-latest/runit/sgsn-run
new file mode 100755
index 0000000..698024b
--- /dev/null
+++ b/osmo-cn-latest/runit/sgsn-run
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+exec /usr/bin/osmo-sgsn -c /data/osmo-sgsn.cfg
diff --git a/osmo-cn-latest/runit/stp-run b/osmo-cn-latest/runit/stp-run
new file mode 100755
index 0000000..c52c739
--- /dev/null
+++ b/osmo-cn-latest/runit/stp-run
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+exec /usr/bin/osmo-stp -c /data/osmo-stp.cfg