mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-12-23 01:39:27 +02:00
graphite: populate STATIC_ROOT
This commit is contained in:
parent
b4e041f447
commit
4ee9817bf5
@ -34,7 +34,8 @@ RUN set -xe \
|
||||
&& echo "SECRET_KEY = '$(head -c 16 /dev/urandom | base64)'" > graphite/local_settings.py \
|
||||
&& curl -sSL https://github.com/graphite-project/graphite-web/raw/master/webapp/manage.py > manage.py \
|
||||
&& chmod +x manage.py \
|
||||
&& ./manage.py migrate --run-syncdb --noinput \
|
||||
&& ./manage.py collectstatic --noinput --settings=graphite.settings \
|
||||
&& ./manage.py migrate --noinput --run-syncdb \
|
||||
&& apk del build-base \
|
||||
curl \
|
||||
git \
|
||||
|
@ -35,9 +35,10 @@ $ mkdir -p data/storage/log/webapp
|
||||
$ docker-compose up -d
|
||||
$ docker-compose exec graphite sh
|
||||
>>> vi conf/storage-schemas.conf
|
||||
>>> python webapp/manage.py migrate --run-syncdb --noinput
|
||||
>>> python webapp/manage.py migrate --noinput --run-syncdb
|
||||
>>> python webapp/manage.py createsuperuser
|
||||
>>> python webapp/manage.py changepassword
|
||||
>>> supervisorctl restart
|
||||
>>> supervisorctl status
|
||||
carbon-aggregator RUNNING pid 9, uptime 0:00:13
|
||||
carbon-cache RUNNING pid 8, uptime 0:00:22
|
||||
|
0
graphite/data/storage/log/webapp/.gitkeep
Normal file
0
graphite/data/storage/log/webapp/.gitkeep
Normal file
Loading…
Reference in New Issue
Block a user