Skip to content

Commit 25a003c

Browse files
authored
Merge pull request #31 from pcnfernando/master
Provide permission to lib directory to siddhi_user
2 parents 9047547 + 936524e commit 25a003c

File tree

1 file changed

+5
-2
lines changed
  • docker-files/siddhi-runner/alpine/siddhi-runner

1 file changed

+5
-2
lines changed

docker-files/siddhi-runner/alpine/siddhi-runner/Dockerfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ ARG SIDDHI_RUNNER_BASE_IMAGE=siddhiio/siddhi-runner-base-alpine:latest
2121
FROM ${SIDDHI_RUNNER_BASE_IMAGE}
2222
MAINTAINER Siddhi IO Docker Maintainers "siddhi-dev@googlegroups.com"
2323

24-
ARG USER_ID=802
24+
ARG USER=siddhi_user
25+
ARG USER_GROUP=siddhi_io
26+
ARG USER_GROUP_ID=802
2527
ARG HOST_BUNDLES_DIR=./files/bundles
2628
ARG HOST_JARS_DIR=./files/jars
2729
ARG JARS=${RUNTIME_SERVER_HOME}/jars
@@ -37,7 +39,8 @@ COPY --chown=siddhi_user:siddhi_io ${HOST_JARS_DIR}/ ${JARS}
3739
# expose ports
3840
EXPOSE 9090 9443 9712 9612 7711 7611 7070 7443
3941

40-
RUN apk add --no-cache bash && bash ${RUNTIME_SERVER_HOME}/bin/install-jars.sh && apk del bash
42+
RUN apk add --no-cache bash && bash ${RUNTIME_SERVER_HOME}/bin/install-jars.sh \
43+
&& apk del bash && chown ${USER}:${USER_GROUP} -R ${RUNTIME_SERVER_HOME}/lib
4144

4245
USER ${USER_ID}
4346

0 commit comments

Comments
 (0)