Page MenuHomeSoftware Heritage

entrypoint.sh
No OneTemporary

entrypoint.sh

#!/bin/bash
set -e
source /srv/softwareheritage/utils/pyutils.sh
setup_pip
source /srv/softwareheritage/utils/pgsql.sh
setup_pgsql
case "$1" in
"shell")
exec bash -i
;;
*)
wait_pgsql template1
echo Database setup
if ! check_pgsql_db_created; then
echo Creating database and extensions...
swh db create --db-name ${POSTGRES_DB} storage
fi
echo Initializing the database...
swh db init --db-name ${POSTGRES_DB} --flavor mirror storage
echo Starting the swh-storage Kafka storage replayer
exec swh storage replay
;;
esac

File Metadata

Mime Type
text/x-shellscript
Expires
Fri, Jul 4, 4:57 PM (3 w, 1 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3239425

Event Timeline