From 0b71140a16395826c1e6f5815407ca831b6429d1 Mon Sep 17 00:00:00 2001 From: Paige Thompson Date: Tue, 7 Nov 2023 21:40:09 -0800 Subject: [PATCH] fix group --- .github/workflows/build.yml | 2 +- Dockerfile | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1362ffd..4745c86 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -57,7 +57,7 @@ jobs: - name: Create docker image instance run: docker create --name rpi-image surv:latest - name: Docker export - run: cd /mnt ; sudo docker export rpi-image | sudo tar --exclude=etc/machine-id -xf - + run: cd /mnt ; sudo docker export rpi-image | sudo tar --exclude=etc/machine-id --exclude=etc/*_key* -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 - name: authorized_keys empty file diff --git a/Dockerfile b/Dockerfile index a15a144..b5c2b91 100644 --- a/Dockerfile +++ b/Dockerfile @@ -56,6 +56,8 @@ RUN groupadd i2c RUN groupadd gpio +RUN groupadd input + RUN groupadd -g 5000 pi RUN useradd -u 4000 -g pi -s /bin/bash -d /home/pi -G sudo,video,adm,dialout,cdrom,audio,plugdev,games,users,input,netdev,spi,i2c,gpio pi