Thomas E Lackey
937b983ec9
All checks were successful
Lint Checks / Run linter (push) Successful in 56s
Publish / Build and publish (push) Successful in 1m24s
Deploy Test / Run deploy test suite (push) Successful in 5m24s
Webapp Test / Run webapp test suite (push) Successful in 4m57s
Smoke Test / Run basic test suite (push) Successful in 4m48s
Update links and references to github.com to git.vdb.to. Also enable the flake8 lint action in gitea. Reviewed-on: #732 Co-authored-by: Thomas E Lackey <telackey@bozemanpass.com> Co-committed-by: Thomas E Lackey <telackey@bozemanpass.com>
2.2 KiB
2.2 KiB
Adding a new stack
See this PR for an example of how to currently add a minimal stack to stack orchestrator. The reth stack is another good example.
For external developers, we recommend forking this repo and adding your stack directly to your fork. This initially requires running in "developer mode" as described here. Check out the Namada stack from Knowable to see how that is done.
Core to the feature completeness of stack orchestrator is to decouple the tool functionality from payload which will no longer require forking to add a stack.
Example
- in
stack_orchestrator/data/stacks/my-new-stack/stack.yml
add:
version: "0.1"
name: my-new-stack
repos:
- github.com/my-org/my-new-stack
containers:
- cerc/my-new-stack
pods:
- my-new-stack
- in
stack_orchestrator/data/container-build/cerc-my-new-stack/build.sh
add:
#!/usr/bin/env bash
# Build the my-new-stack image
source ${CERC_CONTAINER_BASE_DIR}/build-base.sh
docker build -t cerc/my-new-stack:local -f ${CERC_REPO_BASE_DIR}/my-new-stack/Dockerfile ${build_command_args} ${CERC_REPO_BASE_DIR}/my-new-stack
- in
stack_orchestrator/data/compose/docker-compose-my-new-stack.yml
add:
version: "3.2"
services:
my-new-stack:
image: cerc/my-new-stack:local
restart: always
ports:
- "0.0.0.0:3000:3000"
- in
stack_orchestrator/data/repository-list.txt
add:
github.com/my-org/my-new-stack
whereby that repository contains your source code and a Dockerfile
, and matches the repos:
field in the stack.yml
.
- in
stack_orchestrator/data/container-image-list.txt
add:
cerc/my-new-stack
- in
stack_orchestrator/data/pod-list.txt
add:
my-new-stack
Now, the following commands will fetch, build, and deploy you app:
laconic-so --stack my-new-stack setup-repositories
laconic-so --stack my-new-stack build-containers
laconic-so --stack my-new-stack deploy-system up