add osmo-ns-master container with osmo-ns-dummy binary

Change-Id: I8372088722f5a487e0068418d543bd5cc707a5a1
Related: OS#5396
This commit is contained in:
Harald Welte 2021-03-30 20:11:50 +02:00
parent 51493aa388
commit 3fc5b8af4e
3 changed files with 106 additions and 0 deletions

45
osmo-ns-master/Dockerfile Normal file
View File

@ -0,0 +1,45 @@
ARG USER
ARG DISTRO
FROM $USER/$DISTRO-build
# Arguments used after FROM must be specified again
ARG DISTRO
RUN case "$DISTRO" in \
debian*) \
apt-get update && \
apt-get install -y --no-install-recommends \
python3-osmopy-utils \
libmnl-dev && \
apt-get clean \
;; \
centos*) \
dnf install -y \
"pkgconfig(libmnl)" \
;; \
esac
WORKDIR /tmp
ARG LIBOSMOCORE_BRANCH="master"
RUN git clone git://git.osmocom.org/libosmocore.git
ADD http://git.osmocom.org/libosmocore/patch?h=$LIBOSMOCORE_BRANCH /tmp/commit-libosmocore
RUN cd libosmocore && \
git fetch && git checkout $LIBOSMOCORE_BRANCH && \
(git symbolic-ref -q HEAD && git reset --hard origin/$LIBOSMOCORE_BRANCH || exit 1); \
git rev-parse --abbrev-ref HEAD && git rev-parse HEAD && \
autoreconf -fi && \
./configure --disable-doxygen --disable-pcsc --enable-external-tests && \
make "-j$(nproc)" install && \
install -m 0755 utils/.libs/osmo-ns-dummy /usr/local/bin/osmo-ns-dummy && \
/sbin/ldconfig
VOLUME /data
COPY osmo-ns-dummy.cfg /data/osmo-ns-dummy.cfg
WORKDIR /data
CMD ["/usr/local/bin/osmo-ns-dummy", "-p", "13245"]
#EXPOSE

1
osmo-ns-master/Makefile Normal file
View File

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

View File

@ -0,0 +1,60 @@
!
! OsmoNSdummy (1.5.0.3-45cf) configuration saved from vty
!!
!
log stderr
logging filter all 1
logging color 1
logging print category-hex 0
logging print category 1
logging print thread-id 0
logging timestamp 1
logging print file 1
logging level force-all info
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
logging level ljibuf notice
logging level lrspro notice
logging level lns debug
logging level lbssgp notice
!
stats interval 5
!
line vty
no login
bind 127.0.0.10
!
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
timer tsns-prov 3
timer tsns-size-retries 3
timer tsns-config-retries 3
bind udp pcu-side
listen 127.0.0.10 25000
ip-sns signalling-weight 23 data-weight 42
accept-dynamic-ip-sns
nse 1234
ip-sns-bind pcu-side
ip-sns-remote 127.0.0.1 23000
mirror-mode disable