Page Menu
Home
GRNET
Search
Configure Global Search
Log In
Files
F1439005
entrypoint.sh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Wed, Jan 21, 12:16 AM
Size
1 KB
Mime Type
text/x-shellscript
Expires
Fri, Jan 23, 12:16 AM (14 h, 36 m)
Engine
blob
Format
Raw Data
Handle
327559
Attached To
rGMGRDCKR ganetimgr-docker
entrypoint.sh
View Options
#!/bin/bash
# Create a dummy file, until this is no longer needed
touch templates/includes/analytics.html
/srv/ganetimgr/manage.py loaddata /dumpdata.json
# Django init commands
python manage.py syncdb --noinput -v0 --migrate
python manage.py collectstatic --noinput -v0 -l
if
[
-n
"
$GANETIMGR_ADMIN_PASS
"
]
;
then
echo
"from django.contrib.auth.models import User; User.objects.create_superuser('admin', 'admin@example.com', '
$GANETIMGR_ADMIN_PASS
')"
|
python manage.py shell
echo
"from django.contrib.auth.models import User; User.objects.create_user('user', 'user@example.com', '
$GANETIMGR_ADMIN_PASS
')"
|
python manage.py shell
fi
# Start background services
sed -i
's/#START=yes/START=yes/'
/etc/default/beanstalkd
/etc/init.d/beanstalkd start
/etc/init.d/redis-server start
/etc/init.d/nginx start
mkdir /srv/logs
touch /srv/logs/gunicorn.log /srv/logs/access.log
tail -f /srv/logs/*.log
&
echo
"Starting Gunicorn."
gunicorn ganetimgr.wsgi:application --name ganetimgr --bind 0.0.0.0:8000 --workers
=
1
--log-level
=
info --log-file
=
/srv/logs/gunicorn.log --access-logfile
=
/srv/logs/access.log
"
$@
"
Event Timeline
Log In to Comment