hack.foo
Guides

boat.dev

Not run yet. This page follows the provider's documentation as read on 2026-11-18 (tools, setup). The install step is the one in Any Linux machine with Docker.

boat.dev sandboxes are Ubuntu 24.04 x86_64 VMs with passwordless sudo, systemd, and Docker with Compose installed. Environment secrets arrive as ordinary environment variables.

Set up

  • Saved snapshot: install hack with the release installer (curl -fsSL https://github.com/hack-dance/hack/releases/latest/download/hack-install.sh | HACK_INSTALL_NONINTERACTIVE=1 bash), then run hack config set --global proxy.bind_address 127.0.0.1 and hack global install --no-interactive once, so the proxy images, and a proxy bound to loopback, are in the snapshot.
  • Environment secret: HACK_ENV_SECRET_KEY.
  • Repository setup script: in the dashboard, Environment, under GitHub repositories select Setup below the repository, then save the environment. It runs inside the repository folder, in a login shell, on every create, resume and fork:
# Docker can become ready a few seconds after the sandbox; wait for it.
for i in $(seq 1 60); do docker info >/dev/null 2>&1 && break; sleep 1; done
export PATH="$HOME/.hack/bin:$PATH"
hack config set --global proxy.bind_address 127.0.0.1
hack global install --no-interactive
hack up --detach --no-interactive --json

Check it

From your machine, boat exec <sandbox> --cwd <repo> '<command>' runs a command in the sandbox (the default timeout is 30 seconds):

curl --noproxy hello.hack.local --resolve hello.hack.local:443:127.0.0.1 -k https://hello.hack.local/

A VM with systemd-resolved may also resolve Hack's names after hack global install (that step asks for sudo). The first run should record whether it does.

Expected differences

  • boat host <port> gives a public HTTPS address with its own host name, which Hack's proxy has no route for yet.

Source: v5 (next.34) · docs/site/guides/cloud-boat.md.

On this page