aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2017-12-05 22:59:59 +0100
committerNeels Hofmeyr <neels@hofmeyr.de>2017-12-06 01:45:42 +0100
commit0642e33a371782771bf4effbbb90d689f99f3b1c (patch)
tree2b87c3b1e94b6194f3118f851926dea09ed4264c
parent205ece59c05dd69961dd43174a787a2805212f2f (diff)
add debian-sid-build, osmo-dev-on-debian-sid
Aim: build Osmocom CellNet from source on debian-sid Related: OS#2667
-rw-r--r--debian-sid-build/.release2
-rw-r--r--debian-sid-build/Dockerfile51
-rw-r--r--debian-sid-build/Makefile1
-rw-r--r--osmo-dev-on-debian-sid/.release2
-rw-r--r--osmo-dev-on-debian-sid/Dockerfile33
-rw-r--r--osmo-dev-on-debian-sid/Makefile1
-rw-r--r--osmo-dev-on-debian-sid/cfg/osmo-bsc.cfg52
-rw-r--r--osmo-dev-on-debian-sid/cfg/osmo-ggsn.cfg22
-rw-r--r--osmo-dev-on-debian-sid/cfg/osmo-hlr.cfg5
-rw-r--r--osmo-dev-on-debian-sid/cfg/osmo-hnbgw.cfg9
-rw-r--r--osmo-dev-on-debian-sid/cfg/osmo-mgw-for-bsc.cfg14
-rw-r--r--osmo-dev-on-debian-sid/cfg/osmo-mgw-for-msc.cfg11
-rw-r--r--osmo-dev-on-debian-sid/cfg/osmo-msc.cfg13
-rw-r--r--osmo-dev-on-debian-sid/cfg/osmo-sgsn.cfg16
-rw-r--r--osmo-dev-on-debian-sid/cfg/osmo-stp.cfg10
15 files changed, 242 insertions, 0 deletions
diff --git a/debian-sid-build/.release b/debian-sid-build/.release
new file mode 100644
index 0000000..d2dae7b
--- /dev/null
+++ b/debian-sid-build/.release
@@ -0,0 +1,2 @@
+release=0.0.0
+tag=debian-stretch-build-0.0.0
diff --git a/debian-sid-build/Dockerfile b/debian-sid-build/Dockerfile
new file mode 100644
index 0000000..6348fc7
--- /dev/null
+++ b/debian-sid-build/Dockerfile
@@ -0,0 +1,51 @@
+FROM debian:sid
+
+MAINTAINER Harald Welte <laforge@gnumonks.org>
+
+RUN apt-get update && \
+ apt-get upgrade -y && \
+ apt-get install -y --no-install-recommends \
+ autoconf \
+ autoconf-archive \
+ autogen \
+ automake \
+ bison \
+ build-essential \
+ cppcheck \
+ debhelper \
+ devscripts \
+ dh-autoreconf \
+ dh-systemd \
+ doxygen \
+ flex \
+ g++ \
+ gawk \
+ gcc \
+ git \
+ git-buildpackage \
+ gnupg \
+ libc-ares-dev \
+ libdbd-sqlite3 \
+ libdbi-dev \
+ libfftw3-dev \
+ libgnutls28-dev \
+ libgps-dev \
+ libgsm1-dev \
+ libncurses5-dev \
+ libortp-dev \
+ libpcap-dev \
+ libpcsclite-dev \
+ libtalloc-dev \
+ libtool \
+ libreadline-dev \
+ libsctp-dev \
+ libsofia-sip-ua-glib-dev \
+ libsqlite3-dev \
+ libssl-dev \
+ libusb-dev \
+ libusb-1.0-0-dev \
+ make \
+ pkg-config \
+ sqlite3 \
+ wget && \
+ apt-get clean
diff --git a/debian-sid-build/Makefile b/debian-sid-build/Makefile
new file mode 100644
index 0000000..8d0e10b
--- /dev/null
+++ b/debian-sid-build/Makefile
@@ -0,0 +1 @@
+include ../make/Makefile
diff --git a/osmo-dev-on-debian-sid/.release b/osmo-dev-on-debian-sid/.release
new file mode 100644
index 0000000..f4fd043
--- /dev/null
+++ b/osmo-dev-on-debian-sid/.release
@@ -0,0 +1,2 @@
+release=0.0.0
+tag=osmo-dev-on-debian-sid-0.0.0
diff --git a/osmo-dev-on-debian-sid/Dockerfile b/osmo-dev-on-debian-sid/Dockerfile
new file mode 100644
index 0000000..bc65f9c
--- /dev/null
+++ b/osmo-dev-on-debian-sid/Dockerfile
@@ -0,0 +1,33 @@
+FROM neels/debian-sid-build
+
+MAINTAINER Neels Hofmeyr <nhofmeyr@sysmocom.de>
+
+WORKDIR /build
+
+ADD http://git.osmocom.org/osmo-dev/patch /build/commit-osmo-dev
+RUN git clone git://git.osmocom.org/osmo-dev.git
+
+RUN cd osmo-dev && \
+ ./gen_makefile.py 3G+2G.deps default.opts iu.opts -m make --ldconfig-without-sudo
+
+ADD http://git.osmocom.org/libosmocore/patch /build/commit-libosmocore
+ADD http://git.osmocom.org/libosmo-abis/patch /build/commit-libosmo-abis
+ADD http://git.osmocom.org/libosmo-netif/patch /build/commit-libosmo-netif
+ADD http://git.osmocom.org/libosmo-sccp/patch /build/commit-libosmo-sccp
+ADD http://git.osmocom.org/libsmpp34/patch /build/commit-libsmpp34
+ADD http://git.osmocom.org/libasn1c/patch /build/commit-libasn1c
+ADD http://git.osmocom.org/osmo-ggsn/patch /build/commit-osmo-ggsn
+ADD http://git.osmocom.org/osmo-iuh/patch /build/commit-osmo-iuh
+ADD http://git.osmocom.org/osmo-hlr/patch /build/commit-osmo-hlr
+ADD http://git.osmocom.org/osmo-mgw/patch /build/commit-osmo-mgw
+ADD http://git.osmocom.org/osmo-msc/patch /build/commit-osmo-msc
+ADD http://git.osmocom.org/osmo-bsc/patch /build/commit-osmo-bsc
+ADD http://git.osmocom.org/osmo-sgsn/patch /build/commit-osmo-sgsn
+
+WORKDIR /build/osmo-dev/make
+RUN make
+
+COPY cfg /cfg
+
+WORKDIR /cfg
+CMD ["/usr/local/bin/osmo-msc", "-c", "/cfg/osmo-msc.cfg"]
diff --git a/osmo-dev-on-debian-sid/Makefile b/osmo-dev-on-debian-sid/Makefile
new file mode 100644
index 0000000..8d0e10b
--- /dev/null
+++ b/osmo-dev-on-debian-sid/Makefile
@@ -0,0 +1 @@
+include ../make/Makefile
diff --git a/osmo-dev-on-debian-sid/cfg/osmo-bsc.cfg b/osmo-dev-on-debian-sid/cfg/osmo-bsc.cfg
new file mode 100644
index 0000000..601e8ed
--- /dev/null
+++ b/osmo-dev-on-debian-sid/cfg/osmo-bsc.cfg
@@ -0,0 +1,52 @@
+network
+ network country code 901
+ mobile network code 70
+ mm info 1
+ short name OsmoBSC
+ long name OsmoBSC
+ bts 0
+ type sysmobts
+ band GSM-1800
+ location_area_code 23
+ ip.access unit_id 1800 0
+ gprs mode gprs
+ gprs nsvc 0 remote ip 127.0.0.1
+ gprs nsvc 0 remote udp port 23000
+ gprs nsvc 0 local udp port 23000
+ gprs nsvc 0 nsvci 1800
+ gprs nsei 1800
+ gprs cell bvci 1800
+ trx 0
+ rf_locked 0
+ arfcn 868
+ nominal power 23
+ timeslot 0
+ phys_chan_config CCCH+SDCCH4
+ timeslot 1
+ phys_chan_config SDCCH8
+ timeslot 2
+ phys_chan_config TCH/F_TCH/H_PDCH
+ timeslot 3
+ phys_chan_config TCH/F_TCH/H_PDCH
+ timeslot 4
+ phys_chan_config TCH/F_TCH/H_PDCH
+ timeslot 5
+ phys_chan_config TCH/F_TCH/H_PDCH
+ timeslot 6
+ phys_chan_config TCH/F_TCH/H_PDCH
+ timeslot 7
+ phys_chan_config PDCH
+e1_input
+ e1_line 0 driver ipa
+msc 0
+ mgw remote-ip 127.0.0.1
+ mgw remote-port 12427
+ mgw endpoint-range 33 64
+ allow-emergency deny
+ codec-list hr3
+
+log stderr
+ logging print extended-timestamp 1
+ logging level all debug
+ logging filter all 1
+ logging print category 1
diff --git a/osmo-dev-on-debian-sid/cfg/osmo-ggsn.cfg b/osmo-dev-on-debian-sid/cfg/osmo-ggsn.cfg
new file mode 100644
index 0000000..1cee438
--- /dev/null
+++ b/osmo-dev-on-debian-sid/cfg/osmo-ggsn.cfg
@@ -0,0 +1,22 @@
+log stderr
+ logging level all debug
+ logging filter all 1
+ logging print category 1
+ggsn ggsn0
+ gtp bind-ip 127.0.0.2
+ apn internet
+ tun-device apn0
+ type-support v4
+ ip dns 0 192.168.0.1
+ ip dns 1 9.9.9.9
+ #ip ifconfig 192.168.42.0/24
+ ip prefix dynamic 192.168.42.0/24
+ no shutdown
+ default-apn internet
+ no shutdown ggsn
+
+log stderr
+ logging print extended-timestamp 1
+ logging level all debug
+ logging filter all 1
+ logging print category 1
diff --git a/osmo-dev-on-debian-sid/cfg/osmo-hlr.cfg b/osmo-dev-on-debian-sid/cfg/osmo-hlr.cfg
new file mode 100644
index 0000000..a2a0067
--- /dev/null
+++ b/osmo-dev-on-debian-sid/cfg/osmo-hlr.cfg
@@ -0,0 +1,5 @@
+log stderr
+ logging print extended-timestamp 1
+ logging level all debug
+ logging filter all 1
+ logging print category 1
diff --git a/osmo-dev-on-debian-sid/cfg/osmo-hnbgw.cfg b/osmo-dev-on-debian-sid/cfg/osmo-hnbgw.cfg
new file mode 100644
index 0000000..2f72814
--- /dev/null
+++ b/osmo-dev-on-debian-sid/cfg/osmo-hnbgw.cfg
@@ -0,0 +1,9 @@
+hnbgw
+ iuh
+ local-ip 127.0.0.1
+
+log stderr
+ logging print extended-timestamp 1
+ logging level all debug
+ logging filter all 1
+ logging print category 1
diff --git a/osmo-dev-on-debian-sid/cfg/osmo-mgw-for-bsc.cfg b/osmo-dev-on-debian-sid/cfg/osmo-mgw-for-bsc.cfg
new file mode 100644
index 0000000..188c4ab
--- /dev/null
+++ b/osmo-dev-on-debian-sid/cfg/osmo-mgw-for-bsc.cfg
@@ -0,0 +1,14 @@
+mgcp
+ bind ip 127.0.0.1
+ # default port is 2427 (is used for MSC's MGW)
+ bind port 12427
+ number endpoints 64
+line vty
+ # default VTY interface is on 127.0.0.1 (used for MSC's MGW)
+ bind 127.0.0.2
+
+log stderr
+ logging print extended-timestamp 1
+ logging level all debug
+ logging filter all 1
+ logging print category 1
diff --git a/osmo-dev-on-debian-sid/cfg/osmo-mgw-for-msc.cfg b/osmo-dev-on-debian-sid/cfg/osmo-mgw-for-msc.cfg
new file mode 100644
index 0000000..2f7f129
--- /dev/null
+++ b/osmo-dev-on-debian-sid/cfg/osmo-mgw-for-msc.cfg
@@ -0,0 +1,11 @@
+mgcp
+ bind ip 127.0.0.1
+ number endpoints 64
+line vty
+ bind 127.0.0.1
+
+log stderr
+ logging print extended-timestamp 1
+ logging level all debug
+ logging filter all 1
+ logging print category 1
diff --git a/osmo-dev-on-debian-sid/cfg/osmo-msc.cfg b/osmo-dev-on-debian-sid/cfg/osmo-msc.cfg
new file mode 100644
index 0000000..71893f3
--- /dev/null
+++ b/osmo-dev-on-debian-sid/cfg/osmo-msc.cfg
@@ -0,0 +1,13 @@
+network
+ network country code 901
+ mobile network code 70
+msc
+ mgw remote-ip 127.0.0.1
+ mgw endpoint-range 1 32
+
+log stderr
+ logging print extended-timestamp 1
+ logging level all debug
+ logging filter all 1
+ logging print category 1
+ logging level ref debug
diff --git a/osmo-dev-on-debian-sid/cfg/osmo-sgsn.cfg b/osmo-dev-on-debian-sid/cfg/osmo-sgsn.cfg
new file mode 100644
index 0000000..6b4be30
--- /dev/null
+++ b/osmo-dev-on-debian-sid/cfg/osmo-sgsn.cfg
@@ -0,0 +1,16 @@
+sgsn
+ gtp local-ip 127.0.0.1
+ ggsn 0 remote-ip 127.0.0.2
+ ggsn 0 gtp-version 1
+ auth-policy remote
+ gsup remote-ip 127.0.0.1
+ns
+ encapsulation udp local-ip 127.0.0.1
+ encapsulation udp local-port 23000
+ encapsulation framerelay-gre enabled 0
+
+log stderr
+ logging print extended-timestamp 1
+ logging level all debug
+ logging filter all 1
+ logging print category 1
diff --git a/osmo-dev-on-debian-sid/cfg/osmo-stp.cfg b/osmo-dev-on-debian-sid/cfg/osmo-stp.cfg
new file mode 100644
index 0000000..aec9fcc
--- /dev/null
+++ b/osmo-dev-on-debian-sid/cfg/osmo-stp.cfg
@@ -0,0 +1,10 @@
+cs7 instance 0
+ xua rkm routing-key-allocation dynamic-permitted
+ listen m3ua 2905
+ accept-asp-connections dynamic-permitted
+
+log stderr
+ logging print extended-timestamp 1
+ logging level all debug
+ logging filter all 1
+ logging print category 1