add Dockerfiles for osmo-nitb, osmo-sgsn + osmo-bts building latest master

This commit is contained in:
Harald Welte 2017-08-20 20:19:13 +02:00
parent 1a03cec68c
commit cc17c6779c
15 changed files with 487 additions and 0 deletions

2
osmo-bts-master/.release Normal file
View File

@ -0,0 +1,2 @@
release=0.0.0
tag=osmo-bts-master-0.0.0

View File

@ -0,0 +1,44 @@
FROM laforge/debian-jessie-build
MAINTAINER Harald Welte <laforge@gnumonks.org>
COPY Release.key /tmp/Release.key
RUN apt-key add /tmp/Release.key && \
rm /tmp/Release.key && \
echo "deb http://download.opensuse.org/repositories/network:/osmocom:/nightly/Debian_8.0/ ./" > /etc/apt/sources.list.d/osmocom-nightly.list
RUN apt-get update && apt-get install -y \
telnet \
libosmocore-dev \
libosmo-abis-dev \
libosmo-netif-dev \
libosmo-sccp-dev \
libsmpp34-dev \
libgtp-dev
WORKDIR /tmp
RUN git clone git://git.osmocom.org/openbsc.git
ADD http://git.osmocom.org/openbsc/patch /tmp/commit-openbsc
RUN git clone git://git.osmocom.org/osmo-bts.git
ADD http://git.osmocom.org/osmo-bts/patch /tmp/commit-osmo-bts
RUN cd openbsc/openbsc && \
git fetch && git checkout -f -B master origin/master
RUN cd osmo-bts && \
git fetch && git checkout -f -B master origin/master && \
autoreconf -fi && \
./configure --enable-trx && \
make -j8 install
VOLUME /data
COPY osmo-bts.cfg /data/osmo-bts.cfg
WORKDIR /data
CMD ["/usr/local/bin/osmo-bts-virtual"]
#EXPOSE

3
osmo-bts-master/Makefile Normal file
View File

@ -0,0 +1,3 @@
RUN_ARGS?=--rm --network sigtran --ip 172.18.0.210 -v bts-vol:/data
include ../make/Makefile

View File

@ -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
b2plY3QgPG5ldHdvcmtAYnVpbGQub3BlbnN1c2Uub3JnPokBPAQTAQIAJgUCVlbg
vgIbAwUJCDPYwgYLCQgHAwIEFQIIAwQWAgMBAh4BAheAAAoJEGLrGgkXKA3fKpsH
+wcLqrk927aVs37n8xHHUpLCPiB215zB1p/uS/ZJtWuvY17caZX9kCIkQJhlVfyH
ObUJOiJkllAHhbybsCCAShB2COyf9q78y/x9hx2VMOI0nSznowuk5CYnWB3NNd/y
jC+FKw2Q+6+WRoODYodQPgCaBGp9Ptl2MFUots+NnMzhxlDUWL14WG7D/4IqK5TW
IJRrk4YCDtcl5jx9Zt2evf99CqJqZg+GsfESzd4reHjJBokHqz5wOXTGuOpJroAZ
KPztGvm/ltA3qYfZy6rlREpTE/GQxeXv6c8w+Zz82CeDYouzArTEr4qc+RD36TZt
IUpbkm7ZOzHDFrLNx/1YCv6IRgQTEQIABgUCUkG3/AAKCRA7MBG3a51lIzhdAJ9v
d6XPffMZRcCGgDEY5OaTn/MsCQCgrXbeZpFJgnirSrc8rRonvzYFiF4=
=XdMN
-----END PGP PUBLIC KEY BLOCK-----

View File

