starkandwayne/cdc-pipeline

Name: cdc-pipeline

Owner: Stark & Wayne

Description: Concourse Deploy Concourse example files

Created: 2015-10-16 16:04:42.0

Updated: 2016-01-19 07:26:01.0

Pushed: 2015-10-17 02:00:25.0

Homepage: null

Size: 144

Language: Shell

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

CDC Pipeline

In our environment we have a Concourse pipeline that we are deploying via another Concourse pipeline. These two Concourses must be identical in every way other than their IP ranges and should be self-updating.

Note that the example files in this repository are for a basic Concourse configuration that uses a deployment key and is in a vSphere environment.

Setup

To play around with this example you will need:

How to Create and Add a Deployment Key (in Github)
  1. Generate the deployment key using ssh-keygen, e.g. ssh-keygen -t rsa -b 4096. Name your key (e.g. deploy-key), do not specify a password.
  2. Add the public deployment key to Github by going to the deployment repository -> Settings -> Deploy keys.
  3. If you have a Mac, you can copy the key using pbcopy: cat deploy-key.pub | pbcopy
  4. Add the private deployment key to the credentials.yml file under pipeline-private-key.
  5. cat deploy-key | pbcopy
  6. Keep the | as this allows you to supply a multiline value for pipeline-private-key.
How to Make the Manifests

Before creating/updating the manifests, please ensure that you:

In order to make the manifests run the following from the cdc-pipeline directory:

n/make-manifests

Please be mindful that this was done for vSphere

Currently this example is using vSphere manifests in environment. Please be mindful that you may need to make additional changes to your concourse manifests if you are using a different environment, e.g. AWS. We are planning to add templates for other environments at a later time.

How to Deploy the Pipeline

Before creating/deploying the pipelines, please ensure that you:

No other changes should be needed.

In order to deploy the pipelines run the following from the cdc-pipeline directory:

n/deploy-pipelines

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.