Skip to content

Commit

Permalink
fix(dashmate): invalid mount path from helper (#2296)
Browse files Browse the repository at this point in the history
  • Loading branch information
shumkov authored Oct 31, 2024
1 parent d1ba61d commit 65e72dd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/dashmate/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,14 @@ services:
environment:
- LOCAL_UID=${LOCAL_UID:?err}
- LOCAL_GID=${LOCAL_GID:?err}
- DASHMATE_HOME_DIR=${DASHMATE_HOME_DIR:?err}
ports:
- 127.0.0.1:${DASHMATE_HELPER_API_PORT:?err}:${DASHMATE_HELPER_API_PORT:?err}
command: yarn workspace dashmate helper ${CONFIG_NAME:?err}
expose:
- ${DASHMATE_HELPER_API_PORT:?err}
volumes:
- ${DASHMATE_HOME_DIR:?err}:/home/dashmate/.dashmate
- ${DASHMATE_HOME_DIR:?err}:${DASHMATE_HOME_DIR:?err}
- /var/run/docker.sock:/var/run/docker.sock

core:
Expand Down
2 changes: 1 addition & 1 deletion packages/dashmate/docker/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ fi

echo "Starting with UID: $USER_ID, GID: $GROUP_ID, USER: $USERNAME, GROUP: $GROUP"

exec su - $USERNAME -c "cd /platform;DASHMATE_HELPER=1 DASHMATE_HOME_DIR=/home/dashmate/.dashmate $*"
exec su $USERNAME -c "cd /platform;DASHMATE_HELPER=1 DASHMATE_HOME_DIR=$DASHMATE_HOME_DIR $*"

0 comments on commit 65e72dd

Please sign in to comment.