Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F7123095
D817.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
661 B
Subscribers
None
D817.diff
View Options
diff --git a/dockerfiles/swh-storage/entrypoint.sh b/dockerfiles/swh-storage/entrypoint.sh
--- a/dockerfiles/swh-storage/entrypoint.sh
+++ b/dockerfiles/swh-storage/entrypoint.sh
@@ -25,11 +25,11 @@
"shell")
exec bash -i
;;
- "init")
- echo Setup the database
- swh-db-init storage --db-name ${POSTGRES_DB} --no-create True
- ;;
*)
- echo Starting the swh-storage API server
+ echo Setup the database
+ PGPASSWORD=${POSTGRES_PASSWORD} swh-db-init storage \
+ --db-name ${POSTGRES_DB}
+ echo Starting the swh-storage API server
exec python -m swh.storage.api.server /storage.yml
+ ;;
esac
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Dec 17, 9:12 PM (1 w, 1 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3221031
Attached To
D817: storage/entrypoint.sh: Make the storage initialization transparent
Event Timeline
Log In to Comment