Browse Source

fix(api): force setting metrics directory permissions, fixes #333

https://github.com/opencontainers/runc/issues/1647 looks related.
Peter Thomassen 5 years ago
parent
commit
7272bedb5a
2 changed files with 4 additions and 1 deletions
  1. 3 0
      api/entrypoint.sh
  2. 1 1
      docker-compose.yml

+ 3 - 0
api/entrypoint.sh

@@ -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.

+ 1 - 1
docker-compose.yml

@@ -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