You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by nf...@apache.org on 2021/06/16 14:37:10 UTC
[camel-k] 06/06: chore(examples): fix with resource dir
This is an automated email from the ASF dual-hosted git repository.
nferraro pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-k.git
commit 8a5ef3785e2383bb81cac2afcc5b722429cac568
Author: Pasquale Congiusti <pa...@gmail.com>
AuthorDate: Wed Jun 16 12:39:46 2021 +0200
chore(examples): fix with resource dir
---
examples/http/PlatformHttpsServer.java | 4 +---
examples/modeline/modeline-resource-file-route.groovy | 2 +-
2 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/examples/http/PlatformHttpsServer.java b/examples/http/PlatformHttpsServer.java
index 01bed7b..cf07fc8 100644
--- a/examples/http/PlatformHttpsServer.java
+++ b/examples/http/PlatformHttpsServer.java
@@ -31,12 +31,10 @@
// --resource secret:my-self-signed-ssl@/etc/ssl/my-self-signed-ssl \
// -t container.port=8443 --dev
-// kamel run PlatformHttpsServer.java -p quarkus.http.ssl.certificate.file=/etc/ssl/my-self-signed-ssl/server.crt -p quarkus.http.ssl.certificate.key-file=/etc/ssl/my-self-signed-ssl/server.key --resource secret:my-self-signed-ssl@/etc/ssl/my-self-signed-ssl -t container.port=8443 --dev
-
// Test
//
// recover the service location. If you're running on minikube, minikube service platform-https-server --url=true
-// curl -H "name:World" -k http://<service-location>/hello
+// curl -H "name:World" -k https://<service-location>/hello
//
import org.apache.camel.builder.RouteBuilder;
diff --git a/examples/modeline/modeline-resource-file-route.groovy b/examples/modeline/modeline-resource-file-route.groovy
index e02777a..7bdcaf6 100644
--- a/examples/modeline/modeline-resource-file-route.groovy
+++ b/examples/modeline/modeline-resource-file-route.groovy
@@ -23,5 +23,5 @@
// camel-k: resource=file:resources-data.txt
-from('file:/etc/camel/data/resources/?fileName=resources-data.txt&noop=true&idempotent=false')
+from('file:/etc/camel/resources/?fileName=resources-data.txt&noop=true&idempotent=false')
.log('resource file content is: ${body}')