-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Pre-create common tooling config directories for installed tools in UDI image #22029
Comments
@amisevsk to be more precise this is about pre-creating local dependencies folders rather than config folders right? I am asking because it kind of match for maven but I am not sure that it does for every language. And that's about dependency management tools rather than "any" tool. We have hundreds tools in UDI and we may want to restrict this only to dm tools, specifically:
|
Added to #20799 |
I left it vague semi-intentionally -- we should have pre-created paths to any location a user might want to auto-mount a config (e.g. Looking at sbt, global config goes in |
Issues go stale after Mark the issue as fresh with If this issue is safe to close now please do so. Moderators: Add |
/remove-lifecycle stale |
Bumped the priority on this one to match the priority of duplicate issue #22620 |
Fix eclipse-che/che#22029 Signed-off-by: Andrew Obuchowicz <[email protected]>
Fix eclipse-che/che#22029 Signed-off-by: Andrew Obuchowicz <[email protected]>
Fix eclipse-che/che#22029 Pre-creates the following config directories: - ~/.m2 (Maven) - ~/.gradle (Gradle) - ~/.config/pip (Pip) - ~/.sbt/1.0 (SBT) - ~/.cargo (Rust) - ~/certs (SSL) - ~/.composer (PHP) - ~/.nuget (.NET) Signed-off-by: Andrew Obuchowicz <[email protected]>
Fix eclipse-che/che#22029 Pre-creates the following config directories: - ~/.m2 (Maven) - ~/.gradle (Gradle) - ~/.config/pip (Pip) - ~/.sbt/1.0 (SBT) - ~/.cargo (Rust) - ~/certs (SSL) - ~/.composer (PHP) - ~/.nuget (.NET) Signed-off-by: Andrew Obuchowicz <[email protected]>
Fix eclipse-che/che#22029 Pre-creates the following config directories: - ~/.m2 (Maven) - ~/.gradle (Gradle) - ~/.config/pip (Pip) - ~/.sbt/1.0 (SBT) - ~/.cargo (Rust) - ~/certs (SSL) - ~/.composer (PHP) - ~/.nuget (.NET) Signed-off-by: Andrew Obuchowicz <[email protected]>
Is your enhancement related to a problem? Please describe
Che includes functionality for mounting files into DevWorkspaces for common configuration tasks, e.g. sharing a common maven
settings.xml
across different Java-based workspaces (automounting configmaps/secrets). However, since the UDI image does not come with a/home/user/.m2
folder pre-created, users can run into confusion:/home/user/.m2
(as it does in our samples), everything works as expectedm2
volume, Kubernetes/OpenShift will create the directory in order to store thesettings.xml
file when the pod is startedIn the latter case, the directory will be created with 755 permissions and root ownership, meaning the workspace will not be able to write to the directory. In the case of maven workspaces on OpenShift, this causes builds to fail as
/.m2/repository
cannot be created.Describe the solution you'd like
The UDI image should come with empty directories and appropriate permissions for common folders that are required by tools (e.g.
.m2
,.gradle
, etc.)Describe alternatives you've considered
Document issue as a potential caveat with auto-mounted volumes
Additional context
This behaviour underlies https://issues.redhat.com/browse/CRW-4082
The text was updated successfully, but these errors were encountered: