Compute Environment variables provide user, project, and hardware information. These are set at the environment level and used for new revisions.
Environment variables help configure how the system runs and manage secrets or settings across different areas.
There are two ways to navigate to your environment to add variables.
Option 1 - From your project:
-
Open your Project and click Settings.
-
Click Manage Environment > Edit Definition.
Option 2 - From Domino Overview:
-
Open Domino and click Govern > Environments.
-
From Environments Overview, scroll to locate your Environment.
-
Click the three dots and choose Edit Definition.
On the Edit Definition page, scroll down to the Environment variables section.
-
Click the plus icon and add the following:
-
Variable Name: Enter the variable name. For example, API_KEY.
-
Value: Enter a value for the variable. The maximum length for a value is 64K.
-
-
Declare the variable in the Dockerfile instructions with an ARG statement. Docker’s official site has more detailed information about Docker.
-
Click Build after entering new variables and updating the Dockerfile instruction.
-
Our Best Practices will guide you in setting up and maintaining your Domino environments.
-
Set up user environment variables for each user. The system injects these variables at execution time for any run initiated by that user.
-
Learn to create model variables to add, modify, or delete variables for your models.
-
The Default Domino Variables glossary contains details about variables automatically injected by Domino.