Repository navigation
Fix Error importing plugin=builder - #3429
Closed
erickbarros311 wants to merge 1 commit into
Closed
erickbarros311 wants to merge 1 commit into
erickbarros311 wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When building the MITRE CALDERA Docker image and starting the application, the following error may appear:
The error occurs because the Python Docker SDK (
dockerpackage) is missing from the runtime environment. As a result, thebuilderplugin fails to load.To Reproduce
Dockerfile.Expected behavior
The Docker image should include the Python dependencies required by the
builderplugin, allowing it to be imported without errors.Screenshots
Not applicable.
Desktop (please complete the following information):
debian:bookworm-slimAdditional context
The issue was resolved by installing the Python Docker SDK in the runtime stage of the
Dockerfile.Initially, the following instruction was added to the
ui-buildstage, which usesnode:23:RUN pip3 install dockerHowever, this stage is responsible only for building the frontend and does not provide the Python environment used by CALDERA.
The solution was to move the installation to the
runtimestage, after installing Python and pip, and add the following instruction:This ensures that the
dockerPython module is available in the runtime environment, resolving theNo module named 'docker'error and allowing thebuilderplugin to load.Note: This change resolves the missing Python dependency. If the plugin needs to interact with the Docker Engine to build payloads, additional Docker Engine access configuration may be required.