Debian Codegraph @

src/c-blosc2/internal-complibs/zlib-ng-2.0.7/arch/s390/self-hosted-builder/actions-runner.Dockerfile

raw
1 # Self-Hosted IBM Z Github Actions Runner.
2
3 # Temporary image: amd64 dependencies.
4 FROM amd64/ubuntu:20.04 as ld-prefix
5 ENV DEBIAN_FRONTEND=noninteractive
6 RUN apt-get update && apt-get -y install ca-certificates libicu66 libssl1.1
7
8 # Main image.
9 FROM s390x/ubuntu:20.04
10
11 # Packages for zlib-ng testing.
12 ENV DEBIAN_FRONTEND=noninteractive
13 RUN apt-get update && apt-get -y install \
14 clang-11 \
15 cmake \
16 curl \
17 gcc \
18 git \
19 jq \
20 llvm-11-tools \
21 ninja-build \
22 python-is-python3 \
23 python3 \
24 python3-pip
25
26 # amd64 dependencies.
27 COPY --from=ld-prefix / /usr/x86_64-linux-gnu/
28 RUN ln -fs ../lib/x86_64-linux-gnu/ld-linux-x86-64.so.2 /usr/x86_64-linux-gnu/lib64/
29 RUN ln -fs /etc/resolv.conf /usr/x86_64-linux-gnu/etc/
30 ENV QEMU_LD_PREFIX=/usr/x86_64-linux-gnu
31
32 # amd64 Github Actions Runner.
33 RUN useradd -m actions-runner
34 USER actions-runner
35 WORKDIR /home/actions-runner
36 RUN curl -L https://github.com/actions/runner/releases/download/v2.283.2/actions-runner-linux-x64-2.283.2.tar.gz | tar -xz
37 VOLUME /home/actions-runner
38
39 # Scripts.
40 COPY fs/ /
41 ENTRYPOINT ["/usr/bin/entrypoint"]
42 CMD ["/usr/bin/actions-runner"]