Skip to content

Fix local building of roxie container image#84

Merged
mclasmeier merged 1 commit into
mainfrom
mc/local-docker-builds
Apr 9, 2026
Merged

Fix local building of roxie container image#84
mclasmeier merged 1 commit into
mainfrom
mc/local-docker-builds

Conversation

@mclasmeier

Copy link
Copy Markdown
Collaborator

Without this fix, locally invoking make docker-build fails due to

[...]
[1/2] STEP 11/15: RUN echo "Building for ${TARGETOS}/${TARGETARCH}" &&     CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build     -ldflags "-w -s -X main.version=${VERSION} -X main.gitCommit=${GIT_COMMIT} -X main.buildDate=${BUILD_DATE}"     -o roxie     ./cmd
Building for linux/arm64
github.com/stackrox/roxie/cmd: go build github.com/stackrox/roxie/cmd: copying /tmp/go-build3080175455/b001/exe/a.out: open roxie: permission denied
Error: building at STEP "RUN echo "Building for ${TARGETOS}/${TARGETARCH}" &&     CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build     -ldflags "-w -s -X main.version=${VERSION} -X main.gitCommit=${GIT_COMMIT} -X main.buildDate=${BUILD_DATE}"     -o roxie     ./cmd": while running runtime: exit status 1

make: *** [Makefile:190: docker-build] Error 1

Without this fix, locally invoking `make docker-build` fails due to

```
[...]
[1/2] STEP 11/15: RUN echo "Building for ${TARGETOS}/${TARGETARCH}" &&     CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build     -ldflags "-w -s -X main.version=${VERSION} -X main.gitCommit=${GIT_COMMIT} -X main.buildDate=${BUILD_DATE}"     -o roxie     ./cmd
Building for linux/arm64
github.com/stackrox/roxie/cmd: go build github.com/stackrox/roxie/cmd: copying /tmp/go-build3080175455/b001/exe/a.out: open roxie: permission denied
Error: building at STEP "RUN echo "Building for ${TARGETOS}/${TARGETARCH}" &&     CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build     -ldflags "-w -s -X main.version=${VERSION} -X main.gitCommit=${GIT_COMMIT} -X main.buildDate=${BUILD_DATE}"     -o roxie     ./cmd": while running runtime: exit status 1

make: *** [Makefile:190: docker-build] Error 1
```
@mclasmeier mclasmeier requested a review from AlexVulaj April 9, 2026 13:32
@mclasmeier mclasmeier merged commit 15f9602 into main Apr 9, 2026
3 checks passed
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

Successfully merging this pull request may close these issues.

2 participants