-
Notifications
You must be signed in to change notification settings - Fork 408
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RFC: Use container's WorkingDir instead of $KO_DATA_PATH #55
Comments
I am forced to keep my image's kodata |
Not a perfect solution, but we've just been symlinking from |
I could use this trick for my case too and avoid duplicating files . Thanks for sharing. |
Other problem with |
This issue is stale because it has been open for 90 days with no |
/remove-lifecycle stale |
Note the original intent was to enable idiomatic loading of kodata similar to golang's testdata ie. os.Open("kodata/some-file") |
I just added KO support to one of my apps and the only annoying part was that I had to change source code to support static assets in a way that was compatible with KO_DATA_PATH. It seems wrong that it requires that string in my source code. I would much prefer that the contents the kodata directory be in the CWD so that I can reference assets with ./assets from my app and not use the environment variable. Note that there seems to be no other way to do this because you cannot inject a script that does something like |
@dprotaso had an idea that we could use WorkingDir to expose kodata to the built container instead of reading from
KO_DATA_PATH
. This would be breaking, but it would be nice to have fewer ko-isms.The text was updated successfully, but these errors were encountered: