Add Custom Environment
Package additional dependencies for a NeMo Curator pipeline in a container image.
The repository Dockerfile creates a Python environment with dependencies selected by its build arguments. Build it from the source revision you plan to use, then add system or Python packages your pipeline needs. Follow the image build procedure and check the Dockerfile for its defaults.
Before You Start
Before you create the image, complete these tasks:
- Review the pipeline concepts and diagrams.
- Build a base image from the NeMo Curator Dockerfile or choose another suitable image.
- Create custom code if your environment supports a new module.
How to Add Dependencies with a Dockerfile
Create a Dockerfile that adds system or Python packages to the base image.
Define Build Steps
Use these steps to create and build the image:
-
Create an
environmentsdirectory anywhere on your system to organize your custom pipeline stage environments. -
Create a new folder for your environment, for example:
my-env/. -
Create a
Dockerfilethat installs your environment’s dependencies on top ofnemo-curator:local.
Build the Image
Build and tag the image from the directory containing the Dockerfile:
Next Steps
Use the image in a custom code pipeline.