| 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 |
libxml2-dev \ |
| 21 |
libxslt-dev \ |
| 22 |
llvm-11-tools \ |
| 23 |
ninja-build \ |
| 24 |
python-is-python3 \ |
| 25 |
python3 \ |
| 26 |
python3-dev \ |
| 27 |
python3-pip |
| 28 |
|
| 29 |
# amd64 dependencies. |
| 30 |
COPY --from=ld-prefix / /usr/x86_64-linux-gnu/ |
| 31 |
RUN ln -fs ../lib/x86_64-linux-gnu/ld-linux-x86-64.so.2 /usr/x86_64-linux-gnu/lib64/ |
| 32 |
RUN ln -fs /etc/resolv.conf /usr/x86_64-linux-gnu/etc/ |
| 33 |
ENV QEMU_LD_PREFIX=/usr/x86_64-linux-gnu |
| 34 |
|
| 35 |
# amd64 Github Actions Runner. |
| 36 |
RUN useradd -m actions-runner |
| 37 |
USER actions-runner |
| 38 |
WORKDIR /home/actions-runner |
| 39 |
RUN curl -L https://github.com/actions/runner/releases/download/v2.287.1/actions-runner-linux-x64-2.287.1.tar.gz | tar -xz |
| 40 |
VOLUME /home/actions-runner |
| 41 |
|
| 42 |
# Scripts. |
| 43 |
COPY fs/ / |
| 44 |
ENTRYPOINT ["/usr/bin/entrypoint"] |
| 45 |
CMD ["/usr/bin/actions-runner"] |