You can change the behavior and/or content of an Environment by editing the Dockerfile instructions.
Scripts in an Environment are executed in the following order:
-
Pre Setup scripts
-
requirements.txt
-
Post Setup scripts
-
Pre Run scripts
-
Post Run scripts (after the Workspace/Job/App has been stopped)
You can modify an Environment by editing its Dockerfile instructions.
-
If you just created an Environment and want to edit the Dockerfile instructions to customize the Environment, click Customize before Building.
-
If you want to edit an existing Environment, click Environments in the navigation pane and click the name of an Environment.
-
On the Overview tab, you can modify the description or visibility.
-
In Dockerfile Instructions, enter your Dockerfile layers. See Docker’s official site. You can also view the Dockerfile best practices.
-
In Pluggable Workspace Tools, enter the interactive tools needed by any project that uses this Environment. See Add Workspace IDEs.
-
In the Run Setup Scripts section, you can enter bash code that is executed at runtime. Domino executes these commands at runtime and runs them as root.
-
In Pre Run Script, enter commands to execute after the Python packages in your project’s
requirements.txt
are installed. -
In Post Run Script, enter commands to execute after your Workspace/Job/App is stopped.
-
-
In the Environment variables section, set the Variable Names and their Values.
-
Click Advanced if you want to enter bash code that is executed at a specified step in your experiment’s lifecycle.
-
In Pre Setup Script, enter commands to execute before the Python packages in your project’s
requirements.txt
are installed. -
In Post Setup Script, enter commands to execute after the Python packages in the
requirements.txt
of your project are installed.
-
-
In Revision History, enter a short description about the changes to the Environment.
-
Click Build.