Skip to content

Instantly share code, notes, and snippets.

@Nanthini10
Created June 3, 2021 02:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Nanthini10/87e4d80eacd44d20fcadc56d87c89303 to your computer and use it in GitHub Desktop.
Save Nanthini10/87e4d80eacd44d20fcadc56d87c89303 to your computer and use it in GitHub Desktop.
RAPIDS env using custom Docker Image on Azure ML
from azureml.core import Environment
environment_name = "rapids"
env = Environment(environment_name)
env.docker.enabled = True
env.docker.base_image = None
env.docker.base_dockerfile = """
FROM rapidsai/rapidsai:0.19-cuda11.0-runtime-ubuntu18.04-py3.8
RUN apt-get update && \
apt-get install -y fuse && \
apt-get install -y build-essential && \
apt-get install -y python3-dev && \
source activate rapids && \
pip install azureml-defaults && \
pip install azureml-interpret && \
pip install interpret-community==0.18 && \
pip install azureml-telemetry
"""
env.python.user_managed_dependencies = True
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment