provenance/Dockerfile: Evolve to compile the rust provenance crate
1 unresolved thread
1 unresolved thread
awscli [1] is the tool to retrieve the necessary files (provenance, graph) for the deployment to be self-contained. The rest is the rust compilation steps to have the binaries to run the provenance index and grpc services [2] [3]
In details, this adapts the current provenance deployment:
- Dockerfile got adapted to be able to install the swh-provenance crate (adding the rust tool)
- Adapt the entrypoint to be able to run either the rpc or the grpc server [2] [3]
- Adapt the entrypoint to add the option to run the database build index (required for the grpc to run). [2] [3]
- Adapt the utils image to add the awscli image (to be able to fetch the necessary files from s3) [1]
[1] https://docs.softwareheritage.org/devel/swh-provenance/grpc-api.html#getting-a-provenance-database
[3] https://crates.io/crates/swh-provenance
[2]
root@d79ab1e18df7:/opt/swh# swh-provenance-
swh-provenance-gen-test-database swh-provenance-grpc-serve swh-provenance-index
root@d79ab1e18df7:/opt/swh# swh-provenance-index --help
Builds .ef indexes for extra quick querying of the Software Heritage Provenance Index
Usage: swh-provenance-index [OPTIONS] --database <DATABASE>
Options:
--database <DATABASE> Path to the provenance database
--indexes <INDEXES> Path to the directory where to write paths to. Defaults to `--database` (when it is a file:// URL)
--statsd-host <STATSD_HOST> Defaults to `localhost:8125` (or whatever is configured by the `STATSD_HOST` and `STATSD_PORT` environment variables)
-h, --help Print help
root@d79ab1e18df7:/opt/swh# swh-provenance-grpc-serve --help
gRPC server for the Software Heritage Provenance Index
Usage: swh-provenance-grpc-serve [OPTIONS] --graph <GRAPH> --database <DATABASE>
Options:
--cache-parquet Keep Parquet metadata in RAM between queries, instead of re-parsing them every time
--graph-format <GRAPH_FORMAT> [default: webgraph] [possible values: webgraph, json]
--graph <GRAPH> Path to the graph prefix
--database <DATABASE> Path to the provenance database
--indexes <INDEXES> Path to Elias-Fano indexes, default to `--database` (when it is a file:// URL)
--bind <BIND> [default: [::]:50141]
--statsd-host <STATSD_HOST> Defaults to `localhost:8125` (or whatever is configured by the `STATSD_HOST` and `STATSD_PORT` environment variables)
-h, --help Print help
Edited by Antoine R. Dumont
Merge request reports
Activity
Filter activity
mentioned in issue sysadm-environment#5608 (closed)
added 44 commits
-
df1ef792...a7183341 - 42 commits from branch
master
- b8db7631 - provenance/requirements: Add awscli
- c03f9c6d - provenance/Dockerfile: Evolve to compile the rust provenance crate
-
df1ef792...a7183341 - 42 commits from branch
added 1 commit
- df790620 - provenance/entrypoint.sh: Adapt to run the provenance grpc
added 1 commit
- 9d71df1e - provenance/entrypoint.sh: Adapt to run either a grpc or rpc
Please register or sign in to reply