Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9347102
entrypoint.sh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
618 B
Subscribers
None
entrypoint.sh
View Options
#!/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
Details
Attached
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
Attached To
rDENV Development environment
Event Timeline
Log In to Comment