Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build i386 container #3

Merged
merged 3 commits into from
Dec 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@ on:
- main
paths:
- 'containers/**'
- '.github/workflows/containers.yml'
pull_request:
paths:
- 'containers/**'
- '.github/workflows/containers.yml'
schedule:
- cron: "0 7 * * 1" # Run once weekly

Expand Down Expand Up @@ -51,6 +53,7 @@ jobs:
- xgb-ci.jvm_gpu_build
- xgb-ci.manylinux_2_28_x86_64
- xgb-ci.manylinux2014_x86_64
- xgb-ci.i386
runner: [linux-amd64-cpu]
include:
- container_id: xgb-ci.aarch64
Expand Down
3 changes: 3 additions & 0 deletions containers/ci_container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,6 @@ xgb-ci.jvm_gpu_build:
build_args:
CUDA_VERSION: "12.4.1"
NCCL_VERSION: "2.23.4-1"

xgb-ci.i386:
container_def: i386
16 changes: 15 additions & 1 deletion containers/dockerfile/Dockerfile.i386
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,20 @@ FROM i386/debian:sid
SHELL ["/bin/bash", "-c"]

ENV DEBIAN_FRONTEND=noninteractive
ENV GOSU_VERSION=1.10

RUN apt-get update && \
apt-get install -y tar unzip wget git build-essential ninja-build cmake
apt-get install -y tar unzip wget git build-essential ninja-build cmake curl

# Install lightweight sudo (not bound to TTY)
RUN set -ex; \
curl -o /usr/local/bin/gosu -L "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-i386" && \
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"]
Loading