Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9312341
entrypoint.sh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
875 B
Subscribers
None
entrypoint.sh
View Options
#!/bin/bash
set
-ex
if
[[
-d
/src
]]
;
then
pwd
for
src_repo
in
/src/swh-*
;
do
pushd
$src_repo
echo
"Installing
${
src_repo
}
"
pip
install
-e
.
popd
done
fi
echo
"
${
PGHOST
}
:5432:
${
POSTGRES_DB
}
:
${
PGUSER
}
:
${
POSTGRES_PASSWORD
}
"
>
~/.pgpass
cat
>
~/.pg_service.conf
<<EOF
[swh-deposit]
host=${PGHOST}
port=5432
dbname=${POSTGRES_DB}
user=${PGUSER}
EOF
chmod
0600
~/.pgpass
if
[
"
$1
"
=
'shell'
]
;
then
exec
bash
-i
else
echo
"Waiting for postgresql to start"
wait-for-it
swh-deposit-db:5432
-s
--timeout
=
0
echo
"Migrating db"
django-admin
migrate
--settings
=
swh.deposit.settings.production
echo
"starting swh-deposit server"
exec
gunicorn
--bind
0
.0.0.0:5006
\
--reload
\
--log-level
DEBUG
\
--timeout
3600
\
swh.deposit.wsgi
fi
File Metadata
Details
Attached
Mime Type
text/x-shellscript
Expires
Thu, Jul 3, 10:50 AM (1 w, 5 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3382061
Attached To
rDENV Development environment
Event Timeline
Log In to Comment