Public Repository

Last pushed: 6 months ago
Short Description
This image contains the Pebble SDK/emulator and various scripts to run in headless environments.
Full Description

Docker Image for Pebble Development

This image contains the Pebble SDK/emulator and various scripts to run in headless environments.

Source is available at https://gitlab.128.io/adduc/docker-image-debian-pebble

See adduc/pebble-first-watchface for an example of how to use this docker image for CI.

Building an App/Watchface:

docker run -v $(pwd):/pebble -it adduc/debian-pebble:latest pebble build

Taking a screenshot (in a headless environment):

docker run -it -e PEBBLE_QEMU_PATH=qemu-pebble-headless -v $(pwd):/pebble adduc/debian-pebble:latest pebble screenshot --emulator basalt

Running an emulator:

Due to restrictions in recent versions of Xorg, we need to use xauth to trust
remote X connections from Docker containers.

XAUTH=/tmp/.docker.xauth
xauth nlist $DISPLAY | sed -e 's/^..../ffff/' | xauth -f $XAUTH nmerge -

docker run -it \
    -v /tmp/.X11-unix:/tmp/.X11-unix \
    -v $XAUTH:$XAUTH -e XAUTHORITY=$XAUTH \
    -e DISPLAY=unix$(echo $DISPLAY) \
    -v $(pwd):/pebble \
    -w /pebble adduc/debian-pebble:latest \
    bash -c "pebble install --emulator basalt"
Docker Pull Command
Owner
adduc

Comments (0)