caldera icon indicating copy to clipboard operation
caldera copied to clipboard

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

Open d3vzer0 opened this issue 1 year ago • 7 comments

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

d3vzer0 avatar Apr 15 '24 12:04 d3vzer0

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/

github-actions[bot] avatar Apr 15 '24 12:04 github-actions[bot]

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

d3vzer0 avatar Apr 15 '24 13:04 d3vzer0

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 (https://github.com/mitre/caldera/commit/f9b0ed23ba77b7e48e98f03ae4560473d3eda298)

digoblin avatar May 10 '24 13:05 digoblin

@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 :)

d3vzer0 avatar May 15 '24 11:05 d3vzer0

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days

github-actions[bot] avatar Jun 30 '24 00:06 github-actions[bot]

Facing the exact same issue on latest (commit: b5a9bcbdf852b696624b5ad81fa0f561005f62a1) I'm doing docker compose up on code, not running pre-built docker

image

I was able to resolve the issue for now, by manually running "npm run build" in magma plugin directory

vishwaspai avatar Jul 12 '24 10:07 vishwaspai

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days

github-actions[bot] avatar Sep 11 '24 00:09 github-actions[bot]