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 1af09794 Prepare to work in Openshift for #885
1af09794 is described below
commit 1af0979417df011e41a1eff6515a0b181042718d
Author: Marat Gubaidullin <[email protected]>
AuthorDate: Sat Sep 16 12:26:17 2023 -0400
Prepare to work in Openshift for #885
---
karavan-web/docker/Dockerfile.devmode | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/karavan-web/docker/Dockerfile.devmode
b/karavan-web/docker/Dockerfile.devmode
index 7ff85f48..d6c290ee 100644
--- a/karavan-web/docker/Dockerfile.devmode
+++ b/karavan-web/docker/Dockerfile.devmode
@@ -26,6 +26,13 @@ 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 \