- Click Customize before Building if you just created an Environment and want to enable tools, run scripts, or manage environment variables.
- To edit an existing Environment, go to Govern > Environments in the navigation pane and click the name of an Environment. Then click Edit Definition.
Order of script execution
Domino runs setup scripts before and after running therequirements.txt file. The scripts within an environment are executed in the following order:
- First, it executes pre-setup scripts.
-
Next, it installs packages from the
requirements.txtfile. - Then Domino runs post-setup and pre-run scripts.
- Post-run scripts are executed after your Workspace, Job, or App is stopped.
Define your environment
Before you add items to these scripts and therequirements.txt file, think about whether similar instructions should be included directly in the environment’s Dockerfile.
This can make it faster to start workspaces, jobs, and other tasks using the environment because the necessary work is already included in the Docker image.

Dockerfile instructions
Enter your Dockerfile layers. Some things to remember:-
Exclude the
FROMstatement. - Commands can be run as root or other user available in the base image.
- Docker can’t access your project files or user environment variables when building.
- There is a limit of 127 layers.
Pluggable workspace tools
Enter the interactive tools needed by any Project that uses this Environment. Add Workspace IDEs has more information about interactive tools.Run setup scripts
Enter thebash code that is executed at runtime. Domino executes these commands at runtime and runs them as root.
-
Pre Run Script: Enter commands to execute before the Python packages in your Project’s
requirements.txtare installed. - Post Run Script: Enter commands to execute after your Workspace/Job/App is stopped.
Environment variables
Set the Variable Names and their Values.Advanced
In the advanced section, enter thebash code executed at a specified step in your experiment’s lifecycle.
-
Pre Run Script: Enter commands to execute before installing Python packages in your Project’s
requirements.txt. -
Post Run Script: Enter commands to execute after the Python packages in your Project’s
requirements.txtare installed. - Enable VPN Networking: Select this if a VPN is to be used for that environment.
Revision History
Enter a short description of the changes to the Environment.Next steps
- Our Best Practices will guide you in setting up and maintaining your Domino environments.
- Use Domino’s environment variables to store keys and credentials or to inject values into your runs.
- Create a Domino Environment using an existing environment or start from a custom setup.
- Set default Environments establishes a starting point for all new projects or an environment for a specific project.