Closed MattHodge closed 2 months ago
Hello! Thank you for the feedback. We have the official built docker image kcllang/kcl
. Have you tried it or used it as a basic mirror to construct other KCL ecosystem tools? Besides, the dockerfile is here: https://github.com/kcl-lang/cli/blob/main/Dockerfile
This is also what we are striving to do, removing the operating system compiler dependency from KCL.
Thanks for the quick reply @Peefy :)
The plan was to use KCL in a docker container used in CI, so was trying to make it reasonably small.
At least I have it working now! The static linking would allow for usage in images like scratch
to keep them as light as possible. I'll just roll with the larger images for now.
We have introduced an experimental feature gate in kcl v0.9.0-rc.1
You can quickly run your code by opening it through the env var KCL_FAST_EVAL=1
without the gcc and gcc-multilib deps. Welcome to try it out. ❤️
Feature Request
Is your feature request related to a problem? Please describe:
I had to spend a fair amount of time trying to get
kcl
installed into a docker container, even a simpleubuntu:22.04
image.The following images are all built and tested using the following commands:
docker build --platform linux/amd64 -t kcl-test:latest .
docker run kcl-test:latest
Attempt 1:
Error raised:
After a while I ended up reading the installation FAQ which told me I need
gcc
Attempt 2 - Adding gcc
Error raised:
Attempt 3- Adding gcc-multilib:
🥳 This works:
Describe the feature you'd like:
I would like if the binaries were all statically linked so I didn't need to have any dependencies installed in my operating system for
kcl
to work.