@ -0,0 +1,73 @@
!
! OsmoBTS (0.4.0.561-6b83-dirty) configuration saved from vty
!!
!
log stderr
logging filter all 1
logging color 1
logging print category 0
logging timestamp 0
logging level all everything
logging level rsl info
logging level oml debug
logging level rll notice
logging level rr notice
logging level meas notice
logging level pag info
logging level l1c info
logging level l1p info
logging level dsp debug
logging level pcu debug
logging level ho notice
logging level trx notice
logging level loop notice
logging level abis debug
logging level rtp notice
logging level sum 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
!
line vty
no login
!
e1_input
e1_line 0 driver ipa
e1_line 0 port 0
no e1_line 0 keepalive
phy 0
!virtual-um ms-multicast-group 239.193.23.1
!virtual-um bts-multicast-group 239.193.23.2
instance 0
bts 0
band DCS1800
ipa unit-id 1234 0
oml remote-ip 172.18.0.20
rtp jitter-buffer 100
paging queue-size 200
paging lifetime 0
uplink-power-target -75
gsmtap-sapi ccch
gsmtap-sapi agch
gsmtap-sapi pch
min-qual-rach 50
min-qual-norm -5
trx 0
power-ramp max-initial 23000 mdBm
power-ramp step-size 2000 mdB
power-ramp step-interval 1
ms-power-control dsp
phy 0 instance 0

View File

@ -0,0 +1,2 @@
release=0.0.0
tag=osmo-nitb-master-0.0.0

View File

@ -0,0 +1,39 @@
FROM laforge/debian-jessie-build
MAINTAINER Harald Welte <laforge@gnumonks.org>
COPY Release.key /tmp/Release.key
RUN apt-key add /tmp/Release.key && \
rm /tmp/Release.key && \
echo "deb http://download.opensuse.org/repositories/network:/osmocom:/nightly/Debian_8.0/ ./" > /etc/apt/sources.list.d/osmocom-nightly.list
RUN apt-get update && apt-get install -y \
telnet \
libosmocore-dev \
libosmo-abis-dev \
libosmo-netif-dev \
libosmo-sccp-dev \
libsmpp34-dev \
libgtp-dev
WORKDIR /tmp
RUN git clone git://git.osmocom.org/openbsc.git
ADD http://git.osmocom.org/openbsc/patch /tmp/commit-openbsc
RUN cd openbsc/openbsc && \
git fetch && git checkout -f -B master origin/master && \
autoreconf -fi && \
./configure --enable-nat --enable-osmo-bsc --enable-smpp && \
make -j8 install && \
ldconfig
VOLUME /data
COPY openbsc.cfg /data/openbsc.cfg
WORKDIR /data
CMD ["/usr/local/bin/osmo-nitb"]
EXPOSE 3002/tcp 3003/tcp 4242/tcp 2775/tcp 4249/tcp

View File

@ -0,0 +1,3 @@
RUN_ARGS?=--rm --network sigtran --ip 172.18.0.20 -v nitb-vol:/data
include ../make/Makefile

View File

@ -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
b2plY3QgPG5ldHdvcmtAYnVpbGQub3BlbnN1c2Uub3JnPokBPAQTAQIAJgUCVlbg
vgIbAwUJCDPYwgYLCQgHAwIEFQIIAwQWAgMBAh4BAheAAAoJEGLrGgkXKA3fKpsH
+wcLqrk927aVs37n8xHHUpLCPiB215zB1p/uS/ZJtWuvY17caZX9kCIkQJhlVfyH
ObUJOiJkllAHhbybsCCAShB2COyf9q78y/x9hx2VMOI0nSznowuk5CYnWB3NNd/y
jC+FKw2Q+6+WRoODYodQPgCaBGp9Ptl2MFUots+NnMzhxlDUWL14WG7D/4IqK5TW
IJRrk4YCDtcl5jx9Zt2evf99CqJqZg+GsfESzd4reHjJBokHqz5wOXTGuOpJroAZ
KPztGvm/ltA3qYfZy6rlREpTE/GQxeXv6c8w+Zz82CeDYouzArTEr4qc+RD36TZt
IUpbkm7ZOzHDFrLNx/1YCv6IRgQTEQIABgUCUkG3/AAKCRA7MBG3a51lIzhdAJ9v
d6XPffMZRcCGgDEY5OaTn/MsCQCgrXbeZpFJgnirSrc8rRonvzYFiF4=
=XdMN
-----END PGP PUBLIC KEY BLOCK-----

