Comments (8)
The skaffold folks are doing some interesting work that we might be able to steal:
https://github.com/GoogleContainerTools/container-debug-support
GoogleContainerTools/skaffold#2306
from ko.
cc @Harwayne @ilackarms
xref: knative/eventing#1733
I think the short version is that you need a base image that contains ls
and use the --disable-optimizations
flag. We should definitely make this easier and document it, though.
from ko.
Can we enable remote debugging just packaging dlv and running the application with dlv? In a similar fashion to this: https://mikemadisonweb.github.io/2018/06/14/go-remote-debug/
from ko.
I think it's a good idea -- I prototyped something like this that would rewrite the base image and entrypoint to automagically drop you into a delve debugging session, but ultimately my lack of k8s/delve knowledge made me give up. It only worked ~30% of the time and leaked a bunch of connections/resources that were tough to clean up.
Getting the user experience correct here is tough, I think. We could make things incrementally better pretty easily, e.g. some way to just include delve in the produced binary is a good start.
from ko.
This issue is stale because it has been open for 90 days with no
activity. It will automatically close after 30 more days of
inactivity. Reopen the issue with /reopen
. Mark the issue as
fresh by adding the comment /remove-lifecycle stale
.
from ko.
/remove-lifecycle stale
from ko.
This issue is stale because it has been open for 90 days with no
activity. It will automatically close after 30 more days of
inactivity. Reopen the issue with /reopen
. Mark the issue as
fresh by adding the comment /remove-lifecycle stale
.
from ko.
/remove-lifecycle stale
from ko.
Related Issues (20)
- Provide write permissions to container FS to golang app running in a distroless container HOT 3
- Push an image with specific version number instead of latest? HOT 2
- feat: custom URL for fetching latest ko binary HOT 2
- option to set image annotations HOT 1
- binary name for v2+ modules HOT 1
- Documentation mistake HOT 3
- Install instructions on website are broken HOT 1
- Non docker desktop support HOT 1
- Skip go build if no files have changed since a previous build HOT 2
- Define enviroment variables for built image HOT 1
- Building KO containers for linux/riscv64 does not work HOT 1
- Unable to run git commands inside container image HOT 7
- What controls the container images CREATED TIME of ko build? HOT 1
- any webui? HOT 2
- Entrypoint, Cmd configuration overrides HOT 1
- OrbStack support on MacOS HOT 2
- intermittent cache? failures running ko apply HOT 10
- x509 cert works locally, but not in ko container HOT 1
- ko doesn't work with toolchain directive in go.mod HOT 6
- [Fly.io] Image does not need to be public HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ko.