-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
50 additions
and
54 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,28 @@ | ||
name: mlopspython_ci | ||
|
||
dependencies: | ||
|
||
# The python interpreter version. | ||
- python=3.7.5 | ||
- python=3.7.5 | ||
|
||
# dependencies with versions aligned with conda_dependencies.yml. | ||
- numpy=1.18.1 | ||
- pandas=1.0.0 | ||
- scikit-learn=0.22.1 | ||
|
||
# dependencies for MLOps with R. | ||
- r=3.6.0 | ||
- r-essentials=3.6.0 | ||
- numpy=1.18.1 | ||
- pandas=1.0.0 | ||
- scikit-learn=0.22.1 | ||
# dependencies for MLOps with R. | ||
- r=3.6.0 | ||
- r-essentials=3.6.0 | ||
|
||
- pip=20.0.2 | ||
- pip: | ||
|
||
# dependencies with versions aligned with conda_dependencies.yml. | ||
- azureml-sdk==1.0.79 | ||
- pip=20.0.2 | ||
- pip: | ||
# dependencies with versions aligned with conda_dependencies.yml. | ||
- azureml-sdk==1.0.85 | ||
|
||
# Additional pip dependencies for the CI environment. | ||
- pytest==5.3.1 | ||
- pytest-cov==2.8.1 | ||
- requests==2.22.0 | ||
- python-dotenv==0.10.3 | ||
- flake8==3.7.9 | ||
- flake8_formatter_junit_xml==0.0.6 | ||
- azure-cli==2.0.77 | ||
- tox==3.14.3 | ||
# Additional pip dependencies for the CI environment. | ||
- pytest==5.3.1 | ||
- pytest-cov==2.8.1 | ||
- requests==2.22.0 | ||
- python-dotenv==0.10.3 | ||
- flake8==3.7.9 | ||
- flake8_formatter_junit_xml==0.0.6 | ||
- azure-cli==2.0.81 | ||
- tox==3.14.3 |
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,19 +1,16 @@ | ||
FROM conda/miniconda3 | ||
|
||
LABEL org.label-schema.vendor = "Microsoft" \ | ||
org.label-schema.url = "https://hub.docker.com/r/microsoft/mlopspython" \ | ||
org.label-schema.vcs-url = "https://github.com/microsoft/MLOpsPython" | ||
org.label-schema.url = "https://hub.docker.com/r/microsoft/mlopspython" \ | ||
org.label-schema.vcs-url = "https://github.com/microsoft/MLOpsPython" | ||
|
||
COPY diabetes_regression/ci_dependencies.yml /setup/ | ||
|
||
RUN conda env create -f /setup/ci_dependencies.yml | ||
|
||
# activate environment | ||
ENV PATH /usr/local/envs/mlopspython_ci/bin:$PATH | ||
RUN /bin/bash -c "source activate mlopspython_ci" | ||
|
||
# Verify conda installation. | ||
# This serves as workaround for https://github.com/conda/conda/issues/8537 (conda env create doesn't fail | ||
# if pip installation fails, for example due to a wrong package version). | ||
# The `az` command is not available if pip has not run (and installed azure-cli). | ||
RUN az --version | ||
RUN conda update -n base -c defaults conda && \ | ||
conda install python=3.7.5 && \ | ||
conda env create -f /setup/ci_dependencies.yml && \ | ||
/bin/bash -c "source activate mlopspython_ci" && \ | ||
az --version |
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