-
Notifications
You must be signed in to change notification settings - Fork 31
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
Galleon 6.0.0+ not running in docker image - Failed to resolve Maven universe org.jboss.universe:community-universe #349
Comments
@rombow , thank-you. What is the value in the docker image of the user.home? That is an important system property for Java application, I am surprised that it is not set correctly? |
Idk how i can print galleon parameters, but reponse of
I noticed that the
My docker image is a custom layered, java and maven are not installed. We just copied the correct version to HOME/java directory and set the MAVEN_CONFIG, JAVA_HOME, MAVEN_VERSION, MAVEN_HOME and PATH env variables manually. We try our docker to stay in absolut control what is where installed |
@rombow I suspect you have no |
@jmesnil We have a non-root user created with linux commands on both debian and alpine versions too (similar syntax) RUN set -x; \
addgroup --gid $USER_GID $SYSTEM_USER_GROUP && \
adduser --system --disabled-password --uid ${USER_UID} --disabled-login --gecos ${SYSTEM_USER} --gid ${USER_GID} ${SYSTEM_USER_GROUP} |
@rombow Do you have an instruction |
Of course, the layer (where the snippet comes from) defines the user and configures it. In the lower part of the layers, they switch between user and root, and back. I am also wonder why user.home is not set, maybe it's a docker bug or something linux that I don't know about Either way, this Galleon problem is basically about java.home, if it's not set it could be solved somehow, maybe we could try to get a user from ENV or some other way |
Reproducing:
galleon/bin/galleon.sh install wildfly:current#32.0.1.Final
Error:
`Error: org.jboss.galleon.universe.maven.MavenUniverseException: Failed to resolve Maven universe org.jboss.universe:community-universe
Problem is in code:
galleon/cli-commands/src/main/java/org/jboss/galleon/cli/config/mvn/MavenConfig.java
Line 184 in 19e5b61
this uses
PropertyUtils.getSystemProperty("user.home")
which is not set correctly in the docker imageI think a better solution would be to use the $HOME environment or similar, or maybe try to set "user.home" in the
galleon.sh
script.Current workaround is set manually:
JAVA_OPTS=-Duser.home=$HOME galleon/bin/galleon.sh install wildfly:current#32.0.1.Final
The text was updated successfully, but these errors were encountered: