A simple LocalStorage
deployment using default settings is available under the compose.yml
file in this directory.
To run, use:
docker compose up
This launches a LocalStorage
htsget-actix server serving data from the data
directory.
The htsget-rs server can then be queried:
curl http://127.0.0.1:8080/reads/data/bam/htsnexus_test_NA12878
Which outputs:
{
"htsget": {
"format": "BAM",
"urls": [
{
"url": "http://0.0.0.0:8081/data/bam/htsnexus_test_NA12878.bam",
"headers": {
"Range": "bytes=0-2596770"
}
},
{
"url": "data:;base64,H4sIBAAAAAAA/wYAQkMCABsAAwAAAAAAAAAAAA=="
}
]
}
}
The volumes of the compose.yml
can be changed to any directory to serve data from it using
default settings, and curl http://127.0.0.1:8080/reads/data/<id>
, noting the extra data
prefix.