Aller au contenu

Dashboard sub-project creation#

This page shows the steps to create a Dashboard or Consumption sub-project.

  1. Create a git repository for the composant: in https://git.corp.caascad.com/caascad/dashboard/COMPOSANT

  2. Create the Dockerfile for the application in https://git.corp.caascad.com/caascad/dashboard/COMPOSANT

  3. put content in the application git repository, create a branch "develop" from "master"

  4. Create the Concourse ci pipeline template file for the application in https://git.corp.caascad.com/caascad/dashboard/dashboard-pipelines

create a new branch of the dashboard-pipeline git repository for the new project component.

This is the list of used branches of dashboard-pipeline git repository:

  • ci_consomation: consumption's and billing's pipelines configuration files
  • master: dashboard's pipelines configuration files to deploy on https://ci-infra.infra-prd.caascad.com
  • build_dev_branch: pipelines templates to build dev branches
  1. Create pipelines for the application on https://ci-infra.infra-stg.caascad.com/ (team deploy) and on https://ci-infra.infra-prd.caascad.com (team build)
  • We only use infra-prd but you can create on infra-stg if you need to do some tests.

  • pipeline on infra-prd has 2 groups: A. mr-build-release: Run automatically when there is a MR, it will build the branch master of the application git repository, 'll push the image on quay in the DEV organization with the hash of the commit as tag(for ocb-test0X) B. validate-tag: Run automatically when there is a tag, it will only retag the docker image to the internal organization.

The detail on how to create pipeline is described in this page

  1. The last step is to deploy the application, there are 2 ways to do it
  • Create a branch in envs-ng
  • Change the tag in the dashboard.cue file
  • Create a MR (automatically a pipeline "trackbone plan" will be executed)
  • If approuved, comment "trackbone apply" in the MR to deploy in the environnents
  • Merge

or

  • Clone the repo envs-ng
  • Change the tag in the dashboard.cue file
  • Use trackbone with your shell to deploy
    nix-shell
    trackbone apply -c dashboard -z {zone_cloud1} [-z {zone_cloud2} ...]