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 build fails with error about atomic-red-team repo #3125

Open
RidgebackZulu opened this issue Jan 24, 2025 · 1 comment
Open

Docker build fails with error about atomic-red-team repo #3125

RidgebackZulu opened this issue Jan 24, 2025 · 1 comment
Assignees
Labels

Comments

@RidgebackZulu
Copy link

RidgebackZulu commented Jan 24, 2025

Describe the bug
Docker build fails with error about atomic-red-team repo.

To Reproduce

sudo docker build --build-arg WIN_BUILD=true . -t caldera:server --network="host"

[+] Building 171.1s (29/32) docker:default
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 3.35kB 0.0s
=> [internal] load metadata for docker.io/library/ubuntu:24.04 0.3s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 333B 0.0s
=> CACHED [ 1/28] FROM docker.io/library/ubuntu:24.04@sha256:80dd3c3b9c6cecb9f1667e9290b3bc61b78c2678c02cbdae5f0fea92cc6 0.0s
=> [internal] load build context 9.0s
=> => transferring context: 204.87MB 8.9s
=> [ 2/28] RUN ln -snf /usr/share/zoneinfo/UTC /etc/localtime && echo UTC > /etc/timezone 0.6s
=> [ 3/28] WORKDIR /usr/src/app 0.3s
=> [ 4/28] ADD . . 8.8s
=> [ 5/28] RUN if [ -z "$(ls plugins/stockpile)" ]; then echo "stockpile plugin not downloaded - please ensure you recur 0.3s
=> [ 6/28] RUN apt-get update && apt-get -y install python3 python3-pip python3-venv git curl golang-go 40.7s
=> [ 7/28] RUN if [ "true" = "true" ] ; then apt-get -y install mingw-w64; fi 23.8s
=> [ 8/28] RUN python3 -m venv /opt/venv/caldera 4.1s
=> [ 9/28] RUN pip3 install --no-cache-dir -r requirements.txt 26.8s
=> [10/28] RUN python3 -c "import app; import app.utility.config_generator; app.utility.config_generator.ensure_local_co 0.4s
=> [11/28] WORKDIR /usr/src/app/plugins/sandcat/gocat 0.0s
=> [12/28] RUN go mod tidy && go mod download 3.7s
=> [13/28] WORKDIR /usr/src/app/plugins/sandcat 0.1s
=> [14/28] RUN if [ "true" = "true" ] ; then cp ./update-agents.sh ./update-agents-copy.sh; fi 0.3s
=> [15/28] RUN if [ "true" = "true" ] ; then tr -d '\15\32' < ./update-agents-copy.sh > ./update-agents.sh; fi 0.2s
=> [16/28] RUN if [ "true" = "true" ] ; then rm ./update-agents-copy.sh; fi 0.2s
=> [17/28] RUN ./update-agents.sh 49.7s
=> [18/28] RUN mkdir /tmp/gocatextensionstest 0.3s
=> [19/28] RUN cp -R ./gocat /tmp/gocatextensionstest/gocat 0.3s
=> [20/28] RUN cp -R ./gocat-extensions/* /tmp/gocatextensionstest/gocat/ 0.3s
=> [21/28] RUN cp ./update-agents.sh /tmp/gocatextensionstest/update-agents.sh 0.3s
=> [22/28] WORKDIR /tmp/gocatextensionstest 0.0s
=> [23/28] RUN mkdir /tmp/gocatextensionstest/payloads 0.3s
=> [24/28] RUN ./update-agents.sh 0.6s
=> ERROR [25/28] RUN if [ ! -d "/usr/src/app/plugins/atomic/data/atomic-red-team" ]; then git clone --depth 1 http 0.2s

[25/28] RUN if [ ! -d "/usr/src/app/plugins/atomic/data/atomic-red-team" ]; then git clone --depth 1 https://github.com/redcanaryco/atomic-red-team.git /usr/src/app/plugins/atomic/data/atomic-red-team; fi:
0.164 Cloning into '/usr/src/app/plugins/atomic/data/atomic-red-team'...


Dockerfile:64

63 | # Clone atomic red team repo for the atomic plugin
64 | >>> RUN if [ ! -d "/usr/src/app/plugins/atomic/data/atomic-red-team" ]; then
65 | >>> git clone --depth 1 https://github.com/redcanaryco/atomic-red-team.git
66 | >>> /usr/src/app/plugins/atomic/data/atomic-red-team;
67 | >>> fi

68


ERROR: failed to solve: process "/bin/bash -c if [ ! -d "/usr/src/app/plugins/atomic/data/atomic-red-team" ]; then git clone --depth 1

https://github.com/redcanaryco/atomic-red-team.git

/usr/src/app/plugins/atomic/data/atomic-red-team; fi" did not complete successfully: exit code: 137

Expected behavior
A clear and concise description of what you expected to happen.

Desktop (please complete the following information):

  • OS: Redhat running Docker
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/

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

2 participants