CESNET / ipfixprobe

BSD 3-Clause "New" or "Revised" License
40 stars 18 forks source link

docker - introduce docker container for processing pcaps to csvs #216

Closed jaroslavpesek closed 1 month ago

jaroslavpesek commented 1 month ago

This PR adds a docker/podman setup for running ipfixprobe to export pcap files to csv. It includes:

  1. Dockerfile that installs all necessary dependencies.
  2. Wrapper script to build image if necessary, run ipfixprobe inside the container, handling input and output files.
  3. A (example) processing script that uses ipfixprobe and nemea to generate CSV logs from pcap data.
  4. Readme with doc

Usage:

  1. Build the Docker image: docker build -t docker_ipfixprobe .
  2. Run the export: ./ipfixprobe_wrapper.sh
codecov-commenter commented 1 month ago

:warning: Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 40.45%. Comparing base (3717722) to head (97c7d92). Report is 10 commits behind head on master.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #216 +/- ## ========================================== - Coverage 40.51% 40.45% -0.06% ========================================== Files 104 104 Lines 10102 10139 +37 Branches 1493 1501 +8 ========================================== + Hits 4093 4102 +9 - Misses 5145 5174 +29 + Partials 864 863 -1 ``` | [Flag](https://app.codecov.io/gh/CESNET/ipfixprobe/pull/216/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=CESNET) | Coverage Δ | | |---|---|---| | [tests](https://app.codecov.io/gh/CESNET/ipfixprobe/pull/216/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=CESNET) | `40.45% <ø> (-0.06%)` | :arrow_down: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=CESNET#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.