Skip to content
This repository has been archived by the owner on Dec 5, 2024. It is now read-only.

Commit

Permalink
just need to update teh readme now
Browse files Browse the repository at this point in the history
  • Loading branch information
paigeadelethompson committed Nov 8, 2023
1 parent 34ad7ed commit 25707e3
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 6 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Install tools
run: sudo apt update ; sudo apt -y install python-is-python3 python3-pip exfatprogs parted exfat-fuse binfmt-support qemu-user-static
- name: Create installer.bin
run: truncate -s 16384M installer.bin
run: truncate -s 8192M installer.bin
- name: Create loopback device
run: sudo mknod -m 0660 /dev/loop254 b 7 254
- name: Mount installer.bin as loopback device
Expand All @@ -29,9 +29,9 @@ jobs:
- name: Create BOOT partition
run: sudo parted /dev/loop254 mkpart primary fat32 1 256
- name: Create SYSTEM partition
run: sudo parted /dev/loop254 mkpart primary ext2 256 4096
run: sudo parted /dev/loop254 mkpart primary ext2 256 3128
- name: Create HOME partition
run: sudo parted /dev/loop254 mkpart primary fat32 4096 16384
run: sudo parted /dev/loop254 mkpart primary fat32 3128 8192
- name: Label BOOT
run: sudo parted /dev/loop254 name 1 BOOT
- name: Label SYSTEM
Expand Down Expand Up @@ -65,11 +65,13 @@ jobs:
- name: Docker export
run: cd /mnt ; sudo docker export rpi-image | sudo tar --exclude=etc/machine-id --exclude=etc/ssh/*_key* --exclude=etc/ssh/moduli -xf -
- name: Home directories
run: sudo mkdir /mnt/home/pi/ssh /mnt/home/pi/motion_cam /mnt/home/pi/motion_logs /mnt/home/pi/motion_video /mnt/home/pi/motion_cameras
run: sudo mkdir /mnt/home/pi/ssh mnt/home/pi/system_logs /mnt/home/pi/motion_cam /mnt/home/pi/motion_logs /mnt/home/pi/motion_video /mnt/home/pi/motion_cameras
- name: authorized_keys empty file
run: sudo touch /mnt/home/pi/ssh/authorized_keys
- name: Create empty machine-id
run: sudo touch /mnt/etc/machine-id
- name: Motion camera example configuration file
run: sudo cp camera.conf.example mnt/home/pi
- name: Copy hosts file
run: sudo cp hosts /mnt/etc
- name: Copy hostname file
Expand Down
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ RUN cat /tmp/startup.txt | xargs -i systemctl enable {}

RUN systemctl enable regenerate_ssh_host_keys

ADD logrotate.conf /etc/logrotate.d/logrotate.conf

ADD sshd_config /etc/ssh/sshd_config.d/sshd_config

ADD sudoers /etc/sudoers.d
Expand All @@ -48,7 +50,7 @@ ADD 10-eth.network /etc/systemd/network

ADD 10-usb.network /etc/systemd/network

ADD 10-eth.network /etc/systemd/network
ADD 10-enx.network /etc/systemd/network

RUN mkdir /home/pi

Expand Down
1 change: 1 addition & 0 deletions camera.conf.example
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Rename to camera<number>.conf and add this to the motion_cameras directory to enable the camera
video_device /dev/video0
camera_name CAMERA01
camera_id 101
Expand Down
3 changes: 2 additions & 1 deletion fstab
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/dev/mmcblk0p1 /boot/ vfat defaults,noauto 0 0
/dev/mmcblk0p1 /boot/ vfat defaults 0 0
/dev/mmcblk0p2 / ext4 defaults 0 0
/dev/mmcblk0p3 /home/pi exfat defaults,nofail,uid=4000,gid=5000,dmask=007,fmask=117 0 0
tmpfs /tmp tmpfs nosuid,nodev,noatime 0 0
6 changes: 6 additions & 0 deletions logrotate.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/var/log/* {
olddir /home/pi/system_logs
rotate 14
daily
compress
}
3 changes: 3 additions & 0 deletions packages.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,6 @@ libc6:armel
zsh
iproute2
less
parted
cron
logrotate
1 change: 1 addition & 0 deletions startup.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ ssh
motion
systemd-networkd
systemd-resolved
cron

0 comments on commit 25707e3

Please sign in to comment.