Skip to content

Commit

Permalink
add update env SAKULI_UI_DOCKER_USER_ID to startup script #308, Con…
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobias Schneck committed Mar 5, 2018
1 parent d49a2d1 commit 1f6b92f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docker/Dockerfile.sakuli.ui
Expand Up @@ -43,6 +43,6 @@ RUN $INST_SCRIPTS/set_user_permission.sh $STARTUPDIR $HOME

## Connection port for Web Application:
EXPOSE $HTTP_PORT
USER $SAKULI_UI_USER_ID
USER $SAKULI_UI_DOCKER_USER_ID

ENTRYPOINT ["/dockerstartup/startup.sh"]
1 change: 1 addition & 0 deletions docker/sakuli-ui/src/common/scripts/startup.sh
Expand Up @@ -2,6 +2,7 @@
# have to be added to hold all env vars correctly

main() {
export SAKULI_UI_DOCKER_USER_ID=$(id -u)
# If arg 1 is not for sakuli ui jar, execute as it is.
if [[ "$1" == /* ]] || [[ "$1" == -* ]]; then
$STARTUPDIR/sakuli_startup.sh "$@"
Expand Down

0 comments on commit 1f6b92f

Please sign in to comment.