Change in docker-playground[master]: add osmo-ns-master container with osmo-ns-dummy binary

laforge gerrit-no-reply at lists.osmocom.org
Tue Mar 30 18:34:49 UTC 2021


laforge has submitted this change. ( https://gerrit.osmocom.org/c/docker-playground/+/23556 )

Change subject: add osmo-ns-master container with osmo-ns-dummy binary
......................................................................

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

Change-Id: I8372088722f5a487e0068418d543bd5cc707a5a1
Related: OS#5396
---
A osmo-ns-master/Dockerfile
A osmo-ns-master/Makefile
A osmo-ns-master/osmo-ns-dummy.cfg
3 files changed, 106 insertions(+), 0 deletions(-)

Approvals:
  laforge: Looks good to me, approved; Verified



diff --git a/osmo-ns-master/Dockerfile b/osmo-ns-master/Dockerfile
new file mode 100644
index 0000000..283c410
--- /dev/null
+++ b/osmo-ns-master/Dockerfile
@@ -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
diff --git a/osmo-ns-master/Makefile b/osmo-ns-master/Makefile
new file mode 100644
index 0000000..8d0e10b
--- /dev/null
+++ b/osmo-ns-master/Makefile
@@ -0,0 +1 @@
+include ../make/Makefile
diff --git a/osmo-ns-master/osmo-ns-dummy.cfg b/osmo-ns-master/osmo-ns-dummy.cfg
new file mode 100644
index 0000000..2a6a9ba
--- /dev/null
+++ b/osmo-ns-master/osmo-ns-dummy.cfg
@@ -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

-- 
To view, visit https://gerrit.osmocom.org/c/docker-playground/+/23556
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: docker-playground
Gerrit-Branch: master
Gerrit-Change-Id: I8372088722f5a487e0068418d543bd5cc707a5a1
Gerrit-Change-Number: 23556
Gerrit-PatchSet: 2
Gerrit-Owner: laforge <laforge at osmocom.org>
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210330/5c575b94/attachment.htm>


More information about the gerrit-log mailing list