Configure the Organizations service with Moderne DX
In order for Moderne to obtain information about your organizational structure, you will need to configure the Moderne DX service to point to your Organizations service. This guide will explain how to do that.
Prerequisites
This guide assumes that:
You are an admin of Moderne DX
You have deployed Moderne DX in your environment
You have already created and deployed an Organizations service in your environment
You have already configured Moderne DX to connect to your Artifactory instance
Organizations service configuration
The following table contains all of the variables/arguments you need to add to your Moderne DX service run command in order for it to interact with your organizations service. Please note that these variables/arguments must be combined with ones found in other steps in the Configuring the Moderne DX service guide.
Variables:
MODERNE_DX_ORGANIZATION_URL
– The URL of your GraphQL service that provides organization information.MODERNE_DX_ORGANIZATION_UPDATE_INTERVAL_SECONDS
– (Optional) Specifies how often to request your organization information. Defaults to600
(10 minutes).MODERNE_DX_ORGANIZATION_SKIPSSL
– (Optional) Specifies whether or not to skip SSL validation for HTTP connections to this Organization service instance. This must be set totrue
if you use a self-signed SSL/TLS certificate. Defaults tofalse
.
Example:
Confirming it works
After starting up Moderne DX again, you can now make a curl call to https://<moderne-dx-url>/graphiql
with the following query:
Here's an example of what this call might look like:
If you run this immediately after startup, you may get no results. Once your index operation is completed, you will get results similar to the following:
Using Moderne DX with organizations
Once you've configured all of the above things, you can use the Moderne CLI (mod) and run the following commands:
This command will set your Moderne location to your internally-deployed Moderne DX installation:
This command will ask Moderne DX for all repositories inside the organization you selected and clone them to <path>
:
Once these are both done, your developers can now start running recipes and committing the results!
Last updated