mirror of
https://github.com/CompeyDev/lune-packaging.git
synced 2025-01-09 12:19:09 +00:00
feat: AUR testing dockerfile
This commit is contained in:
parent
55ac5dec0c
commit
4f263a19f3
1 changed files with 29 additions and 0 deletions
29
tests/aur/Dockerfile
Normal file
29
tests/aur/Dockerfile
Normal file
|
@ -0,0 +1,29 @@
|
|||
FROM archlinux:base-devel
|
||||
|
||||
RUN pacman --needed --noconfirm -Syu \
|
||||
base \
|
||||
git \
|
||||
pacman-contrib
|
||||
|
||||
RUN useradd -m builder && \
|
||||
echo "builder ALL=(ALL:ALL) NOPASSWD: ALL" >> /etc/sudoers && \
|
||||
echo "%wheel ALL=(ALL:ALL) NOPASSWD: ALL" >> /etc/sudoers && \
|
||||
usermod -a -G wheel builder
|
||||
|
||||
RUN mkdir -p /home/builder/.ssh && \
|
||||
touch /home/builder/.ssh/known_hosts
|
||||
|
||||
COPY ../../package/aur/lune-bin ../../package/aur/lune-git ../../package/aur/lune /home/builder/packages
|
||||
|
||||
COPY ./entrypoint.sh /home/builder/packages/entrypoint.sh
|
||||
|
||||
RUN chown -R builder:builder /home/builder/.ssh && \
|
||||
chmod 600 /home/builder/.ssh/* -R && \
|
||||
chown -R builder:builder /home/builder/packages && \
|
||||
chmod 600 /home/builder/packages/* -R && \
|
||||
chmod +x /home/builder/packages/*.ssh
|
||||
|
||||
USER builder
|
||||
WORKDIR /home/builder/packages
|
||||
|
||||
ENTRYPOINT ["/home/builder/packages/entrypoint.sh"]
|
Loading…
Reference in a new issue