Suborbital
Search…
2. Run Compute locally
To run Compute locally, you'll use the Subo CLI and Docker Compose, both of which must be installed before continuing.

Prepare your local environment

The Subo CLI will create some files on disk to set up your local deployment, so get started by creating a suborbital directory somewhere on your filesystem:
1
mkdir suborbital
2
cd suborbital
Copied!

Start Compute

Next, use Subo to start your local Compute Core instance:
1
subo compute deploy core --local
Copied!
You may be asked to enter your Environment Token, and then Subo will use docker-compose to launch your Compute Core instance automatically. Compute runs in the background by default. You can use docker-compose logs -f to view the logs of the running containers. Run docker-compose down to terminate the containers.

REPL

When you first launch Compute, you will be prompted to start a REPL:
1
✅ DONE: ready to start installation
2
⏩ START: installing...
3
▶️ docker-compose up -d
4
Container suborbital-scc-control-plane-1 Recreate
5
Container suborbital-scc-control-plane-1 Recreated
6
Container suborbital-scc-atmo-1 Recreate
7
Container suborbital-scc-atmo-1 Recreated
8
Container suborbital-scc-control-plane-1 Starting
9
Container suborbital-scc-builder-1 Starting
10
Container suborbital-scc-control-plane-1 Started
11
Container suborbital-scc-builder-1 Started
12
Container suborbital-scc-atmo-1 Starting
13
Container suborbital-scc-atmo-1 Started
14
ℹ️ use `docker ps` and `docker-compose logs` to check deployment status
15
16
PROXY: local tunnel to function editor started
17
18
19
Press enter to launch the local Compute REPL...
20
21
22
1. Create or edit a function
23
24
Choose an option: 1
25
26
To create or edit a function, enter its name (or FQFN): new-fn
Copied!
This will allow you create functions and use the Compute editor locally while you work on integrating your application. Follow the instructions in the REPL to create your first function.
Last modified 2mo ago