This is an automated email from the ASF dual-hosted git repository.
zehnder pushed a commit to branch SP-454
in repository https://gitbox.apache.org/repos/asf/streampipes.git
The following commit(s) were added to refs/heads/SP-454 by this push:
new f1a7fa025 [#454] Change ownership of java file
f1a7fa025 is described below
commit f1a7fa0257647800d74f5a3d301a9ca48055aeaa
Author: Philipp Zehnder <[email protected]>
AuthorDate: Fri Feb 3 09:34:11 2023 +0100
[#454] Change ownership of java file
---
streampipes-extensions/streampipes-extensions-all-jvm/Dockerfile | 3 ++-
streampipes-service-core/Dockerfile | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/streampipes-extensions/streampipes-extensions-all-jvm/Dockerfile
b/streampipes-extensions/streampipes-extensions-all-jvm/Dockerfile
index 3c9287b67..afc2e518f 100644
--- a/streampipes-extensions/streampipes-extensions-all-jvm/Dockerfile
+++ b/streampipes-extensions/streampipes-extensions-all-jvm/Dockerfile
@@ -25,7 +25,8 @@ RUN apt-get update && apt-get install ttf-dejavu-core &&
apt-get install fontcon
COPY target/streampipes-extensions-all-jvm.jar
/streampipes-extensions-all-jvm.jar
RUN groupadd --gid $USER_GID $USERNAME \
- && useradd --uid $USER_UID --gid $USER_GID -m $USERNAME
+ && useradd --uid $USER_UID --gid $USER_GID -m $USERNAME \
+ && chown $USERNAME:$USERNAME /streampipes-extensions-all-jvm.jar
USER $USERNAME
diff --git a/streampipes-service-core/Dockerfile
b/streampipes-service-core/Dockerfile
index f6358a884..b9976ee11 100644
--- a/streampipes-service-core/Dockerfile
+++ b/streampipes-service-core/Dockerfile
@@ -22,7 +22,8 @@ ARG USER_GID=$USER_UID
COPY target/streampipes-backend.jar /streampipes-backend.jar
RUN groupadd --gid $USER_GID $USERNAME \
- && useradd --uid $USER_UID --gid $USER_GID -m $USERNAME
+ && useradd --uid $USER_UID --gid $USER_GID -m $USERNAME \
+ && chown $USERNAME:$USERNAME /streampipes-backend.jar
USER $USERNAME