Use make sandbox-* targets in sandbox doc

Signed-off-by: Émile Ré <emile@getprobo.com>
This commit is contained in:
Émile Ré
2026-04-28 19:24:24 +04:00
parent 072e9bc4f9
commit d31bd6ec76

View File

@@ -12,27 +12,27 @@ Use a sandbox when you need to:
```bash ```bash
# Create a sandbox (first time only) # Create a sandbox (first time only)
./contrib/lima/sandbox.sh create make sandbox-create
# Start an existing sandbox # Start an existing sandbox
./contrib/lima/sandbox.sh start make sandbox-start
# Get the VM IP and service URLs # Get the VM IP and service URLs
./contrib/lima/sandbox.sh status make sandbox-status
# Interactive shell # Interactive shell
./contrib/lima/sandbox.sh ssh make sandbox-ssh
# Stop (shutdown — preserves disk and Docker images, but running processes are lost) # Stop (shutdown — preserves disk and Docker images, but running processes are lost)
./contrib/lima/sandbox.sh stop make sandbox-stop
# Delete entirely # Delete entirely
./contrib/lima/sandbox.sh delete make sandbox-delete
``` ```
## Accessing services ## Accessing services
After `sandbox.sh status`, use the VM IP to access services from the host: After `make sandbox-status`, use the VM IP to access services from the host:
| Service | URL | | Service | URL |
| ---------- | --------------------------- | | ---------- | --------------------------- |
@@ -64,7 +64,7 @@ AUTH_OIDC_CLIENT_ID=my-client-id
AUTH_OIDC_CLIENT_SECRET=s3cret AUTH_OIDC_CLIENT_SECRET=s3cret
``` ```
This file is sourced during provisioning before `probod-bootstrap` runs. Any variable set here overrides the defaults. The sandbox must be recreated (`delete` + `create`) for changes to take effect. This file is sourced during provisioning before `probod-bootstrap` runs. Any variable set here overrides the defaults. The sandbox must be recreated (`sandbox-delete` + `sandbox-create`) for changes to take effect.
## Systemd services ## Systemd services
@@ -90,11 +90,6 @@ Manage them with `systemctl`:
## Common workflows ## Common workflows
**Start the app:**
```bash
./contrib/lima/sandbox.sh exec -- sudo systemctl start probod probo-console probo-trust
```
**Run tests:** **Run tests:**
```bash ```bash
./contrib/lima/sandbox.sh exec -- make test ./contrib/lima/sandbox.sh exec -- make test