Change in docker-playground[master]: Add osmo-pcap-latest

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/.

laforge gerrit-no-reply at lists.osmocom.org
Sun Apr 25 11:18:34 UTC 2021


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

Change subject: Add osmo-pcap-latest
......................................................................

Add osmo-pcap-latest

Change-Id: I1da28383117d0f81d7857fa27ba837d77f0079e0
---
A osmo-pcap-latest/Dockerfile
A osmo-pcap-latest/Makefile
A osmo-pcap-latest/osmo-pcap-client.cfg
3 files changed, 43 insertions(+), 0 deletions(-)

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



diff --git a/osmo-pcap-latest/Dockerfile b/osmo-pcap-latest/Dockerfile
new file mode 100644
index 0000000..30c6a56
--- /dev/null
+++ b/osmo-pcap-latest/Dockerfile
@@ -0,0 +1,28 @@
+ARG	USER
+ARG	DISTRO
+FROM	$USER/$DISTRO-obs-latest
+# 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-pcap-client osmo-pcap-server && \
+		apt-get clean \
+		;; \
+	centos*) \
+		dnf install -y \
+			osmo-pcap-client osmo-pcap-server \
+		;; \
+	esac
+
+WORKDIR	/data
+
+VOLUME	/data
+COPY	osmo-pcap-client.cfg /data/
+#COPY	osmo-pcap-server.cfg /data/
+
+CMD	["/bin/sh", "-c", "/usr/bin/osmo-pcap-clint -c /data/osmo-pcap-client.cfg >/data/osmo-pcap-client.log 2>&1"]
+
+EXPOSE	4237
diff --git a/osmo-pcap-latest/Makefile b/osmo-pcap-latest/Makefile
new file mode 100644
index 0000000..8d0e10b
--- /dev/null
+++ b/osmo-pcap-latest/Makefile
@@ -0,0 +1 @@
+include ../make/Makefile
diff --git a/osmo-pcap-latest/osmo-pcap-client.cfg b/osmo-pcap-latest/osmo-pcap-client.cfg
new file mode 100644
index 0000000..89f1801
--- /dev/null
+++ b/osmo-pcap-latest/osmo-pcap-client.cfg
@@ -0,0 +1,14 @@
+!
+! OsmoPCAPClient (UNKNOWN-dirty) configuration saved from vty
+!!
+!
+!
+line vty
+ no login
+!
+client
+ pcap device lo
+ pcap filter udp port 44423
+ pcap detect-loop 0
+ server ip 127.0.0.1
+ server port 5000

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

Gerrit-Project: docker-playground
Gerrit-Branch: master
Gerrit-Change-Id: I1da28383117d0f81d7857fa27ba837d77f0079e0
Gerrit-Change-Number: 23884
Gerrit-PatchSet: 1
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/20210425/2bc1cbc5/attachment.htm>


More information about the gerrit-log mailing list