Sign inSign up

samply/prism

Sponsored OSS

By samply

Updated about 1 month ago

Image
0

7.7K

samply/prism repository overview

Prism

Prism is a Samply component ran centrally, which queries sites for criteria and number of results for these criteria in their Samply.Blaze stores. Prism is to be used by Samply.Lens for showing expected number of results next to criteria in the search tree.

Installation

Standalone Installation

To run a standalone Prism, you need at least one running Samply.Beam.Proxy. You can compile and run this application via Cargo.:

cargo run -- --beam-proxy-url http://localhost:8082 --beam-app-id-long app2.proxy2.broker --api-key App1Secret --wait-count 5 --bind-addr 127.0.0.1:8066 --sites proxy1 --cors-origin any --project bbmri --target app1

Configuration

The following environment variables are mandatory for the usage of Prism.

--beam-proxy-url <BEAM_PROXY_URL>
    The beam proxy's base URL, e.g. https://proxy1.broker.samply.de [env: BEAM_PROXY_URL=]
--beam-app-id-long <BEAM_APP_ID_LONG>
    This application's beam AppId, e.g. prism.proxy1.broker.samply.de [env: BEAM_APP_ID_LONG=]
--api-key <API_KEY>
    This application's beam API key [env: API_KEY=]
--sites <SITES>
    Sites to initially query, separated by ';' [env: SITES=]
--cors-origin <CORS_ORIGIN>
    Credentials to use on the Beam Proxy [env: CORS_ORIGIN=]
--project <PROJECT>
    Project name [env: PROJECT=]
Optional variables
--wait-count <WAIT_COUNT>
    Wait for results count [env: WAIT_COUNT=] [default: 32]
--target <TARGET>
    Target_application_name [env: TARGET=] [default: focus]
--bind-addr <BIND_ADDR>
    The socket address this server will bind to [env: BIND_ADDR=] [default: 0.0.0.0:8080]

Usage

Creating a sample prism query asking for criteria:

curl -v -X POST -H "Content-Type: application/json" --data '{"sites": ["proxy1"]}'  http://localhost:8066/criteria

License

This code is licensed under the Apache License 2.0. For details, please see LICENSE

Tag summary

Content type

Image

Digest

sha256:7c5fa465b

Size

11.7 MB

Last updated

about 1 year ago

docker pull samply/prism

This week's pulls

Pulls:

52

Sep 7 to Sep 13