Page Menu
Home
GRNET
Search
Configure Global Search
Log In
Files
F1614726
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
Sat, Mar 21, 3:14 AM
Size
1 KB
Mime Type
text/x-shellscript
Expires
Mon, Mar 23, 3:14 AM (7 h, 46 m)
Engine
blob
Format
Raw Data
Handle
354167
Attached To
rGMGRDCKR ganetimgr-docker
entrypoint.sh
View Options
#!/bin/bash
GANETIMGR_REPO
=
${
GANETIMGR_REPO
-https://github.com/grnet/ganetimgr.git
}
GANETIMGR_CHECKOUT
=
${
GANETIMGR_CHECKOUT
-master
}
cd
/srv/ganetimgr
git init > /dev/null
git remote add origin
"
$GANETIMGR_REPO
"
git pull origin master
# Django init commands
python manage.py syncdb --noinput -v0 --migrate
python manage.py collectstatic --noinput -v0 -l
python manage.py loaddata cluster_insert.json
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
mkdir /var/log/ganetimgr/
python watcher.py --foreground --log-file
=
-
&
#/etc/init.d/redis-server start
/etc/init.d/nginx start > /dev/null
#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 "$@"
gunicorn ganetimgr.wsgi:application --name ganetimgr --bind 0.0.0.0:8000 --workers
=
1
--log-level
=
info --log-file
=
- --access-logfile
=
-
"
$@
"
Event Timeline
Log In to Comment