Skip to content

Commit

Permalink
fix(api): force setting metrics directory permissions, fixes #333
Browse files Browse the repository at this point in the history
  • Loading branch information
peterthomassen committed Apr 23, 2020
1 parent ff03c66 commit 7272bed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions api/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
echo "waiting for dependencies ..."
./wait

# set permissions for Django metrics (docker-compose.yml setting does not work, see #333)
chmod 1777 /var/local/django_metrics

# start cron
# Start child process that starts grand-child process.
# After the child process's death, the grand-child will be adopted by init.
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ services:
- celery
- memcached
tmpfs:
- /var/local/django_metrics:size=500m,mode=1777
- /var/local/django_metrics:size=500m
environment:
- DESECSTACK_DOMAIN
- DESECSTACK_NS
Expand Down

0 comments on commit 7272bed

Please sign in to comment.