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
This commit is contained in:
Родитель
c7e3e6820d
Коммит
3ae6492140
|
@ -0,0 +1,6 @@
|
|||
name: component
|
||||
version: auto
|
||||
type: environment
|
||||
spec: spec.yaml
|
||||
extra_config: environment.yaml
|
||||
categories: ["Designer", "Python"]
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
|
@ -14,4 +14,4 @@ os_type: linux
|
|||
|
||||
tags:
|
||||
OS: Ubuntu20.04
|
||||
Python: 3.8
|
||||
Python: 3.9
|
||||
|
|
|
@ -14,4 +14,4 @@ os_type: linux
|
|||
|
||||
tags:
|
||||
OS: Ubuntu20.04
|
||||
Python: 3.8
|
||||
Python: 3.9
|
||||
|
|
Загрузка…
Ссылка в новой задаче