Stack definition for the snowball api service.
nabarun
22f4ab36de
Part of [Service provider auctions for web deployments](https://www.notion.so/Service-provider-auctions-for-web-deployments-104a6b22d47280dbad51d28aa3a91d75) - Update repository to `cerc-io/snowballtools-base` in `stack.yml` - Update command to build backend package Co-authored-by: Adw8 <adwaitgharpure@gmail.com> Reviewed-on: #2 Co-authored-by: nabarun <nabarun@noreply.git.vdb.to> Co-committed-by: nabarun <nabarun@noreply.git.vdb.to> |
||
---|---|---|
stack-orchestrator | ||
README.md |
snowballtools-base-api-stack
Stack definition for the snowball api service.
Running this stack locally
(Assumes stack-orchestrator and docker are already installed)
Fetch the stack repo
$ laconic-so fetch-stack git.vdb.to/cerc-io/snowballtools-base-api-stack --pull
Clone project repositories
$ laconic-so --stack ~/cerc/snowballtools-base-api-stack/stack-orchestrator/stacks/snowballtools-base-backend setup-repositories --git-ssh --pull
Build service container
(Might take 10 minutes)
$ laconic-so --stack ~/cerc/snowballtools-base-api-stack/stack-orchestrator/stacks/snowballtools-base-backend build-containers
Create a deployment
A deployment is a collection of all the stuff needed to run a single instance of a stack, in this case the snowball api service.
Initialize:
$ laconic-so --stack ~/cerc/snowballtools-base-api-stack/stack-orchestrator/stacks/snowballtools-base-backend deploy init --output local-deployment-spec.yml --config SNOWBALL_BACKEND_CONFIG_FILE_PATH=/config/local.toml
Then create:
$ laconic-so --stack ~/cerc/snowballtools-base-api-stack/stack-orchestrator/stacks/snowballtools-base-backend deploy create --deployment-dir local-deployment --spec-file local-deployment-spec.yml
Next create a file at local-deployment/data/config/local.toml
with this content:
<redacted>
Finally start the service:
$ laconic-so deployment --dir local-deployment start
To check logs:
$ laconic-so deployment --dir local-deployment logs
To stop the service:
$ laconic-so deployment --dir local-deployment stop