Skip to content

Commit

Permalink
run template scenario merge-anchor
Browse files Browse the repository at this point in the history
  • Loading branch information
plyr4 committed Nov 8, 2024
1 parent 23205cd commit 3fe3d3b
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
12 changes: 12 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"configurations": [
{
"name": "Connect to server",
"type": "go",
"request": "attach",
"mode": "remote",
"port": 4000,
"host": "127.0.0.1",
}
]
}
9 changes: 8 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ FROM alpine:3.20.3@sha256:beefdbd8a1da6d2915566fde36db9db0b524eb737fc57cd1367eff

RUN apk add --update --no-cache ca-certificates

FROM scratch
# FROM scratch
FROM golang

COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt

Expand All @@ -15,3 +16,9 @@ ENV GODEBUG=netdns=go
ADD release/vela-server /bin/

CMD ["/bin/vela-server"]

# dlv wrapper

# EXPOSE 4000
# RUN CGO_ENABLED=0 go install -ldflags "-s -w -extldflags '-static'" github.com/go-delve/delve/cmd/dlv@latest
# CMD [ "/go/bin/dlv", "--listen=:4000", "--headless=true", "--log=true", "--accept-multiclient", "--api-version=2", "exec", "/bin/vela-server" ]

0 comments on commit 3fe3d3b

Please sign in to comment.