rxmxn / pycoin

0 stars 0 forks source link

Research on installing OS on Raspi #13

Closed rxmxn closed 4 years ago

rxmxn commented 4 years ago

We want to have the Raspi running the system at all times. We need to research if there's a good way to deploy the OS to Raspi itself in a way that it's a cow and not a pet. We should at least be able to get the OS running, and have Docker and Python3 already installed.

Check Ansible, Chef, Terraform to manage infrastructure.

rxmxn commented 4 years ago

Ansible: https://datahovel.com/2016/03/20/how-to-setup-the-raspberry-pi-using-ansible/

Setup docker with ansible: https://www.digitalocean.com/community/tutorials/how-to-use-ansible-to-install-and-set-up-docker-on-ubuntu-18-04

Install Docker on raspi: https://linuxhint.com/install_docker_raspberry_pi/

another guide that can be checked out: http://www.hietala.org/automating-raspberry-pi-setup-with-ansible.html

rxmxn commented 4 years ago

Installing Raspi over the network article (read the comments for warnings about ssh being disabled by default in the image): https://weberblog.net/reinstall-your-raspberry-over-the-network/

rxmxn commented 4 years ago

Ubuntu Core: https://ubuntu.com/download/raspberry-pi-core https://ubuntu.com/tutorials/how-to-install-ubuntu-core-on-raspberry-pi#2-prepare-the-sd-card

Docs: https://core.docs.ubuntu.com/en/

https://ubuntu.com/download/raspberry-pi

rxmxn commented 4 years ago

Using Packer and Ansible: https://rollout.io/blog/packer-ansible/

Create and manage images with Packer: https://docs.joyent.com/public-cloud/api/hashicorp/packer

https://codeblog.dotsandbrackets.com/build-image-packer/

rxmxn commented 4 years ago

Terraform: https://github.com/clayshek/terraform-raspberrypi-bootstrap

Terraform and Packer: https://www.scaleway.com/en/docs/deploy-cloud-servers-with-packer-and-terraform/

rxmxn commented 4 years ago

Just interesting read: https://blog.qtum.org/qtum-on-raspberry-pi-4b-ff8ef9068194

rxmxn commented 4 years ago

Set up a headless raspi: https://www.tomshardware.com/reviews/raspberry-pi-headless-setup-how-to,6028.html

rxmxn commented 4 years ago

Final Decision: Ubuntu Core. Ubuntu Core is like bare bones Ubuntu with security at its core, so there are less things we need to worry when having our Crypto Accounts connected to the Internet. It's made with snaps and we can create the image with the features we need.

Documentation to follow: https://core.docs.ubuntu.com/en/guides/intro/store

To create a snap of the python app: https://snapcraft.io/docs/python-apps A huge advantage is that you can link the snap with the github repo, so when something is merged to master the snap is automatically updated, so kind of a built-in CI/CD.

To install the image I create for Ubuntu Core: https://ubuntu.com/tutorials/how-to-install-ubuntu-core-on-raspberry-pi#2-prepare-the-sd-card

rxmxn commented 4 years ago

Jumping to Ubuntu Server for Raspberry Pi to have something running asap

rxmxn commented 4 years ago

Created issue #15 to continue the automation in the future.