osmith has uploaded this change for review. ( https://gerrit.osmocom.org/c/docker-playground/+/28910 )
Change subject: osmo-hnodeb-latest: new container ......................................................................
osmo-hnodeb-latest: new container
Change-Id: I4c8cba31b792810b7e73af37c1f63edb12e8b37d --- A osmo-hnodeb-latest/Dockerfile A osmo-hnodeb-latest/Makefile A osmo-hnodeb-latest/osmo-hnodeb.cfg 3 files changed, 51 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/docker-playground refs/changes/10/28910/1
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