Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F7450952
entrypoint.sh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
929 B
Subscribers
None
entrypoint.sh
View Options
#!/bin/bash
set
-e
if
[[
-d
/src
]]
;
then
for
srcrepo
in
/src/swh-*
;
do
pushd
$srcrepo
pip
install
-e
.
popd
done
fi
echo
"
${
PGHOST
}
:5432:
${
POSTGRES_DB
}
:
${
PGUSER
}
:
${
POSTGRES_PASSWORD
}
"
>
~/.pgpass
cat
>
~/.pg_service.conf
<<EOF
[swh-scheduler]
dbname=${POSTGRES_DB}
host=${PGHOST}
port=5432
user=${PGUSER}
EOF
chmod
0600
~/.pgpass
case
"
$1
"
in
"shell"
)
exec
bash
-i
;;
"listener"
)
echo
Starting
the
swh-scheduler
listener
exec
python
-m
swh.scheduler.celery_backend.listener
;;
"runner"
)
echo
Starting
the
swh-scheduler
runner
exec
sh
-c
'while true; do
echo running pending tasks at `/bin/date`;
python -m swh.scheduler.celery_backend.runner;
sleep 10;
done'
# beuark
;;
*
)
echo
"Provide a command (shell|listener|runner)"
exit
1
;;
esac
File Metadata
Details
Attached
Mime Type
text/x-shellscript
Expires
Thu, Apr 17, 9:16 AM (1 d, 19 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3287726
Attached To
rDENV Development environment
Event Timeline
Log In to Comment