diff options
author | Harald Welte <laforge@osmocom.org> | 2021-04-24 08:23:44 +0000 |
---|---|---|
committer | Harald Welte <laforge@osmocom.org> | 2021-04-25 13:11:03 +0200 |
commit | f32df20e120a0851b3ecf4f1348814083d56e331 (patch) | |
tree | 5eb79875353bbac2415ceb05c37a107e43b52cb5 | |
parent | 0175e4c9028a7bf52dd64eca6d3a748677837a41 (diff) |
Add osmo-pcap-latest
Change-Id: I1da28383117d0f81d7857fa27ba837d77f0079e0
-rw-r--r-- | osmo-pcap-latest/Dockerfile | 28 | ||||
-rw-r--r-- | osmo-pcap-latest/Makefile | 1 | ||||
-rw-r--r-- | osmo-pcap-latest/osmo-pcap-client.cfg | 14 |
3 files changed, 43 insertions, 0 deletions
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 |