add initial deploy script for raspberry pi

This commit is contained in:
sigil-03 2025-09-04 15:46:33 -06:00
parent 806dcc7e15
commit aca207246d
3 changed files with 15 additions and 0 deletions

2
deploy/README.md Normal file
View file

@ -0,0 +1,2 @@
# DEPLOY
tools for deployment onto remote servers. assumes ssh-able connection to server.

5
deploy/init-remote.sh Executable file
View file

@ -0,0 +1,5 @@
#!/bin/bash
# right now only use raspberry pi target
rsync ./targets/init-raspi.sh $1:/tmp
ssh $1 /tmp/init-raspi.sh

8
deploy/targets/init-raspi.sh Executable file
View file

@ -0,0 +1,8 @@
#!/bin/bash
docker --version > /dev/null 2>&1
if [ $? -ne 0 ]; then # we need to install docker
sudo apt-get update --quiet
sudo apt-get install --yes --quiet docker.io
sudo usermod -aG docker ${USER}
fi