Add osmo-bsc-gerrit
Change-Id: Iab22d7a1ce3aa7a89797d07761122bb0f28c481f
This commit is contained in:
parent
c7b52048e6
commit
973142da89
|
@ -0,0 +1,81 @@
|
|||
ARG USER
|
||||
ARG DISTRO
|
||||
FROM $USER/$DISTRO-build
|
||||
# Arguments used after FROM must be specified again
|
||||
ARG DISTRO
|
||||
|
||||
MAINTAINER Harald Welte <laforge@gnumonks.org>
|
||||
|
||||
ARG OSMOCOM_REPO="http://download.opensuse.org/repositories/network:/osmocom:/nightly/Debian_9.0/"
|
||||
|
||||
COPY Release.key /tmp/Release.key
|
||||
|
||||
RUN case "$DISTRO" in \
|
||||
debian*) \
|
||||
apt-get install -y ca-certificates && \
|
||||
apt-key add /tmp/Release.key && \
|
||||
rm /tmp/Release.key && \
|
||||
echo "deb " $OSMOCOM_REPO " ./" > /etc/apt/sources.list.d/osmocom-nightly.list \
|
||||
;; \
|
||||
esac
|
||||
|
||||
ADD $OSMOCOM_REPO/Release /tmp/Release
|
||||
RUN case "$DISTRO" in \
|
||||
debian*) \
|
||||
apt-get update && \
|
||||
apt-get install -y --no-install-recommends \
|
||||
telnet \
|
||||
libosmocore-dev \
|
||||
libosmo-abis-dev \
|
||||
libosmo-netif-dev \
|
||||
libosmo-sccp-dev \
|
||||
libosmo-sigtran-dev \
|
||||
libosmo-mgcp-client-dev \
|
||||
libgtp-dev && \
|
||||
apt-get clean \
|
||||
;; \
|
||||
centos*) \
|
||||
dnf install -y \
|
||||
"pkgconfig(libosmo-mgcp-client)" \
|
||||
"pkgconfig(libosmo-netif)" \
|
||||
"pkgconfig(libosmo-sccp)" \
|
||||
"pkgconfig(libosmo-sigtran)" \
|
||||
"pkgconfig(libosmoabis)" \
|
||||
"pkgconfig(libosmocore)" \
|
||||
"pkgconfig(libosmoctrl)" \
|
||||
"pkgconfig(libosmogb)" \
|
||||
"pkgconfig(libosmogsm)" \
|
||||
"pkgconfig(libosmovty)" \
|
||||
;; \
|
||||
esac
|
||||
|
||||
WORKDIR /tmp
|
||||
|
||||
ARG GERRIT_REFSPEC
|
||||
# e.g. refs/changes/08/8/1
|
||||
ARG GERRIT_CHANGE_NUMBER
|
||||
# e.g. 8
|
||||
ARG GERRIT_PATCHSET_NUMBER
|
||||
# e.g. 1
|
||||
ARG GERRIT_PROJECT
|
||||
# e.g. osmo-mgw
|
||||
|
||||
RUN git clone https://gerrit.osmocom.org/osmo-bsc.git
|
||||
|
||||
# ADD https://gerrit.osmocom.org/changes/osmo-mgw~19271/revisions/2/patch?download /tmp/commit-osmo-bsc
|
||||
ADD "https://gerrit.osmocom.org/changes/${GERRIT_PROJECT}~${GERRIT_CHANGE_NUMBER}/revisions/${GERRIT_PATCHSET_NUMBER}/patch?download" /tmp/commit-osmo-bsc
|
||||
RUN cd osmo-bsc && \
|
||||
git fetch "https://gerrit.osmocom.org/${GERRIT_PROJECT}" ${GERRIT_REFSPEC} && git checkout FETCH_HEAD && \
|
||||
git rev-parse --abbrev-ref HEAD && git rev-parse HEAD && \
|
||||
autoreconf -fi && \
|
||||
./configure && \
|
||||
make -j8 install
|
||||
|
||||
VOLUME /data
|
||||
|
||||
COPY osmo-bsc.cfg /data/osmo-bsc.cfg
|
||||
|
||||
WORKDIR /data
|
||||
CMD ["/bin/sh", "-c", "/usr/local/bin/osmo-bsc -c /data/osmo-bsc.cfg >/data/osmo-bsc.log 2>&1"]
|
||||
|
||||
#EXPOSE
|
|
@ -0,0 +1,3 @@
|
|||
RUN_ARGS?=--rm --network sigtran --ip 172.18.0.20 -v bsc-vol:/data
|
||||
|
||||
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
|
||||
b2plY3QgPG5ldHdvcmtAYnVpbGQub3BlbnN1c2Uub3JnPokBPAQTAQIAJgUCXm/4
|
||||
pgIbAwUJEEzwqgYLCQgHAwIEFQIIAwQWAgMBAh4BAheAAAoJEGLrGgkXKA3f/1AH
|
||||
/A7WVSpfM4wV/DMqZPTsSjChB4JyDotxpV7qHZzBC5aaP2dINZyi9PayIwZWbvCY
|
||||
VKvt+Fw8oCGC9F9mdh10Xe+ElHeVNSihzABPuu1RkRkb1nvkymScy0yxydodYOBi
|
||||
K4WQ+BhpijXWmYvOekIwbS5Hi9BHpfgK4TinK0xsvh1bVLeQJ8YjrnNFIAR2CnBa
|
||||
X7Y72Up/kKL08DdQzuS+mKrJtAQlGMtIsukWC2ajYQMkNwm8Gvhpn8za113dCkBW
|
||||
XAFnlQqQobKwC7b19QgEtJI/YpGSrRc6WaZxPyAjscbWQlFEAB900sVj4BWT55ig
|
||||
7O2uSdsCVhTuU7T0ztwsgvmIRgQTEQIABgUCUkG3/AAKCRA7MBG3a51lIzhdAJ9v
|
||||
d6XPffMZRcCGgDEY5OaTn/MsCQCgrXbeZpFJgnirSrc8rRonvzYFiF4=
|
||||
=/Tek
|
||||
-----END PGP PUBLIC KEY BLOCK-----
|
|
@ -0,0 +1,176 @@
|
|||
!
|
||||
! OsmoBSC (1.0.1.122-630df) configuration saved from vty
|
||||
!!
|
||||
password foo
|
||||
!
|
||||
log stderr
|
||||
logging filter all 1
|
||||
logging color 1
|
||||
logging print category 0
|
||||
logging timestamp 0
|
||||
logging level rll notice
|
||||
logging level cc notice
|
||||
logging level mm notice
|
||||
logging level rr notice
|
||||
logging level rsl notice
|
||||
logging level nm info
|
||||
logging level pag notice
|
||||
logging level meas notice
|
||||
logging level msc notice
|
||||
logging level mgcp notice
|
||||
logging level ho notice
|
||||
logging level ref notice
|
||||
logging level ctrl notice
|
||||
logging level filter 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
|
||||
logging level lmgcp 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 1
|
||||
mobile network code 1
|
||||
encryption a5 0
|
||||
neci 1
|
||||
paging any use tch 0
|
||||
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 t3113 10
|
||||
timer t3212 30
|
||||
bts 0
|
||||
type sysmobts
|
||||
band DCS1800
|
||||
cell_identity 0
|
||||
location_area_code 1
|
||||
dtx uplink force
|
||||
dtx downlink
|
||||
base_station_id_code 63
|
||||
ms max power 15
|
||||
cell reselection hysteresis 4
|
||||
rxlev access min 0
|
||||
radio-link-timeout 32
|
||||
channel allocator ascending
|
||||
rach tx integer 9
|
||||
rach max transmission 7
|
||||
channel-descrption attach 1
|
||||
channel-descrption bs-pa-mfrms 5
|
||||
channel-descrption bs-ag-blks-res 1
|
||||
early-classmark-sending forbidden
|
||||
ip.access unit_id 1234 0
|
||||
oml ip.access stream_id 255 line 0
|
||||
neighbor-list mode manual-si5
|
||||
neighbor-list add arfcn 100
|
||||
neighbor-list add arfcn 200
|
||||
si5 neighbor-list add arfcn 10
|
||||
si5 neighbor-list add arfcn 20
|
||||
codec-support fr
|
||||
gprs mode gprs
|
||||
gprs routing area 0
|
||||
gprs network-control-order nc0
|
||||
gprs cell bvci 1234
|
||||
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 1234
|
||||
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 1234
|
||||
gprs nsvc 0 local udp port 23000
|
||||
gprs nsvc 0 remote udp port 23000
|
||||
gprs nsvc 0 remote ip 192.168.100.239
|
||||
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/F
|
||||
hopping enabled 0
|
||||
timeslot 2
|
||||
phys_chan_config TCH/F
|
||||
hopping enabled 0
|
||||
timeslot 3
|
||||
phys_chan_config TCH/F
|
||||
hopping enabled 0
|
||||
timeslot 4
|
||||
phys_chan_config TCH/F
|
||||
hopping enabled 0
|
||||
timeslot 5
|
||||
phys_chan_config TCH/F
|
||||
hopping enabled 0
|
||||
timeslot 6
|
||||
phys_chan_config PDCH
|
||||
hopping enabled 0
|
||||
timeslot 7
|
||||
phys_chan_config PDCH
|
||||
hopping enabled 0
|
||||
msc 0
|
||||
no bsc-welcome-text
|
||||
no bsc-msc-lost-text
|
||||
no bsc-grace-text
|
||||
type normal
|
||||
allow-emergency allow
|
||||
amr-config 12_2k forbidden
|
||||
amr-config 10_2k forbidden
|
||||
amr-config 7_95k forbidden
|
||||
amr-config 7_40k forbidden
|
||||
amr-config 6_70k forbidden
|
||||
amr-config 5_90k allowed
|
||||
amr-config 5_15k forbidden
|
||||
amr-config 4_75k forbidden
|
||||
codec-list fr1 fr2 fr3
|
||||
lcls-mode mgw-loop
|
||||
bsc
|
||||
mid-call-timeout 0
|
||||
no missing-msc-text
|
Loading…
Reference in New Issue