You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ma...@apache.org on 2023/07/04 14:50:32 UTC
[camel-karavan] branch main updated: Set cache for jbang maven #757
This is an automated email from the ASF dual-hosted git repository.
marat pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-karavan.git
The following commit(s) were added to refs/heads/main by this push:
new d78c9cbd Set cache for jbang maven #757
d78c9cbd is described below
commit d78c9cbd9d4fe203f72b04a803cc691f79c3dfa3
Author: Marat Gubaidullin <ma...@gmail.com>
AuthorDate: Tue Jul 4 10:50:25 2023 -0400
Set cache for jbang maven #757
---
.../main/java/org/apache/camel/karavan/service/KubernetesService.java | 1 +
karavan-runner/Dockerfile | 3 +++
2 files changed, 4 insertions(+)
diff --git a/karavan-app/src/main/java/org/apache/camel/karavan/service/KubernetesService.java b/karavan-app/src/main/java/org/apache/camel/karavan/service/KubernetesService.java
index de3dd739..14bbcc4d 100644
--- a/karavan-app/src/main/java/org/apache/camel/karavan/service/KubernetesService.java
+++ b/karavan-app/src/main/java/org/apache/camel/karavan/service/KubernetesService.java
@@ -450,6 +450,7 @@ public class KubernetesService implements HealthCheck{
.withResources(resources)
.withImagePullPolicy("Always")
.withVolumeMounts(
+ new VolumeMountBuilder().withName(name).withMountPath("/karavan/.jbang/cache").build(),
new VolumeMountBuilder().withName("maven-settings").withSubPath("maven-settings.xml")
.withMountPath("/karavan-config-map/maven-settings.xml").build())
.build();
diff --git a/karavan-runner/Dockerfile b/karavan-runner/Dockerfile
index 559372da..c492b6d8 100644
--- a/karavan-runner/Dockerfile
+++ b/karavan-runner/Dockerfile
@@ -1,6 +1,9 @@
FROM jbangdev/jbang-action:0.106.1
ENV CAMEL_VERSION=3.21.0
+ENV KARAVAN="/karavan"
+ENV JBANG_REPO="$KARAVAN/.jbang/cache/.m2"
+ENV JBANG_DIR="$KARAVAN/.jbang"
ENV MAVEN_SETTINGS="/karavan-config-map/maven-settings.xml"
ENV KAMELETS_DIR="/scripts/kamelets"
ENV CODE_DIR="/scripts/code"