Preparing for archlinux

This commit is contained in:
2025-05-02 22:07:00 +02:00
parent 8d1a0e9557
commit 178ba8ae8f
3 changed files with 67 additions and 3 deletions

View File

@@ -1,3 +1,4 @@
# Test on debian
FROM debian:11 AS debian-user
RUN \
@@ -13,3 +14,22 @@ COPY ./tforgione.sh /home/tester/tforgione.sh
RUN echo "cat tforgione.sh | bash" > /home/tester/.bash_history
CMD ["bash"]
# Test on archlinux
FROM archlinux AS archlinux-user
RUN \
pacman -Sy curl --noconfirm && \
groupadd sudo && \
mkdir /etc/sudoers.d && \
echo "%sudo ALL=(ALL:ALL) ALL" > /etc/sudoers.d/sudoers && \
useradd -m tester && \
echo tester:tester | chpasswd && \
usermod -aG sudo tester
USER tester
WORKDIR /home/tester
COPY ./tforgione.sh /home/tester/tforgione.sh
RUN echo "cat tforgione.sh | bash" > /home/tester/.bash_history
CMD ["bash"]