Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9342994
entrypoint.sh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
entrypoint.sh
View Options
#!/bin/bash
set
-ex
source
/srv/softwareheritage/utils/pyutils.sh
setup_pip
source
/srv/softwareheritage/utils/pgsql.sh
setup_pgsql
if
[
"
$1
"
=
'shell'
]
;
then
shift
if
((
$#
==
0
))
;
then
exec
bash
-i
else
"
$@
"
fi
else
if
[
!
-z
"
$MEMCACHED
"
]
;
then
echo
"Starting memcached"
memcached
&
fi
wait_pgsql
echo
"Migrating db"
django-admin
migrate
--settings
=
${
DJANGO_SETTINGS_MODULE
}
swh-deposit
admin
user
exists
test
||
\
swh-deposit
admin
user
create
\
--username
test
\
--password
test
\
--provider-url
https://softwareheritage.org
\
--domain
softwareheritage.org
echo
"starting swh-deposit server"
exec
gunicorn
--bind
0
.0.0.0:5006
\
--reload
\
--threads
2
\
--workers
2
\
--log-level
DEBUG
\
--timeout
3600
\
--config
'python:swh.core.api.gunicorn_config'
\
'django.core.wsgi:get_wsgi_application()'
fi
File Metadata
Details
Attached
Mime Type
text/x-shellscript
Expires
Fri, Jul 4, 1:10 PM (1 w, 23 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3239398
Attached To
rDENV Development environment
Event Timeline
Log In to Comment