This is an automated email from the ASF dual-hosted git repository.
fmariani pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new 0511a0b3c9ce jbang: container running with user 1000
0511a0b3c9ce is described below
commit 0511a0b3c9ce45a99c2984d1bc5a403606579e0e
Author: Marco Carletti <[email protected]>
AuthorDate: Fri Feb 6 12:22:27 2026 +0100
jbang: container running with user 1000
---
dsl/camel-jbang/camel-jbang-container/Dockerfile | 14 ++++++++++----
1 file changed, 10 insertions(+), 4 deletions(-)
diff --git a/dsl/camel-jbang/camel-jbang-container/Dockerfile
b/dsl/camel-jbang/camel-jbang-container/Dockerfile
index 92fc5d257262..49c6fbd10747 100644
--- a/dsl/camel-jbang/camel-jbang-container/Dockerfile
+++ b/dsl/camel-jbang/camel-jbang-container/Dockerfile
@@ -21,12 +21,18 @@ FROM eclipse-temurin:21-jdk
ENV JBANG_VERSION=0.136.0 \
CAMEL_VERSION=4.17.0 \
CAMEL_JBANG_COMMIT=c955dff71d90e5c5bc853edb11dd48782b588deb \
- JBANG_PATH=/usr/local/bin
+ JBANG_PATH=/opt/jbang
+
+RUN mkdir $JBANG_PATH && chown ubuntu:ubuntu $JBANG_PATH
+
+ENV PATH="$PATH:$JBANG_PATH"
+
+USER ubuntu
# Download JBang, create camel exec, set JBang version, trust camel sources
and download camel DEPS by running camel
-RUN bash -c set -o pipefail && wget -qc
https://github.com/jbangdev/jbang/releases/download/v$JBANG_VERSION/jbang.tar
-O - | tar xf - --strip-components=2 -C /usr/local/bin jbang/bin/jbang
jbang/bin/jbang.jar && \
- echo '#!/bin/sh\nexec jbang run
https://github.com/apache/camel/blob/'$CAMEL_JBANG_COMMIT'/dsl/camel-jbang/camel-jbang-main/dist/CamelJBang.java
"$@"' > /usr/local/bin/camel && \
- chmod +x /usr/local/bin/camel && \
+RUN bash -c set -o pipefail && wget -qc
https://github.com/jbangdev/jbang/releases/download/v$JBANG_VERSION/jbang.tar
-O - | tar xf - --strip-components=2 -C $JBANG_PATH jbang/bin/jbang
jbang/bin/jbang.jar && \
+ echo '#!/bin/sh\nexec jbang run
https://github.com/apache/camel/blob/'$CAMEL_JBANG_COMMIT'/dsl/camel-jbang/camel-jbang-main/dist/CamelJBang.java
"$@"' > $JBANG_PATH/camel && \
+ chmod +x $JBANG_PATH/camel && \
mkdir -p $HOME/.jbang/cache && echo -n $JBANG_VERSION >
$HOME/.jbang/cache/version.txt && \
jbang trust add https://github.com/apache/camel && \
camel version