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 can't execute commands #3

Open
DanijelMi opened this issue Oct 13, 2021 · 1 comment
Open

Docker image can't execute commands #3

DanijelMi opened this issue Oct 13, 2021 · 1 comment
Assignees

Comments

@DanijelMi
Copy link

reconmapd is trying to call /bin/bash when invoking the interactive terminal, however the current Docker image build doesn't have bash installed.

@santiagolizardo santiagolizardo self-assigned this Oct 20, 2021
@smatz-ITGAIN
Copy link

smatz-ITGAIN commented Oct 28, 2021

I have the same issue. My temporary solution is to clone the agent Repo and modify the Dockerfile as follows:

FROM golang:1.17-bullseye

WORKDIR /build

COPY go.mod go.sum ./
COPY cmd/ ./cmd/
COPY internal/ ./internal/

ENV CGO_ENABLED=0
RUN go build -o /build/reconmapd ./cmd/reconmapd

WORKDIR /app

RUN cp /build/reconmapd /app/reconmapd

EXPOSE 2020

CMD ["/app/reconmapd"]

As you can see I removed the multi stage build and changed the base image. This results in a much bigger image but it works for now.

Edit: You can build the modified image by running

make docker-build

@santiagolizardo santiagolizardo transferred this issue from another repository Sep 18, 2022
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

No branches or pull requests

3 participants