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.
-
In the navigation pane, click Environments.
-
Click the name of an Environment.
-
On the Overview tab, you can modify the description or visibility.
-
Click Edit Definition to define the Dockerfile and supporting scripts and settings for the Environment. Each time you save changes, the Environment’s revision increments by one and your Domino deployment rebuilds the Environment and pushes it to the local Docker registry.
-
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.