Skip to content
This repository has been archived by the owner on Apr 8, 2024. It is now read-only.

Commit

Permalink
functional windows lightgbm images (#144)
Browse files Browse the repository at this point in the history
  • Loading branch information
jfomhover authored Nov 5, 2021
1 parent 5cd8461 commit f4c79cb
Show file tree
Hide file tree
Showing 3 changed files with 78 additions and 1 deletion.
27 changes: 26 additions & 1 deletion .github/workflows/docker_images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:

jobs:

build:
linux_container_build:

runs-on: ubuntu-latest

Expand Down Expand Up @@ -44,3 +44,28 @@ jobs:
if: steps.dockerfile-changed.outputs.changed == 'true'
run: docker build . --file ${{ matrix.dockerfile }} --tag temp:$(date +%s)
working-directory: docker/

windows_container_build:

runs-on: windows-latest

strategy:
matrix:
dockerfile:
- lightgbm-v3.2.1/windows_cpu_pip.dockerfile
- lightgbm-v3.3.0/windows_cpu_pip.dockerfile

steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0

- uses: marceloprado/has-changed-path@v1
id: dockerfile-changed
with:
paths: docker/${{ matrix.dockerfile}}

- name: Build the Docker image
if: steps.dockerfile-changed.outputs.changed == 'true'
run: docker build . --file ${{ matrix.dockerfile }} --tag temp:$(date +%s)
working-directory: docker/
26 changes: 26 additions & 0 deletions docker/lightgbm-v3.2.1/windows_cpu_pip.dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
FROM mcr.microsoft.com/azureml/windows-servercore-1809:latest
LABEL lightgbmbenchmark.windows.cpu.mpi.pip.version="3.2.1/20211103.1"

ENV AZUREML_CONDA_ENVIRONMENT_PATH /azureml-envs/lightgbm

# Create conda environment
RUN conda create -p $AZUREML_CONDA_ENVIRONMENT_PATH \
python=3.8 pip=20.2.4

# Prepend path to AzureML conda environment
#ENV PATH $AZUREML_CONDA_ENVIRONMENT_PATH/bin:$PATH

# Install pip dependencies
RUN pip install 'pandas>=1.1,<1.2' \
'numpy>=1.10,<1.20' \
'scipy~=1.5.0' \
'scikit-learn~=0.24.1' \
'azureml-core==1.30.0' \
'azureml-defaults==1.30.0' \
'azureml-mlflow==1.30.0' \
'azureml-telemetry==1.30.0' \
'lightgbm==3.2.1'

# This is needed for mpi to locate libpython
ENV LD_LIBRARY_PATH $AZUREML_CONDA_ENVIRONMENT_PATH/lib:$LD_LIBRARY_PATH

26 changes: 26 additions & 0 deletions docker/lightgbm-v3.3.0/windows_cpu_pip.dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
FROM mcr.microsoft.com/azureml/windows-servercore-1809:latest
LABEL lightgbmbenchmark.windows.cpu.mpi.pip.version="3.3.0/20211103.1"

ENV AZUREML_CONDA_ENVIRONMENT_PATH /azureml-envs/lightgbm

# Create conda environment
RUN conda create -p $AZUREML_CONDA_ENVIRONMENT_PATH \
python=3.8 pip=20.2.4

# Prepend path to AzureML conda environment
#ENV PATH $AZUREML_CONDA_ENVIRONMENT_PATH/bin:$PATH

# Install pip dependencies
RUN pip install 'pandas>=1.1,<1.2' \
'numpy>=1.10,<1.20' \
'scipy~=1.5.0' \
'scikit-learn~=0.24.1' \
'azureml-core==1.30.0' \
'azureml-defaults==1.30.0' \
'azureml-mlflow==1.30.0' \
'azureml-telemetry==1.30.0' \
'lightgbm==3.3.0'

# This is needed for mpi to locate libpython
ENV LD_LIBRARY_PATH $AZUREML_CONDA_ENVIRONMENT_PATH/lib:$LD_LIBRARY_PATH

0 comments on commit f4c79cb

Please sign in to comment.