Add custom Arch-based act_runner image
Runner based on archlinux:base-devel with git, curl, makepkg. Runs as non-root builder user so makepkg works natively without permission workarounds. Registration data stored in /data volume.
This commit is contained in:
parent
d4eec1c506
commit
93ff264824
@ -1,7 +1,10 @@
|
||||
FROM archlinux:base-devel
|
||||
RUN pacman -Sy --noconfirm git curl && pacman -Scc --noconfirm && useradd -m builder && echo "builder ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
|
||||
RUN pacman -Sy --noconfirm git curl && pacman -Scc --noconfirm
|
||||
RUN useradd -m builder && echo "builder ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
|
||||
ADD https://gitea.com/gitea/act_runner/releases/download/v0.3.1/act_runner-0.3.1-linux-amd64 /usr/local/bin/act_runner
|
||||
RUN chmod +x /usr/local/bin/act_runner
|
||||
COPY --from=gitea/act_runner:latest /usr/local/bin/run.sh /usr/local/bin/run.sh
|
||||
ENV HOME=/root
|
||||
RUN mkdir -p /data && chown builder:builder /data
|
||||
USER builder
|
||||
ENV HOME=/home/builder
|
||||
ENTRYPOINT ["/usr/local/bin/run.sh"]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user