Python scripts for building peach microservices as packages for Freight repository.
Go to file
Max Fowler 93564a63cc Add nginx config for debian repo 2020-11-11 13:28:41 +01:00
ansible Add nginx config for debian repo 2020-11-11 13:28:41 +01:00
.gitignore Add nginx config for debian repo 2020-11-11 13:28:41 +01:00
README.md More clear README 2020-11-11 11:32:54 +01:00

README.md

peach-vps config

Code for configuring the peachcloud vps for various hosting and automation

  • debian repository of microservices
  • mdbook builder for devdocs

using ansible 2.9.3

instructions to install ansible locally

setup

locally run: mkdir ansible/secret_files (and make sure you get the required secret_files which are hosted off git)

gpg key creation is still not automated, so after creating the server generate a gpg key on the server, gpg --gen-key put the gpg_key_id into vars.yaml and then run setup locally:

ansible-playbook -i ansible/hosts ansible/setup.yml

deploy

ansible-playbook -i ansible/hosts ansible/deploy.yml

building releases (to be automated later)

building for arm64

cargo-deb
cd /srv/www/repos/apt/debian
reprepro includedeb buster /srv/src/peach-oled/target/debian/peach-oled_0.1.0_amd64.deb

building for aarch64

cargo build --release --target=aarch64-unknown-linux-gnu
CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER=/usr/bin/aarch64-linux-gnu-gcc cargo-deb --release --target=aarch64-unknown-linux-gnu

misc

based off this tutorial: https://wiki.debian.org/DebianRepository/SetupWithReprepro