CatalystCode / cell-sar

Cell Scanning Search and Rescue Drone Prototype
5 stars 4 forks source link

Process to Reliably Create Raspberry Pi deployments #8

Closed stefangordon closed 7 years ago

stefangordon commented 7 years ago

If I have a new SD card and Raspberry Pi, how can I get it running our code in a reproducible way from this repository?

Probably includes

  1. Commit any prototype code to GIT
  2. Write deploy/install instructions
  3. Automate with bash script if possible
anthturner commented 7 years ago

We're doing pretty well here. I need to document the installer more formally but the current process kind of goes something like this:

After this is done, plug the Pi into a monitor (no keyboard required) and an internet connection, and boot. We clone the HEAD of this git repository and run the installer.sh script out of the devops folder. The bootstrapper script is also in the devops folder (and the Git URL can be changed if people fork this in the future).

anthturner commented 7 years ago

Random idea to experiment with later to take an annoying step away from this -- instead of having to rewrite firstBoot.sh, maybe the installer can try to spawn on a different tty and switch to that for the duration of the process.

anthturner commented 7 years ago

The above idea worked -- using openvt to switch to another tty for the duration of the installer is a workable solution. Closing.