2 ms·
Sure, but I'm talking about more than that. For example, my Go microservices run in containers built like this: FROM scratch COPY --from=build-container /
by simiones 6y ago
Sure, but I'm talking about more than that.
For example, my Go microservices run in containers built like this:
FROM scratch
COPY --from=build-container /go/bin/the-binary /go/bin/the-binary
So, the final container only contains my Go binary and nothing else. If I add some debug logging, I just rebuild my binary, rebuild the container, and re-deploy.
However, if I want to debug this, I need to use a different container that includes Go delve (the Go debugger) and any dependencies it relies on, possibly open some extra ports, deploy that container instead of the standard one etc.