Continuous Deployment Fabric
The Continuous Deployment Fabric (CDF) in Torus is responsible for configuring servers and environments. It streamlines the deployment process by providing a visual interface for managing infrastructure. Similar to other Torus fabrics, CDF utilizes artifacts and diagrams to represent deployment configurations.
Artifact Types in CDF
| Artifact Type | Description |
|---|---|
| CDF - ENVD (Environment Diagram) | Represents different environments (e.g., development, staging, production) within the deployment pipeline. It also defines relationships and dependencies between these environments. |
| CDF - IFD (Infrastructure Diagram) | Details the underlying infrastructure required for your deployments. |
Procedure: Configuring Deployments
- Create an Artifact:
- Navigate to the CDF section of Torus and create a new artifact.
- Draw the Diagram:
- Use the drag-and-drop interface to add nodes and connectors for either the ENVD or IFD.
- Configure Nodes:
- Use the "Property" panel to define settings such as server specifications, database settings, and environment variables.
- Save the Artifact:
- Save the completed diagram as an artifact for future use.
CDF-ENVD - Node Gallery
| Node | Description |
|---|---|
| MongoDB | A flexible, document-oriented database for scalable applications. |
| Postgres | A powerful, open-source relational database system. |
| Nest | A progressive Node.js framework for building server-side applications. |
| GitHub | A platform for version control and collaboration. |
| Redis | An in-memory data store used as a database, cache, and message broker. |
| End | Marks the termination point of a workflow. |
| Host | Represents a server instance for deployments. |
| Start | Indicates the beginning of a workflow. |
| Minio | An object storage server compatible with Amazon S3. |
Diagram Structure
| Step | Action |
|---|---|
| Start Node | Represents the initiation of the deployment process. |
| Postgres Node | Connects from the "Start" node, deploying a PostgreSQL database. |
| Nest Node | Connects to "Postgres", representing the deployment of a Nest.js app. |
| Redis Node | Connects to "Nest", indicating Redis deployment. |
| GitHub Node | Connects separately from "Start", representing version control integration. |
| Minio Node | Connects from "GitHub", indicating Minio storage deployment. |
| End Node | Connects from "Redis" and "Minio", marking process completion. |
Filling Node Properties (Example: Redis)
- Select the Redis node in your diagram.
- Open the "Node Properties" panel.
- Enter the required configuration:
- REDIS HOST: Redis server hostname or IP address.
- REDIS PORT: Default Redis port (usually
6379). - REDIS USERNAME: Redis authentication username (if required).
- REDIS PASSWORD: Redis authentication password (if required).
Using in Build
- Save the ENVD artifact once all configurations are complete.
- During the build process, select the saved ENVD artifact.
- Torus CDF will automate deployment based on the artifact’s configuration.
Important Notes
- Ensure that all property values match your actual infrastructure.
- Fill in the required properties for each node.
- The Build process will interpret this diagram to create the infrastructure.
Orchestrator & Logic Center
- Orchestrator: NA
- Logic Center: NA
note
Always click "Save" after making any changes to ensure updates are stored successfully.