Skip to content

Commit

Permalink
Dont usermod for demo images as they dont mount pootle as volume
Browse files Browse the repository at this point in the history
  • Loading branch information
phlax committed Apr 13, 2018
1 parent 939620a commit a965298
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ services:

demo:
environment:
- LOCAL_USER_ID=${LOCAL_USER_ID:-''}
- LOCAL_USER_ID=${LOCAL_USER_ID:-}
build:
context: ./docker/demo-postgres
image: translate/pootle:demo
Expand Down
6 changes: 5 additions & 1 deletion docker/bin/run
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ set -e
CMD="${@:2}";
IMAGE=$1
RUNNER=/home/pootle/pootle_env/src/pootle/docker/bin/run_in_container
export LOCAL_USER_ID=${LOCAL_USER_ID:-$UID}

if [ $IMAGE != 'demo' ]; then
export LOCAL_USER_ID=${LOCAL_USER_ID:-$UID}
echo "Setting container user to $LOCAL_USER_ID"
fi

function pull_images () {
docker-compose pull --include-deps --parallel $IMAGE
Expand Down

0 comments on commit a965298

Please sign in to comment.