-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy paths390x-native.Dockerfile
38 lines (32 loc) · 1.54 KB
/
s390x-native.Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Self-Hosted IBM Z Github Actions Runner.
ARG UBUNTU_VERSION=noble
FROM --platform=linux/s390x ubuntu:${UBUNTU_VERSION}
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get -y install \
bc bison cmake cpu-checker curl dumb-init ethtool flex gawk git \
iproute2 iptables iputils-ping jq keyutils linux-image-generic \
python3 rsync software-properties-common sudo tree wget zstd
RUN apt-get -y install \
qemu-guest-agent qemu-kvm qemu-utils \
qemu-system-arm qemu-system-s390x qemu-system-x86
RUN apt-get install -y \
aspnetcore-runtime-8.0
RUN apt-get clean
ARG version=2.321.0
ARG homedir=/actions-runner
# Copy scripts from myoung34/docker-github-actions-runner
RUN curl -L https://raw.githubusercontent.com/myoung34/docker-github-actions-runner/${version}/entrypoint.sh -o /entrypoint.sh && chmod 755 /entrypoint.sh
RUN curl -L https://raw.githubusercontent.com/myoung34/docker-github-actions-runner/${version}/token.sh -o /token.sh && chmod 755 /token.sh
RUN useradd -d ${homedir} -m runner
RUN echo "runner ALL=(ALL) NOPASSWD: ALL" >>/etc/sudoers
RUN echo "Defaults env_keep += \"DEBIAN_FRONTEND\"" >>/etc/sudoers
# Make sure kvm group exists. This is a no-op when it does.
RUN addgroup --system kvm
RUN usermod -a -G kvm runner
USER runner
ENV USER=runner
WORKDIR ${homedir}
RUN curl -L https://github.com/theihor/s390x-actions-runner/releases/download/v${version}/actions-runner-linux-s390x-${version}.tar.gz | tar -xz
USER root
ENTRYPOINT ["/entrypoint.sh"]
CMD ["./bin/Runner.Listener", "run", "--startuptype", "service"]