rusi / duckietown.dev.land

duckietown.dev.land
MIT License
1 stars 1 forks source link

Offline configuration for SD card #4

Open breandan opened 6 years ago

breandan commented 6 years ago

Add Duckietown and Portainer Docker images to the SD card so that end users do not need to have an internet connection to use their Duckiebot on first boot. SD card image should be self-contained. Apparently, this is possible through the Hypriot's Docker Preload Image Settings:

docker:
  images:
    - "/path/to/duckietown.tar.gz"
    - "/path/to/portainer.tar.gz"
breandan commented 6 years ago

Apparently, device-init is no longer supported? Workaround for Hypriot 1.9.0: hypriot/image-builder-rpi/issues/244

breandan commented 6 years ago

Partially implemented here:

https://github.com/rusi/duckietown.dev.land/blob/8c91266293ba90f94fd7d06230cb1310682ad0aa/assets/flash-hypriot.sh#L159

However duckietown/software is too big to fit on the default partition that HypriotOS provides, failing with No space left on device.

breandan commented 6 years ago

This issue is somewhat alleviated by compressing the images as we do in duckietown/scripts@8e48f907233f182fa296ebfe49fa33ebd91706b9, however in order to fit the larger demo images we will need to build a Hypriot image from scratch.