Giter Club home page Giter Club logo

analytics-platform-concourse-pipelines's Introduction

Concourse pipelines for components of the Analytical Platform

Usage

These pipeline configuration files are designed to be used with Concourse to deploy components of the MOJ Analytical Platform.

Setting a pipeline in Concourse is done using the fly CLI tool

Teams

We currently have two Concourse team:

  • admin with the pipelines to release Control Panel, update Helm repository, and update webapp pipelines from GH repositories
  • main with the pipelines to release users' webapps and the airflow pipeline

fly login

Example invocations of fly are listed alongside the documentation of each pipeline below. You will need to fly login to a Concourse server before you can set a pipeline, and on first login, you will name the "target", which is referred to as default in the examples. Eg:

Most of these pipelines are in the admin team, so an example login command would look like:

fly login -c https://concourse.services.alpha.mojanalytics.xyz -t alpha-admin -n admin

However, airflow pipeline is in main team so you'll have to login passing -n main:

fly login -c https://concourse.services.alpha.mojanalytics.xyz -t alpha-main -n main

NOTE: You can find the Concourse URL by getting its Kubernetes Ingress resource:

kubectl -n default get ingress -lapp=concourse-web

Values

Values can be passed to fly to interpolate into the pipeline YAML before setting the pipeline config in Concourse. These values are marked in the YAML as ((value-name)). If a value is not passed on the fly command line, the value will be looked up in the Kubernetes secrets in the Concourse team's namespace

Pipelines

The following pipeline configs are provided in this repo:

fly -t alpha-admin set-pipeline -p cpanel-api -c dev/cpanel-api.yaml

A pipeline for deploying the Control Panel API to the dev cluster.

fly -t alpha-admin set-pipeline -p cpanel-api -c alpha/cpanel-api.yaml

A pipeline for deploying the Control Panel API to the alpha cluster.

fly -t alpha-admin set-pipeline -p update-helm-repo -c alpha/update-helm-repo.yaml -v s3-bucket=moj-analytics-helm-repo -v aws-region=eu-west-1

A pipeline to keep our Helm repository up-to-date.

ValueDescription
s3-bucket The name of the S3 bucket where the Helm chart packages and index YAML file are stored. Usually moj-analytics-helm-repo.
aws-region The AWS region where the S3 bucket is hosted. This is usually eu-west-1.

NB The Data Engineering team are responsible for this pipeline

fly -t alpha-main set-pipeline -p airflow -c airflow.yaml -v repo=moj-analytical-services/airflow-dags

A pipeline to lint user contributed airflow DAGs in the environment specific repo.

ValueDescription
repo the url to the DAGs repo in the format owner/reponame/ usually moj-analytical-services/airflow-dags.

NOTE: This pipeline is in the main team so you'll have to login in that team to update it, see "fly login" section.

analytics-platform-concourse-pipelines's People

Contributors

andyhd avatar andylightfoot avatar calumabarnett avatar damacus avatar r4vi avatar s-block avatar tmpks avatar xoen avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.