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 31f13576 Prepare to work in Openshift for #885
31f13576 is described below

commit 31f13576873d2dcf452028bafc09d66c772b0b89
Author: Marat Gubaidullin <ma...@talismancloud.io>
AuthorDate: Sat Sep 16 12:46:25 2023 -0400

    Prepare to work in Openshift for #885
---
 karavan-web/docker/Dockerfile.devmode | 16 +++-------------
 1 file changed, 3 insertions(+), 13 deletions(-)

diff --git a/karavan-web/docker/Dockerfile.devmode 
b/karavan-web/docker/Dockerfile.devmode
index 81ba6b77..e8b7b6f5 100644
--- a/karavan-web/docker/Dockerfile.devmode
+++ b/karavan-web/docker/Dockerfile.devmode
@@ -27,19 +27,9 @@ RUN mkdir -p $CODE_DIR \
     && mkdir -p $JBANG_REPO \
     && mkdir -p $KAMELETS_DIR
 
-ARG USERNAME=karavan
-ARG USER_UID=1001
-ARG USER_GID=$USER_UID
-
-RUN groupadd --gid $USER_GID $USERNAME \
-    && useradd --uid $USER_UID --gid $USER_GID -m $USERNAME
-
-RUN chown -R 1001:1001 /karavan \   
-    && chown -R 1001:1001 /builder \
-    && chown -R 1001:1001 /code \   
-    && chown -R 1001:1001 /scripts    
-
-USER 1001
+RUN chgrp -R 0 $BUILDER_PATH && chmod -R g+rwX $BUILDER_PATH
+RUN chgrp -R 0 $CODE_DIR && chmod -R g+rwX $CODE_DIR
+RUN chgrp -R 0 $CHECKOUT_DIR && chmod -R g+rwX $CHECKOUT_DIR
 
 RUN curl -Ls https://sh.jbang.dev | bash -s - app setup \
     && jbang trust add  --quiet  https://github.com/apache/camel \

Reply via email to