Skip to content

Commit

Permalink
Merge pull request #31 from pcnfernando/master
Browse files Browse the repository at this point in the history
Provide permission to lib directory to siddhi_user
  • Loading branch information
mohanvive authored Dec 12, 2019
2 parents 9047547 + 936524e commit 25a003c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions docker-files/siddhi-runner/alpine/siddhi-runner/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ ARG SIDDHI_RUNNER_BASE_IMAGE=siddhiio/siddhi-runner-base-alpine:latest
FROM ${SIDDHI_RUNNER_BASE_IMAGE}
MAINTAINER Siddhi IO Docker Maintainers "[email protected]"

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

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

USER ${USER_ID}

Expand Down

0 comments on commit 25a003c

Please sign in to comment.