Skip to content

storage/entrypoint.sh: Make the storage initialization transparent

The swh-storage startup does initialize the db directly.

Related T1444 Depends on swh-core!304 (closed) (for idempotency)

Test Plan

docker-compose down --volumes; docker-compose build; docker-compose up

Then load a repository directly (no need for the init step now).

python3 -m swh.loader.git.updater --origin-url https://github.com/SoftwareHeritage/swh-storage.git

For information, to develop this, i used the composability of our stuff introduced in (!6 (closed) \m/):

I added the following docker-compose.override.yml:

version: '2'

services:
  swh-storage:
      volumes:                                                                                                                                                                                         - "${SWH_ENVIRONMENT_HOME}/swh-core:/src/swh-core"

(Note: replace $SWH_ENVIRONMENT_HOME, my local env variable, with something that works for you)


Migrated from D817 (view on Phabricator)

Merge request reports