-
Notifications
You must be signed in to change notification settings - Fork 0
Home
A combination of pebble-dev, Docker, and Windows Docker notes.
Based on 64-bit https://github.com/bboehmke/docker-pebble-dev - https://hub.docker.com/r/bboehmke/pebble-dev
For 32-bit see https://gist.github.com/clach04/445b38080b672aa61572e84525805c37 (note gist is a shell script known to work with Ubuntu 16.04 LTS, it is not a Docker script but can be used for Docker, Vagrant, VM, real-iron).
docker build -t clach04/docker-pebble-dev .
NOTE if apt-get complains about items being is not valid yet
until the future, some clock drift has occurred between Docker and the host. Restart Docker (or entire machine), under Windows use the GUI for Linux issue:
docker-machine restart default
If get errors ValueError: ZIP does not support timestamps before 1980
or error: ushort format requires 0 <= number <= USHRT_MAX
this is likely a filesystem hosting issue. See https://github.com/bboehmke/docker-pebble-dev/issues/6
Permission denied probably means something wrong with -v
flag, see https://github.com/Spitemare/rebble-docker/issues/5
https://sourceforge.net/projects/vcxsrv/ works well under Windows.
If you have your machine firewall disabling auth on X server in Windows makes life very easy (in vcxsrv, "Disable access control").
DISPLAY can be set to host.docker.internal
(hostnames tend not to work, IP addresses do and so does Docker standard names). E.g.:
docker run --name=pebble_screen -e DISPLAY=host.docker.internal:0.0 -it -v %CD%:/pebble clach04/docker-pebble-dev /bin/bash
Then connect via:
docker start -i -a pebble_screen
Use screen
to multiplex so can run emulator and issue emulator commands like config, transcription, etc.
No config in this image so be prepared to set .vimrc
as well as .screenrc
as well as other niceties like https://github.com/nojhan/liquidprompt
pebble install --emulator aplite --logs
pebble install --emulator basalt --logs
pebble emu-app-config
pebble transcribe "Hello, Pebble!"
https://github.com/aveao/PebbleArchive/ has a bunch of stuff archived. The SDK is available here (https://github.com/Leicas/Pebble-dev/blob/master/Dockerfile uses that as a download source). https://pebble.rip/ has some of the same content.
http://gkudelis.net/developing-for-pebble-using-docker/ - nice quick overview of Docker with Pebble dev SDK.
https://www.reddit.com/r/pebble/comments/9i9aqy/developing_for_pebble_without_cloudpebble_windows/ has notes for Mac
Check out rebble.sh
in https://github.com/Spitemare/rebble-docker - makes using container easier. Windows notes above are more like a short lived virtual machine.