-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #31 from pcnfernando/master
Provide permission to lib directory to siddhi_user
- Loading branch information
Showing
1 changed file
with
5 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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} | ||
|
||
|