Page MenuHomeSoftware Heritage

D817.diff
No OneTemporary

D817.diff

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

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

Event Timeline