[CI] Add CI pipeline to build libxgboost4j.so targeting Linux ARM64 (#10487)

This commit is contained in:
Philip Hyunsu Cho
2024-06-26 01:43:15 -07:00
committed by GitHub
parent 4abf24aa4f
commit 08658b124d
9 changed files with 158 additions and 43 deletions

View File

@@ -0,0 +1,17 @@
FROM quay.io/pypa/manylinux2014_aarch64
RUN yum update -y && yum install -y java-1.8.0-openjdk-devel
# Install lightweight sudo (not bound to TTY)
ENV GOSU_VERSION 1.10
RUN set -ex; \
curl -o /usr/local/bin/gosu -L "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-arm64" && \
chmod +x /usr/local/bin/gosu && \
gosu nobody true
# Default entry-point to use if running locally
# It will preserve attributes of created files
COPY entrypoint.sh /scripts/
WORKDIR /workspace
ENTRYPOINT ["/scripts/entrypoint.sh"]

View File

@@ -0,0 +1,17 @@
FROM quay.io/pypa/manylinux2014_x86_64
RUN yum update -y && yum install -y java-1.8.0-openjdk-devel ninja-build
# Install lightweight sudo (not bound to TTY)
ENV GOSU_VERSION 1.10
RUN set -ex; \
curl -o /usr/local/bin/gosu -L "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-amd64" && \
chmod +x /usr/local/bin/gosu && \
gosu nobody true
# Default entry-point to use if running locally
# It will preserve attributes of created files
COPY entrypoint.sh /scripts/
WORKDIR /workspace
ENTRYPOINT ["/scripts/entrypoint.sh"]