Changeset View
Changeset View
Standalone View
Standalone View
README.md
Show All 9 Lines | |||||
## Dependencies | ## Dependencies | ||||
This uses docker with docker-compose, so ensure you have a working | This uses docker with docker-compose, so ensure you have a working | ||||
docker environment and docker-compose is installed. | docker environment and docker-compose is installed. | ||||
## How to use | ## How to use | ||||
Initialise the database with: | |||||
``` | |||||
docker-compose run swh-storage init | |||||
``` | |||||
then start the services with: | |||||
``` | ``` | ||||
docker-compose up | docker-compose up | ||||
``` | ``` | ||||
This will build docker images and run them. | This will build docker images and run them. | ||||
Press Ctrl-C when you want to stop it. | Press Ctrl-C when you want to stop it. | ||||
Note: the db initialization process is a manual step for now because it | |||||
is not yet "idempotent", but (hopefully) this will be fixed any time soon. | |||||
To run them in a detached (background) mode: | To run them in a detached (background) mode: | ||||
``` | ``` | ||||
docker-compose up -d | docker-compose up -d | ||||
``` | ``` | ||||
To run only the objstorage API: | To run only the objstorage API: | ||||
▲ Show 20 Lines • Show All 193 Lines • Show Last 20 Lines |