forked from kubeflow/trainer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build XGBoostJob example images in CI (kubeflow#1913)
* Build XGBoostJob example images in CI Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com> * Organize example manifests Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com> * Fix action files Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com> * Replace image names Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com> --------- Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com>
- Loading branch information
Showing
23 changed files
with
105 additions
and
254 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
numpy==1.20.3 | ||
scipy==1.6.2 | ||
scikit-learn==0.24.2 | ||
pandas==1.3.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,14 @@ | ||
# Install python 3.6 | ||
FROM python:3.6 | ||
|
||
RUN apt-get update | ||
RUN apt-get install -y git make g++ cmake | ||
|
||
RUN mkdir -p /opt/mlkube | ||
|
||
# Download the rabit tracker and xgboost code. | ||
|
||
COPY tracker.py /opt/mlkube/ | ||
COPY xgboost_smoke_test.py /opt/mlkube/ | ||
COPY requirements.txt /opt/mlkube/ | ||
|
||
# Install requirements | ||
|
||
RUN pip install -r /opt/mlkube/requirements.txt | ||
|
||
# Build XGBoost. | ||
RUN git clone --recursive https://github.com/dmlc/xgboost && \ | ||
cd xgboost && \ | ||
make -j$(nproc) && \ | ||
cd python-package; python setup.py install | ||
|
||
COPY xgboost_smoke_test.py /opt/mlkube/ | ||
|
||
ENTRYPOINT ["python", "/opt/mlkube/xgboost_smoke_test.py"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ Cython>=0.29.4 | |
requests>=2.21.0 | ||
urllib3>=1.21.1 | ||
scipy>=1.4.1 | ||
xgboost==1.5.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,12 @@ | ||
# Install python 3。6. | ||
# Install python 3.6. | ||
FROM python:3.6 | ||
|
||
RUN apt-get update | ||
RUN apt-get install -y git make g++ cmake | ||
|
||
RUN mkdir -p /opt/mlkube | ||
|
||
# Download the rabit tracker and xgboost code. | ||
|
||
COPY requirements.txt /opt/mlkube/ | ||
|
||
# Install requirements | ||
|
||
COPY requirements.txt /opt/mlkube/ | ||
RUN pip install -r /opt/mlkube/requirements.txt | ||
|
||
# Build XGBoost. | ||
RUN git clone --recursive https://github.com/dmlc/xgboost && \ | ||
cd xgboost && \ | ||
make -j$(nproc) && \ | ||
cd python-package; python setup.py install | ||
|
||
COPY *.py /opt/mlkube/ | ||
|
||
ENTRYPOINT ["python", "/opt/mlkube/main.py"] |
Oops, something went wrong.