Add docker image for osmo-nitb-latest

Change-Id: I23cb350ded2940bd63b47ae84e44faa3292b0d9d
changes/89/15889/1
Daniel Willmann 3 years ago
parent 5e70a29727
commit d74bc618e5
  1. 36
      osmo-nitb-latest/Dockerfile
  2. 1
      osmo-nitb-latest/Makefile
  3. 20
      osmo-nitb-latest/Release.key
  4. 8
      osmo-nitb-latest/bscs.config
  5. 195
      osmo-nitb-latest/openbsc.cfg
  6. 40
      osmo-nitb-latest/osmo-bsc-nat.cfg

@ -0,0 +1,36 @@
FROM debian:stretch
MAINTAINER Harald Welte <laforge@gnumonks.org>
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 \
osmocom-nitb \
osmocom-bsc-nat \
libdbd-sqlite3 && \
apt-get clean
WORKDIR /tmp
VOLUME /data
COPY openbsc.cfg /data/openbsc.cfg
COPY osmo-bsc-nat.cfg /data/osmo-bsc-nat.cfg
COPY bscs.config /data/bscs.config
WORKDIR /data
CMD ["/usr/bin/osmo-nitb"]
EXPOSE 3002/tcp 3003/tcp 4242/tcp 2775/tcp 4249/tcp

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

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

@ -0,0 +1,8 @@
nat
bsc 0
token BSC0
location_area_code 1
description bsc
max-endpoints 32
paging forbidden 0
osmux on

@ -0,0 +1,195 @@
!
! OpenBSC (0.15.0.826-4b731-dirty) configuration saved from vty
!!
password foo
!
log stderr
logging filter all 1
logging color 1
logging print category 0
logging timestamp 0
logging level all everything
logging level rll notice
logging level cc notice
logging level mm debug
logging level rr notice
logging level rsl notice
logging level nm info
logging level mncc notice
logging level pag notice
logging level meas notice
logging level sccp notice
logging level msc notice
logging level mgcp notice
logging level ho notice
logging level db notice
logging level ref notice
logging level gprs debug
logging level ns info
logging level bssgp debug
logging level llc debug
logging level sndcp debug
logging level nat notice
logging level ctrl notice
logging level smpp debug
logging level filter debug
logging level ranap debug
logging level sua debug
logging level pcu 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 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
!
stats interval 5
!
line vty
no login
bind 0.0.0.0
!
e1_input
e1_line 0 driver ipa
e1_line 0 port 0
no e1_line 0 keepalive
network
network country code 262
mobile network code 42
short name Osmocom
long name Osmocom
auth policy closed
authorized-regexp .*
location updating reject cause 13
encryption a5 0
neci 0
paging any use tch 0
rrlp mode none
mm info 1
handover 0
handover window rxlev averaging 10
handover window rxqual averaging 1
handover window rxlev neighbor averaging 10
handover power budget interval 6
handover power budget hysteresis 3
handover maximum distance 9999
timer t3103 4
timer t3105 4
timer t3107 4
timer t3109 4
timer t3111 4
timer t3115 4
timer t3117 4
timer t3119 4
timer t3122 4
timer t3141 4
dyn_ts_allow_tch_f 0
subscriber-keep-in-ram 0
bts 0
type sysmobts
band DCS1800
cell_identity 20960
location_area_code 13135
dtx uplink force
base_station_id_code 63
ms max power 40
cell reselection hysteresis 2
rxlev access min 45
periodic location update 6
radio-link-timeout 4
channel allocator ascending
rach tx integer 7
rach max transmission 4
channel-descrption attach 0
channel-descrption bs-pa-mfrms 3
channel-descrption bs-ag-blks-res 2
early-classmark-sending allowed
ip.access unit_id 1234 0
oml ip.access stream_id 255 line 0
neighbor-list mode automatic
codec-support fr hr efr amr
amr tch-f modes 7
amr tch-f start-mode auto
gprs mode gprs
gprs 11bit_rach_support_for_egprs 0
gprs routing area 0
gprs network-control-order nc0
gprs cell bvci 196
gprs cell timer blocking-timer 3
gprs cell timer blocking-retries 3
gprs cell timer unblocking-retries 3
gprs cell timer reset-timer 3
gprs cell timer reset-retries 3
gprs cell timer suspend-timer 10
gprs cell timer suspend-retries 3
gprs cell timer resume-timer 10
gprs cell timer resume-retries 3
gprs cell timer capability-update-timer 10
gprs cell timer capability-update-retries 3
gprs nsei 96
gprs ns timer tns-block 3
gprs ns timer tns-block-retries 3
gprs ns timer tns-reset 3
gprs ns timer tns-reset-retries 3
gprs ns timer tns-test 30
gprs ns timer tns-alive 3
gprs ns timer tns-alive-retries 10
gprs nsvc 0 nsvci 0
gprs nsvc 0 local udp port 21000
gprs nsvc 0 remote udp port 23000
gprs nsvc 0 remote ip 172.18.0.21
gprs nsvc 1 nsvci 0
gprs nsvc 1 local udp port 0
gprs nsvc 1 remote udp port 0
gprs nsvc 1 remote ip 0.0.0.0
no force-combined-si
trx 0
rf_locked 0
arfcn 871
nominal power 23
max_power_red 20
rsl e1 tei 0
timeslot 0
phys_chan_config CCCH+SDCCH4
hopping enabled 0
timeslot 1
phys_chan_config TCH/H
hopping enabled 0
timeslot 2
phys_chan_config TCH/H
hopping enabled 0
timeslot 3
phys_chan_config TCH/H
hopping enabled 0
timeslot 4
phys_chan_config TCH/H
hopping enabled 0
timeslot 5
phys_chan_config TCH/H
hopping enabled 0
timeslot 6
phys_chan_config TCH/H
hopping enabled 0
timeslot 7
phys_chan_config PDCH
hopping enabled 0
mncc-int
default-codec tch-f efr
default-codec tch-h hr
nitb
subscriber-create-on-demand
assign-tmsi
smpp
local-tcp-port 2775
policy closed
no smpp-first

@ -0,0 +1,40 @@
!
! OsmoBSCNAT (0.12.0.266-2daa9) configuration saved from vty
!!
!
log file /data/osmo-bsc_nat.log
logging filter all 1
logging color 0
logging print category 1
logging timestamp 1
logging print extended-timestamp 1
logging level force-all debug
!
line vty
no login
bind 0.0.0.0
!
mgcp
bind ip 0.0.0.0
bind port 2427
rtp bts-base 4000
rtp net-base 16000
rtp ip-dscp 0
no rtcp-omit
sdp audio-payload number 126
sdp audio-payload name AMR/8000
loop 0
number endpoints 32
call-agent ip 127.0.0.1
rtp transcoder-base 0
transcoder-remote-base 4000
nat
msc ip 127.0.0.1
msc port 5100
token foo
timeout auth 2
timeout ping 20
timeout pong 5
ip-dscp 0
bscs-config-file bscs.config
access-list msceven imsi-allow ^[0-9]*[24680]$
Loading…
Cancel
Save