Change in docker-playground[master]: Introduce Docker image for osmo-hnodeb-master

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

pespin gerrit-no-reply at lists.osmocom.org
Wed Nov 24 22:22:29 UTC 2021


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

Change subject: Introduce Docker image for osmo-hnodeb-master
......................................................................

Introduce Docker image for osmo-hnodeb-master

Change-Id: I35e5324d981be8130fbc4e6dcd3e8933181e6821
---
M make/Makefile
A osmo-hnodeb-master/Dockerfile
A osmo-hnodeb-master/Makefile
A osmo-hnodeb-master/osmo-hnodeb.cfg
4 files changed, 78 insertions(+), 0 deletions(-)

Approvals:
  laforge: Looks good to me, approved
  fixeria: Looks good to me, but someone else must approve
  pespin: Verified



diff --git a/make/Makefile b/make/Makefile
index e357803..416fc18 100644
--- a/make/Makefile
+++ b/make/Makefile
@@ -26,6 +26,7 @@
 OSMO_GGSN_BRANCH?=master
 OSMO_GSM_TESTER_BRANCH?=master
 OSMO_HLR_BRANCH?=master
+OSMO_HNODEB_BRANCH?=master
 OSMO_IUH_BRANCH?=master
 OSMO_MGW_BRANCH?=master
 OSMO_MSC_BRANCH?=master
@@ -100,6 +101,7 @@
 		--build-arg OSMO_GGSN_BRANCH=$(OSMO_GGSN_BRANCH) \
 		--build-arg OSMO_GSM_TESTER_BRANCH=$(OSMO_GSM_TESTER_BRANCH) \
 		--build-arg OSMO_HLR_BRANCH=$(OSMO_HLR_BRANCH) \
+		--build-arg OSMO_HNODEB_BRANCH=$(OSMO_HNODEB_BRANCH) \
 		--build-arg OSMO_IUH_BRANCH=$(OSMO_IUH_BRANCH) \
 		--build-arg OSMO_MGW_BRANCH=$(OSMO_MGW_BRANCH) \
 		--build-arg OSMO_MSC_BRANCH=$(OSMO_MSC_BRANCH) \
diff --git a/osmo-hnodeb-master/Dockerfile b/osmo-hnodeb-master/Dockerfile
new file mode 100644
index 0000000..1a3ded9
--- /dev/null
+++ b/osmo-hnodeb-master/Dockerfile
@@ -0,0 +1,51 @@
+ARG	USER
+ARG	DISTRO
+FROM	$USER/$DISTRO-build
+# Arguments used after FROM must be specified again
+ARG	DISTRO
+
+RUN	apt-get update && \
+	apt-get install -y --no-install-recommends \
+		libosmocore-dev \
+		libosmo-abis-dev \
+		libosmo-netif-dev \
+		libosmo-sigtran-dev \
+		libasn1c-dev && \
+	apt-get clean
+
+WORKDIR	/tmp
+
+ARG	OSMO_IUH_BRANCH="master"
+
+RUN	git clone git://git.osmocom.org/osmo-iuh.git
+ADD	http://git.osmocom.org/osmo-iuh/patch?h=$OSMO_IUH_BRANCH /tmp/commit-osmo-iuh
+
+RUN	cd osmo-iuh && \
+	git fetch && git checkout $OSMO_IUH_BRANCH && \
+	(git symbolic-ref -q HEAD && git reset --hard origin/$OSMO_IUH_BRANCH || exit 1); \
+	git rev-parse --abbrev-ref HEAD && git rev-parse HEAD && \
+	autoreconf -fi && \
+	./configure && \
+	make "-j$(nproc)" install && \
+	ldconfig
+
+ARG	OSMO_HNODEB_BRANCH="master"
+
+RUN	git clone git://git.osmocom.org/osmo-hnodeb.git
+ADD	http://git.osmocom.org/osmo-hnodeb/patch?h=$OSMO_HNODEB_BRANCH /tmp/commit-osmo-hnodeb
+
+RUN	cd osmo-hnodeb && \
+	git fetch && git checkout $OSMO_HNODEB_BRANCH && \
+	(git symbolic-ref -q HEAD && git reset --hard origin/$OSMO_HNODEB_BRANCH || exit 1); \
+	git rev-parse --abbrev-ref HEAD && git rev-parse HEAD && \
+	autoreconf -fi && \
+	./configure && \
+	make "-j$(nproc)" install && \
+	ldconfig
+
+VOLUME	/data
+
+COPY	osmo-hnodeb.cfg /data/osmo-hnodeb.cfg
+
+WORKDIR	/data
+CMD	["/bin/sh", "-c", "/usr/local/bin/osmo-hnodeb -c /data/osmo-hnodeb.cfg >/data/osmo-hnodeb.log 2>&1"]
diff --git a/osmo-hnodeb-master/Makefile b/osmo-hnodeb-master/Makefile
new file mode 100644
index 0000000..47c3999
--- /dev/null
+++ b/osmo-hnodeb-master/Makefile
@@ -0,0 +1,3 @@
+RUN_ARGS?=--rm --network sigtran --ip 172.18.0.170 -v hnbgw-vol:/data
+
+include ../make/Makefile
diff --git a/osmo-hnodeb-master/osmo-hnodeb.cfg b/osmo-hnodeb-master/osmo-hnodeb.cfg
new file mode 100644
index 0000000..b41c67b
--- /dev/null
+++ b/osmo-hnodeb-master/osmo-hnodeb.cfg
@@ -0,0 +1,22 @@
+!
+! OsmoHNodeB (0) configuration saved from vty
+!!
+!
+log stderr
+ logging filter all 1
+ logging color 1
+ logging print category 1
+ logging timestamp 1
+ logging print extended-timestamp 1
+ logging level set-all debug
+line vty
+ no login
+ bind 0.0.0.0
+hnodeb
+ cell_identity 1
+ location_area_code 2
+ routing_area_code 3
+ service_area_code 4
+ iuh
+  local-ip 0.0.0.0
+  remote-ip 192.168.30.1

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

Gerrit-Project: docker-playground
Gerrit-Branch: master
Gerrit-Change-Id: I35e5324d981be8130fbc4e6dcd3e8933181e6821
Gerrit-Change-Number: 26358
Gerrit-PatchSet: 2
Gerrit-Owner: pespin <pespin at sysmocom.de>
Gerrit-Reviewer: fixeria <vyanitskiy at sysmocom.de>
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-Reviewer: pespin <pespin at sysmocom.de>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20211124/d40fe244/attachment.htm>


More information about the gerrit-log mailing list