Skip to content

Commit

Permalink
🐛 Set the maven local repository path. (#385)
Browse files Browse the repository at this point in the history
Following the _AnyUser_ change, the local m2 repository path needs to be
set to /cache/m2 so the java provider will not use it's default path of
/root/.m2.

---------

Signed-off-by: Jeff Ortel <jortel@redhat.com>
Signed-off-by: Cherry Picker <noreply@github.com>
  • Loading branch information
jortel authored and web-flow committed Oct 28, 2024
1 parent d5ddc2c commit 10fd023
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions roles/tackle/templates/customresource-addon-analyzer.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ spec:
env:
- name: PORT
value: ${seq:8000}
- name: MAVEN_OPTS
value: -Dmaven.repo.local={{ cache_mount_path }}/m2
resources:
limits:
cpu: {{ provider_java_container_limits_cpu }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ spec:
env:
- name: PORT
value: ${seq:8000}
- name: MAVEN_OPTS
value: -Dmaven.repo.local={{ cache_mount_path }}/m2
resources:
limits:
cpu: {{ provider_java_container_limits_cpu }}
Expand Down

0 comments on commit 10fd023

Please sign in to comment.