You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, this question isn't specifically about uv2nix, but I keep coming up against it and would like to know if someone can help me. I want to move an environment built with uv2nix as an additional layer on top of a base docker image in one of two ways:
Build the uv env in a nix container as a first stage then copy over.
Use dockerTools to add it on top of a previously specified image.
The problem is that the base image can mess around with LD_LIBRARY_PATH, resulting in a libstdc++.so error. There are a few fixes recommended on the official wiki but the buildFHSEnv seems to only apply to standalone program runtimes and isn't apt for bundling executables within a larger runtime (i.e. python in a uv environment) wrapProgram is probably the best way, but this feels like it goes against the ethos of uv2nix which is against wrapping python with PYTHONPATH to all necessary dependencies. I was just wondering what people thought? Thanks!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, this question isn't specifically about uv2nix, but I keep coming up against it and would like to know if someone can help me. I want to move an environment built with uv2nix as an additional layer on top of a base docker image in one of two ways:
The problem is that the base image can mess around with LD_LIBRARY_PATH, resulting in a libstdc++.so error. There are a few fixes recommended on the official wiki but the
buildFHSEnvseems to only apply to standalone program runtimes and isn't apt for bundling executables within a larger runtime (i.e. python in a uv environment) wrapProgram is probably the best way, but this feels like it goes against the ethos of uv2nix which is against wrapping python with PYTHONPATH to all necessary dependencies. I was just wondering what people thought? Thanks!Beta Was this translation helpful? Give feedback.
All reactions