Skip to content

Commit

Permalink
Better default for DOCKER_USER
Browse files Browse the repository at this point in the history
This default value will make docker build image to work without worrying about user permissions.
  • Loading branch information
humitos committed Apr 2, 2019
1 parent 2e29b61 commit e3df091
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions readthedocs/settings/dev.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ def DATABASES(self): # noqa
# Disable auto syncing elasticsearch documents in development
ELASTICSEARCH_DSL_AUTOSYNC = False

# UID and GID used to create the Docker container. It defaults to the
# current UID and GID that it's running the Django app.
DOCKER_USER = f'{os.geteuid()}:{os.getegid()}'

@property
def LOGGING(self): # noqa - avoid pep8 N802
logging = super().LOGGING
Expand Down

0 comments on commit e3df091

Please sign in to comment.