Some checks failed
sm-rpc / build (Debug, arm-linux-gnueabihf) (push) Successful in 1m34s
sm-rpc / build (Debug, aarch64-linux-gnu) (push) Successful in 2m46s
sm-rpc / build (Debug, host.gcc) (push) Failing after 1m28s
sm-rpc / build (Release, aarch64-linux-gnu) (push) Successful in 2m14s
sm-rpc / build (Release, arm-linux-gnueabihf) (push) Successful in 2m8s
sm-rpc / build (Debug, mipsel-linux-gnu) (push) Successful in 5m35s
sm-rpc / build (Release, host.gcc) (push) Failing after 1m55s
sm-rpc / build (Release, mipsel-linux-gnu) (push) Successful in 7m21s
55 lines
1.8 KiB
Docker
55 lines
1.8 KiB
Docker
# Self-Hosted IBM Z Github Actions Runner.
|
|
|
|
FROM almalinux:9
|
|
|
|
RUN dnf update -y -q && \
|
|
dnf install -y -q --enablerepo=crb wget git which sudo jq sed \
|
|
cmake make automake autoconf m4 libtool ninja-build python3-pip \
|
|
gcc gcc-c++ clang llvm-toolset glibc-all-langpacks langpacks-en \
|
|
glibc-static libstdc++-static libstdc++-devel libxslt-devel libxml2-devel
|
|
|
|
RUN dnf install -y -q dotnet-sdk-8.0 && \
|
|
echo "Using SDK - `dotnet --version`"
|
|
|
|
RUN cd /tmp && \
|
|
git clone -q https://github.com/actions/runner && \
|
|
cd runner && \
|
|
git checkout $(git describe --tags $(git rev-list --tags --max-count=1)) -b build && \
|
|
wget https://github.com/anup-kodlekere/gaplib/raw/refs/heads/main/build-files/runner-sdk-8.patch && \
|
|
git apply runner-sdk-8.patch && \
|
|
sed -i'' -e /version/s/8......\"$/$8.0.100\"/ src/global.json
|
|
|
|
RUN cd /tmp/runner/src && \
|
|
./dev.sh layout && \
|
|
./dev.sh package && \
|
|
rm -rf /root/.dotnet /root/.nuget
|
|
|
|
RUN useradd -c "Action Runner" -m actions-runner && \
|
|
usermod -L actions-runner
|
|
|
|
RUN tar -xf /tmp/runner/_package/*.tar.gz -C /home/actions-runner && \
|
|
chown -R actions-runner:actions-runner /home/actions-runner
|
|
|
|
#VOLUME /home/actions-runner
|
|
|
|
# Workaround: Install custom clang version to avoid compiler bug, ref #1852
|
|
RUN mkdir /tmp/clang
|
|
|
|
COPY clang/*.rpm /tmp/clang
|
|
|
|
RUN dnf -y upgrade /tmp/clang/*.rpm && \
|
|
rm -rf /tmp/clang
|
|
|
|
# Cleanup
|
|
RUN rm -rf /tmp/runner /var/cache/dnf/* /tmp/runner.patch /tmp/global.json && \
|
|
dnf clean all
|
|
|
|
USER actions-runner
|
|
|
|
# Scripts.
|
|
COPY --chmod=555 entrypoint /usr/bin/
|
|
COPY --chmod=555 actions-runner /usr/bin/
|
|
WORKDIR /home/actions-runner
|
|
ENTRYPOINT ["/usr/bin/entrypoint"]
|
|
CMD ["/usr/bin/actions-runner"]
|