Python scripts for building peach microservices as packages for Freight repository.
Go to file
Max Fowler 671df65156 Separate setup and update 2020-11-13 12:45:01 +01:00
conf/templates/debian_repo Change dns to apt.peachcloud.org 2020-11-12 17:28:01 +01:00
scripts Separate setup and update 2020-11-13 12:45:01 +01:00
.gitignore Basic working script 2020-11-12 16:46:28 +01:00
README.md Separate setup and update 2020-11-13 12:45:01 +01:00
requirements.txt Python script version 2020-11-10 16:03:45 +01:00

README.md

peach-vps config

Scripts for configuring the peachcloud vps for various hosting and automation.

Currently:

  • debian repository of microservices

setup debian repo

an idempotent script for initializing the debian repo on the vps

apt update
apt install git python python3-pip rsync
git clone https://github.com/peachcloud/peach-vps.git
cd peach-vps
pip3 install -r requirements.txt
python3 scripts/setup_debian_repo.py -i

update debian repo

without the -i flag, the setup_debian_repo rebuilds all microservices (cross-compiled to arm64) and re-adds them to the debian repo

cd peach-vps
python3 scripts/setup_debian_repo.py

using the debian repo on the pi

To add the peachcloud debian repo as an apt source, on the pi,

vi /etc/apt/sources.list.d/peach.list

and add the following line:

deb http://apt.peachcloud.org/debian/ buster main

Then add the gpg pub key to the apt-key list:

wget -O - http://apt.peachcloud.org/peach_pub.gpg | sudo apt-key add -

You can then install peach packages with apt-get:

apt-get update
apt-get install peach-oled