Skip to content
This repository has been archived by the owner on Aug 16, 2024. It is now read-only.

Commit

Permalink
Specify home path in java-maven devfile
Browse files Browse the repository at this point in the history
Since OpenShift starts containers with a random UID (which has no
username associated with it), maven running on OpenShift cannot figure
out where to place the .m2 repository. This commit explicitly sets the
-Duser.home parameter to /home/user to match the mounted .m2 volume.

Signed-off-by: Angel Misevski <amisevsk@redhat.com>
  • Loading branch information
amisevsk authored and monaka committed Jun 1, 2019
1 parent 377b77c commit 3970fdf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion devfiles/java-maven/devfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ components:
- name: MAVEN_OPTS
value: "-XX:MaxRAMPercentage=50 -XX:+UseParallelGC -XX:MinHeapFreeRatio=10
-XX:MaxHeapFreeRatio=20 -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90
-Dsun.zip.disableMemoryMapping=true -Xms20m -Djava.security.egd=file:/dev/./urandom"
-Dsun.zip.disableMemoryMapping=true -Xms20m -Djava.security.egd=file:/dev/./urandom
-Duser.home=/home/user"
- name: JAVA_OPTS
value: "-XX:MaxRAMPercentage=50 -XX:+UseParallelGC -XX:MinHeapFreeRatio=10
-XX:MaxHeapFreeRatio=20 -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90
Expand Down

0 comments on commit 3970fdf

Please sign in to comment.