Skip to content
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

'?' folder is created when building console-java-simple project using java-maven Che 7 stack #13451

Closed
ibuziuk opened this issue May 30, 2019 · 5 comments

Comments

@ibuziuk
Copy link
Member

ibuziuk commented May 30, 2019

Description

When console-java-simple is built in non-Ephemeral namespace against java-maven Che 7 stack '?' folder with m2 folder is created:

image

Reproduction Steps

Create Non-Ephemeral Che 7 java-maven workspace with console-java-simple and build it with mvn.

ERROR: '?' folder with .m2 folder

OS and version:
7 beta 5

@amisevsk
Copy link
Contributor

The issue here is that OpenShift runs containers with a (mostly) random UID. Since this UID is not defined at container creation time, it does not have an entry in /etc/passwd and so any program that depends on getting a username will have some sort of issue.

In the case of maven, the issue is that it cannot figure out where to put the ${HOME}/.m2 directory.

@ibuziuk
Copy link
Member Author

ibuziuk commented Jun 4, 2019

We need a PR for che.openshift.io and than can close this issue

@l0rd l0rd mentioned this issue Jun 4, 2019
@ibuziuk
Copy link
Member Author

ibuziuk commented Jun 6, 2019

rh-che PR redhat-developer/rh-che#1448

@ibuziuk
Copy link
Member Author

ibuziuk commented Jun 6, 2019

Closing as done

@ibuziuk ibuziuk closed this as completed Jun 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants