add debian-sid-build, osmo-dev-on-debian-sid

Aim: build Osmocom CellNet from source on debian-sid

Related: OS#2667
changes/84/7384/1
Neels Hofmeyr 5 years ago
parent 205ece59c0
commit 0642e33a37
  1. 2
      debian-sid-build/.release
  2. 51
      debian-sid-build/Dockerfile
  3. 1
      debian-sid-build/Makefile
  4. 2
      osmo-dev-on-debian-sid/.release
  5. 33
      osmo-dev-on-debian-sid/Dockerfile
  6. 1
      osmo-dev-on-debian-sid/Makefile
  7. 52
      osmo-dev-on-debian-sid/cfg/osmo-bsc.cfg
  8. 22
      osmo-dev-on-debian-sid/cfg/osmo-ggsn.cfg
  9. 5
      osmo-dev-on-debian-sid/cfg/osmo-hlr.cfg
  10. 9
      osmo-dev-on-debian-sid/cfg/osmo-hnbgw.cfg
  11. 14
      osmo-dev-on-debian-sid/cfg/osmo-mgw-for-bsc.cfg
  12. 11
      osmo-dev-on-debian-sid/cfg/osmo-mgw-for-msc.cfg
  13. 13
      osmo-dev-on-debian-sid/cfg/osmo-msc.cfg
  14. 16
      osmo-dev-on-debian-sid/cfg/osmo-sgsn.cfg
  15. 10
      osmo-dev-on-debian-sid/cfg/osmo-stp.cfg

@ -0,0 +1,2 @@
release=0.0.0
tag=debian-stretch-build-0.0.0

@ -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

@ -0,0 +1 @@
include ../make/Makefile

@ -0,0 +1,2 @@
release=0.0.0
tag=osmo-dev-on-debian-sid-0.0.0

@ -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"]

@ -0,0 +1 @@
include ../make/Makefile

@ -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

@ -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

@ -0,0 +1,5 @@
log stderr
logging print extended-timestamp 1
logging level all debug
logging filter all 1
logging print category 1

@ -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

@ -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

@ -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

@ -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

@ -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

@ -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
Loading…
Cancel
Save