Skip to main content

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 TypeDescription
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

  1. Create an Artifact:
    • Navigate to the CDF section of Torus and create a new artifact.
  2. Draw the Diagram:
    • Use the drag-and-drop interface to add nodes and connectors for either the ENVD or IFD.
  3. Configure Nodes:
    • Use the "Property" panel to define settings such as server specifications, database settings, and environment variables.
  4. Save the Artifact:
    • Save the completed diagram as an artifact for future use.
NodeDescription
MongoDBA flexible, document-oriented database for scalable applications.
PostgresA powerful, open-source relational database system.
NestA progressive Node.js framework for building server-side applications.
GitHubA platform for version control and collaboration.
RedisAn in-memory data store used as a database, cache, and message broker.
EndMarks the termination point of a workflow.
HostRepresents a server instance for deployments.
StartIndicates the beginning of a workflow.
MinioAn object storage server compatible with Amazon S3.

Diagram Structure

StepAction
Start NodeRepresents the initiation of the deployment process.
Postgres NodeConnects from the "Start" node, deploying a PostgreSQL database.
Nest NodeConnects to "Postgres", representing the deployment of a Nest.js app.
Redis NodeConnects to "Nest", indicating Redis deployment.
GitHub NodeConnects separately from "Start", representing version control integration.
Minio NodeConnects from "GitHub", indicating Minio storage deployment.
End NodeConnects from "Redis" and "Minio", marking process completion.

Filling Node Properties (Example: Redis)

  1. Select the Redis node in your diagram.
  2. Open the "Node Properties" panel.
  3. 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.