Skip to content

Add antrea/tshark image#66

Merged
antoninbas merged 1 commit intomainfrom
add-tshark-image
Feb 28, 2026
Merged

Add antrea/tshark image#66
antoninbas merged 1 commit intomainfrom
add-tshark-image

Conversation

@antoninbas
Copy link
Collaborator

@antoninbas antoninbas commented Feb 28, 2026

Add a new tshark image based on ubuntu:24.04. The image runs as a
dedicated non-root user added to the wireshark group (required to
execute dumpcap). The tshark apt package version is pinned; packet
capture requires NET_RAW and NET_ADMIN capabilities to be granted at
runtime via the container's securityContext.

The image tag is derived from the tshark semver (extracted from the
pinned package version in the Dockerfile) suffixed with the short commit
SHA, e.g., 4.2.2-abc1234. Rolling tags <semver> and latest are
also produced. The GitHub Actions workflow builds for linux/amd64,
linux/arm64, and linux/arm/v7, and pushes on merge to main. Renovate is
configured to auto-update both the ubuntu base image digest and the
pinned tshark apt package version.

We do not add tshark to the toolbox image, as that would grow the image
size too much.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new antrea/tshark container image (Ubuntu-based) to support packet capture with tshark/dumpcap, and wires up CI + Renovate to build, tag, push, and keep dependencies updated.

Changes:

  • Add images/tshark image (Dockerfile + usage README) with pinned tshark package and non-root runtime user.
  • Add GitHub Actions workflow to build multi-arch and push tags derived from the tshark version.
  • Extend Renovate config to update the pinned tshark deb version via a custom regex manager.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
images/tshark/README.md Documents the new image and provides a Kubernetes DaemonSet example for captures.
images/tshark/Dockerfile Defines the Ubuntu 24.04-based tshark image, user/group setup, and default command.
README.md Adds antrea/tshark to the top-level image list.
.github/workflows/docker_build_tshark.yml Builds and pushes the new image (multi-arch) and computes tags from the pinned tshark version.
.github/renovate.json5 Enables a custom Renovate regex manager to update the pinned tshark package version.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Add a new tshark image based on ubuntu:24.04. The image runs as a
dedicated non-root user added to the wireshark group (required to
execute dumpcap). The tshark apt package version is pinned; packet
capture requires NET_RAW and NET_ADMIN capabilities to be granted at
runtime via the container's securityContext.

The image tag is derived from the tshark semver (extracted from the
pinned package version in the Dockerfile) suffixed with the short commit
SHA, e.g., `4.2.2-abc1234`. Rolling tags `<semver>` and `latest` are
also produced. The GitHub Actions workflow builds for linux/amd64,
linux/arm64, and linux/arm/v7, and pushes on merge to main. Renovate is
configured to auto-update both the ubuntu base image digest and the
pinned tshark apt package version.

Signed-off-by: Antonin Bas <antonin.bas@broadcom.com>
@antoninbas antoninbas merged commit 831c9d0 into main Feb 28, 2026
2 checks passed
@antoninbas antoninbas deleted the add-tshark-image branch February 28, 2026 05:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants