mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-09-30 10:42:14 +02:00
Add debug mode
You can specify an environment variable DEBUG 1/0 to enable/disable debug mode. Debug mode assumes delve dependency for remote debugging, and debugging symbols for go build.
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
FROM alpine
|
||||
MAINTAINER Team ACID @ Zalando <team-acid@zalando.de>
|
||||
|
||||
# We need root certificates to deal with teams api over https
|
||||
RUN apk --no-cache add ca-certificates go git musl-dev
|
||||
RUN go get github.com/derekparker/delve/cmd/dlv
|
||||
|
||||
COPY build/* /
|
||||
|
||||
CMD ["/root/go/bin/dlv", "--listen=:777", "--headless=true", "--api-version=2", "exec", "/postgres-operator"]
|
||||
Reference in New Issue
Block a user