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

Docker image (ghcr.io/mitre/caldera:5.0.0) does not contain Magma (dist) build files #2949

Open
d3vzer0 opened this issue Apr 15, 2024 · 4 comments
Assignees
Labels

Comments

@d3vzer0
Copy link

d3vzer0 commented Apr 15, 2024

Describe the bug
The docker image (ghcr.io/mitre/caldera:5.0.0) does not contain the Magma plugin (dist) build files. Starting the container will fail with the following error:

ValueError: No directory exists at '/usr/src/app/plugins/magma/dist/assets'

This could be caused by an older Dockerfile being used which does not build Magma plugin's Vue project as part of the docker build process. If I build the container myself using the latest Dockerfile found in the repo, the container will start successfully.

To Reproduce
Steps to reproduce the behavior:

  1. Start a caldera container with docker using docker run ghcr.io/mitre/caldera:5.0.0 or
  2. Start a caldera container with Podman using podman run ghcr.io/mitre/caldera:5.0.0

Expected behavior
The container to start successfully

Screenshots
Screenshot 2024-04-15 at 14 49 43

Desktop (please complete the following information):

  • OS: Rocky Linux
Copy link

Looks like your first issue -- we aim to respond to issues as quickly as possible. In the meantime, check out our documentation here: http://caldera.readthedocs.io/

@d3vzer0
Copy link
Author

d3vzer0 commented Apr 15, 2024

It seems that this issue is related but the changes are not represented in the hosted Docker image itself (yet)

@digoblin
Copy link

digoblin commented May 10, 2024

The problem seems to come from specifying the 5.0.0 branch, if you get the latest build, you should get the updated Dockerfile that deals with the installation of the magma plugin (f9b0ed2)

@d3vzer0
Copy link
Author

d3vzer0 commented May 15, 2024

@digoblin Correct, the latest build solves the issue but the image hosted on the repository doesn't work. I guess the only thing required is running the pipeline again to build + publish a new image :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants