Skip to content

Commit

Permalink
Build i386 container (#3)
Browse files Browse the repository at this point in the history
* Build i386 container

* Fix permissions

* Install curl
  • Loading branch information
hcho3 authored Dec 10, 2024
1 parent 90cc506 commit 64961fe
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
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"]

0 comments on commit 64961fe

Please sign in to comment.