Quick Start
Quick Start
Section titled “Quick Start”Get a working Brane instance and run your first workflow.
Prerequisites
Section titled “Prerequisites”You need a Linux or macOS machine with:
- Docker (20.10+) with BuildKit
- 4 GB RAM minimum (8 GB recommended)
- Internet access for downloading images
Install Docker
Section titled “Install Docker”If Docker is not installed, follow the official guides:
On Linux, enable rootless Docker access:
sudo usermod -aG docker "$USER"# Log out and back in for changes to take effectVerify Docker is working:
docker run hello-worldStep 1: Install the Brane CLI
Section titled “Step 1: Install the Brane CLI”sudo wget -O /usr/local/bin/brane \ https://github.com/BraneFramework/brane/releases/latest/download/brane-linux-x86_64sudo chmod +x /usr/local/bin/branesudo wget -O /usr/local/bin/brane \ https://github.com/BraneFramework/brane/releases/latest/download/brane-darwin-x86_64sudo chmod +x /usr/local/bin/branesudo wget -O /usr/local/bin/brane \ https://github.com/BraneFramework/brane/releases/latest/download/brane-darwin-aarch64sudo chmod +x /usr/local/bin/braneVerify: brane version
Step 2: Install branectl
Section titled “Step 2: Install branectl”sudo wget -O /usr/local/bin/branectl \ https://github.com/BraneFramework/brane/releases/latest/download/branectl-linux-x86_64sudo chmod +x /usr/local/bin/branectlsudo wget -O /usr/local/bin/branectl \ https://github.com/BraneFramework/brane/releases/latest/download/branectl-darwin-x86_64sudo chmod +x /usr/local/bin/branectlsudo wget -O /usr/local/bin/branectl \ https://github.com/BraneFramework/brane/releases/latest/download/branectl-darwin-aarch64sudo chmod +x /usr/local/bin/branectlStep 3: Start a Local Instance
Section titled “Step 3: Start a Local Instance”# Download service imagesbranectl download services central -fbranectl download services auxillary -f
# Generate configurationbranectl generate infra -f -p ./config/infra.yml localhost:localhostbranectl generate proxy -f -p ./config/proxy.ymlbranectl generate node -f central localhost
# Start the central nodebranectl start centralWait until all containers show healthy status:
watch docker psStep 4: Build and Run a Package
Section titled “Step 4: Build and Run a Package”Create a new directory and add two files:
mkdir hello-world && cd hello-worldhello_world.sh:
#!/bin/bashecho 'output: "Hello from Brane!"'container.yml:
name: hello_worldversion: 1.0.0kind: ecu
files: - hello_world.sh
entrypoint: kind: task exec: hello_world.sh
actions: 'hello_world': command: input: output: - name: output type: stringBuild and verify:
brane package build ./container.ymlbrane package listPush and run:
brane login http://127.0.0.1 --username quickstartbrane package push hello_worldbrane workflow repl --remote http://127.0.0.1:50053In the REPL:
import hello_world;println(hello_world());You should see: Hello from Brane!
What’s Next?
Section titled “What’s Next?”- Core Concepts — Understand the terminology
- Architecture — See how it all fits together
- Developer Guide — Build real packages with inputs and outputs
- Admin Guide — Set up a multi-node deployment
- Scientist Guide — Write distributed workflows