Aggiunto tutto il materiale.

This commit is contained in:
Emiliano Vavassori 2024-03-03 23:40:18 +01:00
commit 1854b5dd48
4 changed files with 27 additions and 0 deletions

12
Dockerfile Normal file
View File

@ -0,0 +1,12 @@
# vim:sts=2:sw=2
FROM archlinux:latest
RUN pacman -Syy && pacman -S --noconfirm base-devel git nodejs sudo && \
useradd -m -s /bin/bash paru && \
echo "paru ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/paru && \
chmod 0440 /etc/sudoers.d/paru && \
su - paru -c "git clone https://aur.archlinux.org/paru-bin.git; cd paru-bin; makepkg --noconfirm -csi" && \
pacman -Scc --noconfirm
COPY --chmod=0755 --chown=root:root paruw.sh /paruw.sh
COPY --chmod=0755 --chown=root:root fixperms.sh /fixperms.sh

8
README.md Normal file
View File

@ -0,0 +1,8 @@
# Build materials for the Docker image to release AUR package. #
This repository helps build a Docker image that can be used in Gitea/GitHub
actions to build and release an AUR package.
To compile the image:
docker build -t myarch:1.0.0 -f Dockerfile .

5
fixperms.sh Normal file
View File

@ -0,0 +1,5 @@
#!/bin/bash
# Fix permissions for current working directory.
chgrp -R paru $(pwd)
chmod -R g+w $(pwd)

2
paruw.sh Normal file
View File

@ -0,0 +1,2 @@
#!/bin/bash
su -l paru -c "$@"