add delve as debugger and expose it
This commit is contained in:
parent
08e65722ce
commit
5e9e77fc16
@ -4,7 +4,7 @@ COPY . .
|
|||||||
ENV GOPRIVATE=gitea.pena/PenaSide/linters-golang
|
ENV GOPRIVATE=gitea.pena/PenaSide/linters-golang
|
||||||
ENV GOINSECURE=gitea.pena/PenaSide/linters-golang
|
ENV GOINSECURE=gitea.pena/PenaSide/linters-golang
|
||||||
RUN go mod download
|
RUN go mod download
|
||||||
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o heruvym cmd/main.go
|
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -gcflags "all=-N -l" -o heruvym cmd/main.go
|
||||||
|
|
||||||
FROM gitea.pena/penadevops/container-images/alpine:main
|
FROM gitea.pena/penadevops/container-images/alpine:main
|
||||||
COPY --from=builder /app/heruvym .
|
COPY --from=builder /app/heruvym .
|
||||||
|
@ -4,10 +4,12 @@ services:
|
|||||||
image: gitea.pena:3000/penaside/heruvym/staging:$GITHUB_RUN_NUMBER
|
image: gitea.pena:3000/penaside/heruvym/staging:$GITHUB_RUN_NUMBER
|
||||||
ports:
|
ports:
|
||||||
- 10.7.0.6:1487:3000
|
- 10.7.0.6:1487:3000
|
||||||
|
- 10.7.0.6:2345:2345
|
||||||
labels:
|
labels:
|
||||||
com.pena.upload: true
|
com.pena.upload: true
|
||||||
com.pena.allowed_headers: content-type,authorization,response-type
|
com.pena.allowed_headers: content-type,authorization,response-type
|
||||||
tty: true
|
tty: true
|
||||||
|
command: dlv --listen=:2345 --headless=true --log=true --log-output=debugger,debuglineerr,gdbwire,lldbout,rpc --accept-multiclient --api-version=2 exec ./heruvym
|
||||||
environment:
|
environment:
|
||||||
HTTP_PORT: 3000
|
HTTP_PORT: 3000
|
||||||
HTTP_HOST: 0.0.0.0
|
HTTP_HOST: 0.0.0.0
|
||||||
|
Loading…
Reference in New Issue
Block a user