-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
migrating component environment (#3505)
* migrating component env to assets * adding category * changing category * resolving pr comments * making comp images public * upgrading to ubuntu22 for component version
- Loading branch information
1 parent
c7e3e68
commit 3ae6492
Showing
7 changed files
with
63 additions
and
2 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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
name: component | ||
version: auto | ||
type: environment | ||
spec: spec.yaml | ||
extra_config: environment.yaml | ||
categories: ["Designer", "Python"] |
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,16 @@ | ||
FROM mcr.microsoft.com/azureml/openmpi4.1.0-ubuntu22.04:{{latest-image-tag}} | ||
|
||
WORKDIR / | ||
|
||
ENV CONDA_PREFIX=/azureml-envs/component-sdk | ||
ENV CONDA_DEFAULT_ENV=$CONDA_PREFIX | ||
ENV PATH=$CONDA_PREFIX/bin:$PATH | ||
# This is needed for mpi to locate libpython | ||
ENV LD_LIBRARY_PATH=$CONDA_PREFIX/lib:$LD_LIBRARY_PATH | ||
|
||
# Create conda environment | ||
COPY conda_dependencies.yaml . | ||
RUN conda env create -p $CONDA_PREFIX -f conda_dependencies.yaml -q && \ | ||
rm conda_dependencies.yaml && \ | ||
conda run -p $CONDA_PREFIX pip cache purge && \ | ||
conda clean -a -y |
10 changes: 10 additions & 0 deletions
10
assets/designer/environments/component/context/conda_dependencies.yaml
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,10 @@ | ||
name: component | ||
channels: | ||
- conda-forge | ||
dependencies: | ||
- python=3.9 | ||
- pip=24.0 | ||
- pip: | ||
- azure-ml-component=={{latest-pypi-version}} | ||
- azureml-defaults=={{latest-pypi-version}} | ||
- pyarrow>=14.0.1 |
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,12 @@ | ||
image: | ||
name: azureml/curated/component | ||
os: linux | ||
context: | ||
dir: context | ||
dockerfile: Dockerfile | ||
template_files: | ||
- Dockerfile | ||
- conda_dependencies.yaml | ||
publish: | ||
location: mcr | ||
visibility: public |
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,17 @@ | ||
$schema: https://azuremlschemas.azureedge.net/latest/environment.schema.json | ||
|
||
description: >- | ||
An environment for built-in component that can dynamically evaluate python expression for 1P request feature. | ||
name: "{{asset.name}}" | ||
version: "{{asset.version}}" | ||
|
||
build: | ||
path: "{{image.context.path}}" | ||
dockerfile_path: "{{image.dockerfile.path}}" | ||
|
||
os_type: linux | ||
|
||
tags: | ||
OS: Ubuntu22.04 | ||
Python: 3.9 |
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 |
---|---|---|
|
@@ -14,4 +14,4 @@ os_type: linux | |
|
||
tags: | ||
OS: Ubuntu20.04 | ||
Python: 3.8 | ||
Python: 3.9 |
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 |
---|---|---|
|
@@ -14,4 +14,4 @@ os_type: linux | |
|
||
tags: | ||
OS: Ubuntu20.04 | ||
Python: 3.8 | ||
Python: 3.9 |