aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOliver Smith <osmith@sysmocom.de>2022-08-03 16:15:38 +0200
committerOliver Smith <osmith@sysmocom.de>2022-08-03 16:16:37 +0200
commit37b7b23de138a05a65a1833c2657ab79c6487e3d (patch)
treec6e2c0e7134931d69205944500b475c0e8e29d1f
parentac04ee2fe6ca887484bce7d3878587eccf5952ca (diff)
osmo-hnodeb-latest: new container
-rw-r--r--osmo-hnodeb-latest/Dockerfile28
-rw-r--r--osmo-hnodeb-latest/Makefile1
-rw-r--r--osmo-hnodeb-latest/osmo-hnodeb.cfg22
3 files changed, 51 insertions, 0 deletions
diff --git a/osmo-hnodeb-latest/Dockerfile b/osmo-hnodeb-latest/Dockerfile
new file mode 100644
index 0000000..675a12c
--- /dev/null
+++ b/osmo-hnodeb-latest/Dockerfile
@@ -0,0 +1,28 @@
+ARG USER
+ARG DISTRO
+ARG OSMOCOM_REPO_VERSION="latest"
+FROM $USER/$DISTRO-obs-$OSMOCOM_REPO_VERSION
+# 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 \
+ osmo-hnodeb && \
+ apt-get clean \
+ ;; \
+ centos*) \
+ dnf install -y \
+ osmo-hnodeb \
+ ;; \
+ esac
+
+WORKDIR /tmp
+
+VOLUME /data
+
+COPY osmo-hnodeb.cfg /data/osmo-hnodeb.cfg
+
+WORKDIR /data
+CMD ["/bin/sh", "-c", "/usr/bin/osmo-hnodeb -c /data/osmo-hnodeb.cfg >/data/osmo-hnodeb.log 2>&1"]
diff --git a/osmo-hnodeb-latest/Makefile b/osmo-hnodeb-latest/Makefile
new file mode 100644
index 0000000..8d0e10b
--- /dev/null
+++ b/osmo-hnodeb-latest/Makefile
@@ -0,0 +1 @@
+include ../make/Makefile
diff --git a/osmo-hnodeb-latest/osmo-hnodeb.cfg b/osmo-hnodeb-latest/osmo-hnodeb.cfg
new file mode 100644
index 0000000..b41c67b
--- /dev/null
+++ b/osmo-hnodeb-latest/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