add delve as debugger and expose it
Some checks failed
Deploy / CreateImage (push) Successful in 2m8s
Deploy / DeployService (push) Failing after 1m9s

This commit is contained in:
skeris 2024-12-09 01:38:38 +03:00
parent 08e65722ce
commit 98b9fe6555
2 changed files with 3 additions and 1 deletions

@ -4,7 +4,7 @@ COPY . .
ENV GOPRIVATE=gitea.pena/PenaSide/linters-golang
ENV GOINSECURE=gitea.pena/PenaSide/linters-golang
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
COPY --from=builder /app/heruvym .

@ -4,10 +4,12 @@ services:
image: gitea.pena:3000/penaside/heruvym/staging:$GITHUB_RUN_NUMBER
ports:
- 10.7.0.6:1487:3000
- 10.7.0.6:2345:2345
labels:
com.pena.upload: true
com.pena.allowed_headers: content-type,authorization,response-type
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:
HTTP_PORT: 3000
HTTP_HOST: 0.0.0.0