README.md

plan1-pebble-docker-kit #

Standalone Pebble SDK dev container. Not coupled to plan1 — exists so the Python-version pinning and toolchain fetching for Pebble app dev never has to touch the Arch host.

Setup #

docker compose build
docker compose run --rm pebble

First run inside the container, install the SDK + toolchain (fetched from Rebble, cached in the pebble-sdk-cache/pebble-tool-cache volumes so it survives container rebuilds):

pebble sdk install latest

Usage #

./workspace on the host maps to /workspace in the container — put Pebble app projects there.

docker compose run --rm pebble
cd /workspace
pebble new-project my-watchface
cd my-watchface
pebble build
pebble install --emulator basalt   # or: emery, for Time 2

Real device (Bluetooth serial, no phone app) #

Pebble's USB port is charge/debug-only — there's no USB app install. The closest thing to "just plug it in" is pairing the watch directly to this host's Bluetooth, bypassing the phone companion app's Developer Connection entirely.

On the host (not in the container — this machine's Bluetooth stack):

bluetoothctl
scan on                       # find the watch, note its MAC
pair AA:BB:CC:DD:EE:FF
trust AA:BB:CC:DD:EE:FF
exit
sudo rfcomm bind hci0 AA:BB:CC:DD:EE:FF   # creates /dev/rfcomm0

Then, in the container, with the device override layered in:

docker compose -f docker-compose.yml -f docker-compose.device.yml run --rm pebble
cd /examples/jo-reality
pebble build
pebble install --serial /dev/rfcomm0
pebble logs --serial /dev/rfcomm0

docker-compose.device.yml only maps /dev/rfcomm0 in — it's a separate file, not merged into the base docker-compose.yml, because Compose fails outright if a mapped device doesn't exist yet, and /dev/rfcomm0 doesn't exist until you've bound it above. Emulator-only work never needs it.

The phone-based path (pebble install --phone <ip>, via the companion app's Developer Connection) still works and needs no device passthrough — use whichever's actually working on a given day.

Notes #

  • Base image is python:3.13-slim-bookworm — pinned below the 3.14 ceiling pebble-tool (v5.0.18) doesn't support yet. Bump only after checking upstream support.
  • arm-none-eabi toolchain and QEMU are NOT baked into the image; pebble sdk install fetches them on first use and they persist in the named volumes.
  • No plan1 mounts or network wiring by design — this is a clean boundary, pull artifacts across manually if/when needed.