Skip to content

Commit 1feb26e

Browse files
committed
operator: Use absolute path in Dockerfile ENTRYPOINT
The distroless base image has no $PATH, so the relative command "redpanda-operator" cannot be resolved. Normally the Helm chart overrides the entrypoint via the pod spec command field, but when the command is cleared (e.g. for dlv debugging) the container falls back to the Dockerfile ENTRYPOINT and fails with "executable file not found in $PATH". Use the absolute path "/redpanda-operator" to match where the binary is installed (line 11).
1 parent e796c31 commit 1feb26e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

operator/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ COPY redpanda-operator-${TARGETOS}-${TARGETARCH} /redpanda-operator
1515
# that still specify old entrypoints/commands.
1616
COPY alias-${TARGETOS}-${TARGETARCH} /manager
1717

18-
ENTRYPOINT ["redpanda-operator", "run"]
18+
ENTRYPOINT ["/redpanda-operator", "run"]

0 commit comments

Comments
 (0)