Skip to content

Commit

Permalink
Merge pull request #545 from KrisThielemans/docker_uidgid
Browse files Browse the repository at this point in the history
docker: fix UID/GID on Linux

fixes #464
  • Loading branch information
KrisThielemans authored May 21, 2021
2 parents a24544f + 04e3822 commit baec8f7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ services:
environment:
# mainUser: ${USER:-sirfuser}
mainUser: sirfuser
GROUP_ID: ${GROUPS:-1000}
USER_ID: ${UID:-1000}
GROUP_ID: ${GROUP_ID:-1000}
USER_ID: ${USER_ID:-1000}
build:
context: .
target: sirf
Expand Down
2 changes: 2 additions & 0 deletions docker/sirf-compose
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env bash
cd "$(dirname $0)"
export GROUP_ID=$(id -g)
export USER_ID=$(id -u)
docker-compose -f docker-compose.yml -f docker-compose.nix.yml "$@"

0 comments on commit baec8f7

Please sign in to comment.