Update section to be more specific

This commit is contained in:
Dmitrii Dolgov 2018-02-01 17:59:05 +01:00
parent 53014ca28b
commit 4e629ef7ca
1 changed files with 4 additions and 2 deletions

View File

@ -325,13 +325,15 @@ RUN apk --no-cache add go git musl-dev
RUN go get github.com/derekparker/delve/cmd/dlv 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" -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"] CMD ["/root/go/bin/dlv", "--listen=:DLV_PORT", "--headless=true", "--api-version=2", "exec", "/postgres-operator"]