Add test lines to end of raspi_master.yaml

This commit is contained in:
notplants 2021-01-26 17:05:13 +01:00
parent 71fbc01775
commit f20223c36b
6 changed files with 35 additions and 0 deletions

4
.gitignore vendored
View File

@ -8,3 +8,7 @@ raspi_0w.yaml
raspi_2.yaml
raspi_3.yaml
raspi_4.yaml
*.img
vmdb2/*
.idea
vmdb2

5
build.sh Executable file
View File

@ -0,0 +1,5 @@
#!/usr/bin/env bash
WD=/home/notplants/computer/projects/peachcloud/image-specs
cd $WD/vmdb2
sudo ./vmdb2 --verbose --rootfs-tarball=$WD/my_raspi.tar.gz --output $WD/my_raspi.img $WD/raspi_3.yaml --log $WD/my_raspi.log

5
deploy.sh Executable file
View File

@ -0,0 +1,5 @@
KEY_PATH=/home/notplants/.ssh/do_rsa
rsync -avzh --exclude target --exclude .idea --exclude .git --exclude *.img -e "ssh -i $KEY_PATH" . root@165.227.141.30:/srv/image-specs/
ssh -i $KEY_PATH root@165.227.141.30 'cd /srv/image-specs; echo "hi"'

1
fetch.sh Executable file
View File

@ -0,0 +1 @@
scp -i /home/notplants/.ssh/do_rsa root@165.227.141.30:/srv/image-specs/raspi_3.img peach.img

View File

@ -132,3 +132,22 @@ steps:
- shell: |
rm "${ROOT?}/etc/resolv.conf"
root-fs: /
- create-file: /srv/hi.txt
trailing-newline: '1'
contents: |
hello
here
are
some
lines
unless: rootfs_unpacked
- shell: |
echo "does this work?" > /srv/turtle.txt
echo "and also this?" > /srv/cat.txt
root-fs: /

1
ssh.sh Executable file
View File

@ -0,0 +1 @@
ssh -i /home/notplants/.ssh/do_rsa root@165.227.141.30