From 4e629ef7ca408d19dc0e831a101b5f71b30a21d7 Mon Sep 17 00:00:00 2001 From: Dmitrii Dolgov Date: Thu, 1 Feb 2018 17:59:05 +0100 Subject: [PATCH] Update section to be more specific --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e9c1f4133..97c1ad9aa 100644 --- a/README.md +++ b/README.md @@ -325,13 +325,15 @@ RUN apk --no-cache add go git musl-dev RUN go get github.com/derekparker/delve/cmd/dlv ``` -* Update the `Makefile` to build the project with debugging symbols +* Update the `Makefile` to build the project with debugging symbols. For that + you need to add `gcflags` to a build target for corresponding OS (e.g. linux) ``` -gcflags "-N -l" ``` -* Run `postgres-operator` under the delve +* Run `postgres-operator` under the delve. For that you need to replace + `ENTRYPOINT` with the following `CMD`: ``` CMD ["/root/go/bin/dlv", "--listen=:DLV_PORT", "--headless=true", "--api-version=2", "exec", "/postgres-operator"]