View File

@ -0,0 +1,194 @@
!
! 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
!
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

View File

@ -0,0 +1,2 @@
release=0.0.0
tag=osmo-sgsn-master-0.0.0

View File

@ -0,0 +1,39 @@
FROM laforge/debian-jessie-build
MAINTAINER Harald Welte <laforge@gnumonks.org>
COPY Release.key /tmp/Release.key
RUN apt-key add /tmp/Release.key && \
rm /tmp/Release.key && \
echo "deb http://download.opensuse.org/repositories/network:/osmocom:/nightly/Debian_8.0/ ./" > /etc/apt/sources.list.d/osmocom-nightly.list
RUN apt-get update && apt-get install -y \
telnet \
libosmocore-dev \
libosmo-abis-dev \
libosmo-netif-dev \
libosmo-sccp-dev \
libsmpp34-dev \
libgtp-dev
WORKDIR /tmp
RUN git clone git://git.osmocom.org/openbsc.git
ADD http://git.osmocom.org/openbsc/patch /tmp/commit-openbsc
RUN cd openbsc/openbsc && \
git fetch && git checkout -f -B master origin/master && \
autoreconf -fi && \
./configure --enable-nat --enable-osmo-bsc --enable-smpp && \
make -j8 install && \
ldconfig
VOLUME /data
COPY osmo_sgsn.cfg /data/osmo_sgsn.cfg
WORKDIR /data
CMD ["/usr/local/bin/osmo-sgsn"]
EXPOSE 23000/udp 4245/tcp 4249/tcp

View File

@ -0,0 +1,3 @@
RUN_ARGS?=--rm --network sigtran --ip 172.18.0.21 -v sgsn-vol:/data
include ../make/Makefile

View File

@ -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
b2plY3QgPG5ldHdvcmtAYnVpbGQub3BlbnN1c2Uub3JnPokBPAQTAQIAJgUCVlbg
vgIbAwUJCDPYwgYLCQgHAwIEFQIIAwQWAgMBAh4BAheAAAoJEGLrGgkXKA3fKpsH
+wcLqrk927aVs37n8xHHUpLCPiB215zB1p/uS/ZJtWuvY17caZX9kCIkQJhlVfyH
ObUJOiJkllAHhbybsCCAShB2COyf9q78y/x9hx2VMOI0nSznowuk5CYnWB3NNd/y
jC+FKw2Q+6+WRoODYodQPgCaBGp9Ptl2MFUots+NnMzhxlDUWL14WG7D/4IqK5TW
IJRrk4YCDtcl5jx9Zt2evf99CqJqZg+GsfESzd4reHjJBokHqz5wOXTGuOpJroAZ
KPztGvm/ltA3qYfZy6rlREpTE/GQxeXv6c8w+Zz82CeDYouzArTEr4qc+RD36TZt
IUpbkm7ZOzHDFrLNx/1YCv6IRgQTEQIABgUCUkG3/AAKCRA7MBG3a51lIzhdAJ9v
d6XPffMZRcCGgDEY5OaTn/MsCQCgrXbeZpFJgnirSrc8rRonvzYFiF4=
=XdMN
-----END PGP PUBLIC KEY BLOCK-----

View File

@ -0,0 +1,23 @@
!
! Osmocom SGSN (0.9.0.474-0ede2) configuration saved from vty
!!
!
line vty
no login
!
sgsn
gtp local-ip 172.18.0.21
ggsn 0 remote-ip 172.18.0.201
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 172.18.0.21
encapsulation udp local-port 23000
encapsulation framerelay-gre enabled 0
bssgp