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

dockerized arm64/amd64 swig build #83

Merged
merged 1 commit into from
May 30, 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
13 changes: 13 additions & 0 deletions swig-build/Dockerfile.amd64
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM ubuntu:focal-20240427
RUN apt-get update
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get install -y --no-install-recommends openjdk-11-jdk gcc g++ build-essential git software-properties-common lsb-release dirmngr swig4.0 gpg-agent ca-certificates
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 1A127079A92F09ED
RUN apt-add-repository "deb https://apt.kitware.com/ubuntu/ $(lsb_release -cs) main"
RUN apt update && apt install -y kitware-archive-keyring
RUN apt update && apt install -y cmake
RUN git clone --recursive --depth 1 --branch v4.3.0 https://github.com/microsoft/LightGBM
WORKDIR /LightGBM
ENV JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64/
RUN cmake -B build -S . -DUSE_SWIG=ON
RUN cmake --build build -j6
13 changes: 13 additions & 0 deletions swig-build/Dockerfile.arm64
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM ubuntu:focal-20240427
RUN apt-get update
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get install -y --no-install-recommends openjdk-11-jdk gcc g++ build-essential git software-properties-common lsb-release dirmngr swig4.0 gpg-agent ca-certificates
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 1A127079A92F09ED
RUN apt-add-repository "deb https://apt.kitware.com/ubuntu/ $(lsb_release -cs) main"
RUN apt update && apt install -y kitware-archive-keyring
RUN apt update && apt install -y cmake
RUN git clone --recursive --depth 1 --branch v4.3.0 https://github.com/microsoft/LightGBM
WORKDIR /LightGBM
ENV JAVA_HOME=/usr/lib/jvm/java-11-openjdk-arm64/
RUN cmake -B build -S . -DUSE_SWIG=ON
RUN cmake --build build -j6
3 changes: 3 additions & 0 deletions swig-build/build_linux_amd64.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
docker buildx build --platform amd64 -t lgbm:latest -f "Dockerfile.amd64" .
3 changes: 3 additions & 0 deletions swig-build/build_linux_arm64.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

docker buildx build --platform arm64 -t lgbm:latest -f "Dockerfile.arm64" .
File renamed without changes.
Loading