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

Commit

Permalink
Update gradle mounted volume path to match dockerfile
Browse files Browse the repository at this point in the history
The community gradle dockerfile expects a volume at

/home/gradle/.gradle

If this volume is not included explicitly, the devfile can fail to start
on kubernetes clusters, since docker will by default attempt to
provision host storage for VOLUMEs. Many Kubernetes clusters forbid
this for security reasons.

Signed-off-by: Angel Misevski <amisevsk@redhat.com>
  • Loading branch information
amisevsk committed Jun 20, 2019
1 parent 5a64991 commit e8b925a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions devfiles/java-gradle/devfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ components:
args: ['infinity']
env:
- name: GRADLE_USER_HOME
value: /home/user/.gradle
value: /home/gradle/.gradle
- name: JAVA_OPTS
value: "-XX:MaxRAMPercentage=50 -XX:+UseParallelGC -XX:MinHeapFreeRatio=10
-XX:MaxHeapFreeRatio=20 -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90
Expand All @@ -32,14 +32,14 @@ components:
- name: PS1
value: "$(echo ${0})\\$ "
- name: HOME
value: /home/user
value: /home/gradle
memoryLimit: 512Mi
endpoints:
- name: '8080/tcp'
port: 8080
volumes:
- name: gradle
containerPath: /home/user/.gradle
containerPath: /home/gradle/.gradle
mountSources: true
commands:
-
Expand Down

0 comments on commit e8b925a

Please sign in to comment.