From 079555391571451189a638a358cc1eb3fcc62fd9 Mon Sep 17 00:00:00 2001 From: Lingzhe Zhao <43722188+LingzheZhao@users.noreply.github.com> Date: Sat, 1 Jul 2023 00:05:27 +0800 Subject: [PATCH] Update Custom_Containerized_Environment --- Custom_Containerized_Environment.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Custom_Containerized_Environment.md b/Custom_Containerized_Environment.md index 1bd8eaa..d9b299f 100644 --- a/Custom_Containerized_Environment.md +++ b/Custom_Containerized_Environment.md @@ -7,8 +7,12 @@ with Docker and Harbor For beginners, it is recommended that custom images use one of the Determined AI's official images as a base image, using the `FROM` instruction. +## Example + Here is an example: Suppose you have `environment.yaml` for creating the `conda` environment, `pip_requirements.txt` for `pip` requirements and some `apt` packages that need to be installed. +> Before proceeding to build your custom Docker image, you need to [install Docker](https://docs.docker.com/engine/install/), or you can choose the *easier* way: build it on the **login-node**. + Put these files in a folder, and create a `Dockerfile` with the following contents: ```Dockerfile