Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin runner: Support plugins that use Docker #358

Merged
merged 1 commit into from
Nov 14, 2024

Conversation

ZoogieZork
Copy link
Contributor

@ZoogieZork ZoogieZork commented Nov 14, 2024

Description

The Plugin Runner tool now supports plugins that need to use Docker (e.g. trivy).

This is accomplished the same way we do it in the AWS deployment, by mounting the docker.sock in the engine as a volume that gets inherited by the plugin containers -- see docker-compose.aws.yml.

Motivation and Context

Plugins that use Docker would previously just hang on execution.

How Has This Been Tested?

Tested running the Trivy plugin locally.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation change

Checklist

  • My code follows conforms to the coding standards.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

This matches how the engine container is started in a full deployment
(see docker-compose.aws.yml).

This enables support for plugins which scan local container images.
@ZoogieZork ZoogieZork marked this pull request as ready for review November 14, 2024 21:43
@ZoogieZork ZoogieZork requested a review from a team as a code owner November 14, 2024 21:43
Copy link
Contributor

@g-marconet g-marconet left a comment

Choose a reason for hiding this comment

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

LGTM

@ZoogieZork ZoogieZork merged commit 88c9d73 into main Nov 14, 2024
5 checks passed
@ZoogieZork ZoogieZork deleted the zoogiezork/plugin-runner-docker-sock branch November 14, 2024 22:18
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