commit 689d46699bc06355b398d6366456c24f36cae0e2 Author: Manuel Date: Fri Sep 23 17:33:31 2022 +0200 Initial commit diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..b3e18ca --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "aur-packages"] + path = aur-packages + url = gitea@git.snrd.eu:SunRed/aur-packages.git diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..596e6a0 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,32 @@ +FROM binhex/arch-base:latest AS build + +COPY ./aur-packages/srcpkgs/cage-vi/ /tmp/cage/ + +RUN pacman -Syu --noconfirm base-devel \ + && chown -R nobody: /tmp/cage/ \ + && source /tmp/cage/PKGBUILD && pacman -Syu --noconfirm ${depends[@]} ${makedepends[@]} \ + && runuser -u nobody -- sh -c "cd /tmp/cage/ && makepkg -c --noconfirm" + +FROM binhex/arch-base:latest + +COPY --from=build /tmp/cage/*.pkg.tar.zst /tmp/cage/ + +RUN pacman -Syu --noconfirm mesa mesa-libgl wayvnc noto-fonts gnu-free-fonts \ + && pacman -U --noconfirm /tmp/cage/*.pkg.tar.zst \ + && yes y | pacman -Scc >/dev/null 2>&1 \ + && rm -rf /usr/share/man/* /usr/share/doc/* \ + /var/cache/pacman/pkg/* /var/lib/pacman/sync/* \ + /tmp/* + +COPY wayvnc.conf /etc/wayvnc/config + +ENV PGID=10000 \ + PUID=10000 \ + HOME=/home/user + +RUN useradd -U -u ${PGID} -G users,seat,video,render -d "${HOME}" user \ + && mkdir -p /run/user/${PGID} \ + && chown user: /run/user/${PGID} \ + && chmod 7700 /run/user/${PGID} + +WORKDIR / diff --git a/LICENSE.txt b/LICENSE.txt new file mode 100644 index 0000000..baf0f96 --- /dev/null +++ b/LICENSE.txt @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2022 SunRed + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md new file mode 100644 index 0000000..56cd239 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# cagevnc + +Cage wayland kiosk packaged with wayvnc for use as a base image diff --git a/aur-packages b/aur-packages new file mode 160000 index 0000000..dd30717 --- /dev/null +++ b/aur-packages @@ -0,0 +1 @@ +Subproject commit dd3071719e4ae5c402fc32c02d887d1c9165ed1d diff --git a/wayvnc.conf b/wayvnc.conf new file mode 100644 index 0000000..b2f7c7b --- /dev/null +++ b/wayvnc.conf @@ -0,0 +1,2 @@ +address=0.0.0.0 +port=5900