mirror of
https://github.com/opencv/opencv.git
synced 2024-12-16 10:29:11 +08:00
85923c8f30
Update zlib-ng to 2.2.1 #26113 Release: https://github.com/zlib-ng/zlib-ng/releases/tag/2.2.1 ARM diagnostics patch: https://github.com/zlib-ng/zlib-ng/pull/1774 ### Pull Request Readiness Checklist See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request - [x] I agree to contribute to the project under Apache 2 License. - [x] To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV - [x] The PR is proposed to the proper branch - [ ] There is a reference to the original bug report and related work - [ ] There is accuracy test, performance test and test data in opencv_extra repository, if applicable Patch to opencv_extra has the same branch name. - [ ] The feature is well documented and sample code can be built with the project CMake
48 lines
1.5 KiB
Docker
48 lines
1.5 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 \
|
|
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-6.0 && \
|
|
echo "Using SDK - `dotnet --version`"
|
|
|
|
COPY runner-s390x.patch /tmp/runner.patch
|
|
COPY runner-global.json /tmp/global.json
|
|
|
|
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 && \
|
|
git apply /tmp/runner.patch && \
|
|
cp -f /tmp/global.json 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
|
|
|
|
RUN rm -rf /tmp/runner /var/cache/dnf/* /tmp/runner.patch /tmp/global.json && \
|
|
dnf clean all
|
|
|
|
USER actions-runner
|
|
|
|
# Scripts.
|
|
COPY fs/ /
|
|
WORKDIR /home/actions-runner
|
|
ENTRYPOINT ["/usr/bin/entrypoint"]
|
|
CMD ["/usr/bin/actions-runner"]
|