Skip to content

FZJ-INM1-BDA/siibra-compose

Repository files navigation

siibra-compose

Similar to docker-compose, siibra-compose is designed to be a one stop shop for spinning up a working environment of siibra-toolsuite.

One command to:

Requirements

Python venv and ...

service name commit'ish local directory empty + common
siibra-config git git
siibra-python git git python3.7+
siibra-api git git python3.7+,(docker if redis is enabled)
siibra-explorer git, node14+ node14+ docker

Installation

$ pip install git@https://github.com/FZJ-INM1-BDA/siibra-compose.git

Example Usages

Hello World

Example below shows a minimal working example. It will use the latest released siibra-configurations, siibra-python, siibra-api and siibra-explorer.

# create a new venv, activate it
$ python -m venv venv/ && . venv/bin/activate && pip install -U pip
$ echo '{"version": "0.0.1"}' > siibra-compose.json
$ siibra-compose

Complex Usecase

Example below shows a more complex usecase. It uses siibra-configuration from a local directory /path/to/my/siibra-config, siibra-python from the remote branch branch-to-checkout, siibra-api from the tag tag-to-checkout and latest production version of siibra-explorer.

Additionally, siibra-api is configured to run on port 7095, with the redis caching turned off, and siibra-explorer is configured to run on port 10001.

Lastly, it also shows the JSONSchema file in the repository ./siibra-compose-schema.json, which hopefully would help one write configuration JSON much easily.

$ python -m venv venv/ && . venv/bin/activate && pip install -U pip
$ echo '{
    "$schema": "./siibra-compose-schema.json",
    "version": "0.0.1",
    "config": {
        "ref": "/path/to/my/siibra-config"
    },
    "python": {
        "ref": "branch-to-checkout"
    },
    "api": {
        "ref": "tag-to-checkout",
        "port": 7095,
        "redis": {
            "disabled": true
        }
    },
    "explorer": {
        "port": 10001
    }
}' > complex-siibra-compose.json
$ siibra-compose -f complex-siibra-compose.json

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages