CI Resources for cube-release
There are two ways to access our Concourse server:
- GitHub OAuth
To be able to login via Github you will need to be member of the cf-cube-ci/cube
team.
- LastPass
- LastPass account,
- install the LastPass CLI, and
- contact the cube development team to share the login with you.
After you got all these things, run the following to login via fly
:
fly -t <alias> login \
-c https://flintstone.ci.cf-app.com \
-u <user-name> \
-p $(lpass show "<key-name>" --password) \
--team-name <team-name>
- Access to private repo, which contains environment specific vars
- Install Aviator (used to merge pipeline YAML files)
-
export the
KUBECONFIG
environment variable and point it to corresponding kubernetes config file -
Execute the provided
./fly.sh
script as follows:
$ ./fly.sh <CONCOURSE-ALIAS> <eirini-ci|eirini-dev> <PATH-TO-PRIVATE-REPO>
This will use aviator to spruce the required pipeline.yml and fly the pipeline to your concourse target.
Further Prereqs
- Clone 1-click-pipeline to your local machine
- Make sure you have access to the Flintstone Softlayer account with rights to create VMs.
Fly
-
Create the director manifest as described in the 1-click-pipeline README.
-
Create the
eirini-full.yml
file using aviator:
$ ONE_CLICK=<path-to-1-click-pipeline> aviator -f aviator/eirini-full.yml
-
In the
eirini-private-config
repo you can find aeirini-full.yml
property file (located in theconcourse/env
dir). Copy the file and provide the necessary information. -
export the
KUBECONFIG
environment variable and point it to corresponding kubernetes config file -
Run fly as follows:
$ fly -t flintstone \
set-pipeline \
-p <PIPELINE-NAME> \
-c eirini-full.yml \
-v bosh-manifest="$(sed -e 's/((/_(_(/g' <PATH-TO-DIRECTOR-MANIFEST> )" \
-l <PATH-TO-VARS-FILE> \
-l <PATH-TO-COMMON-VARS-FILE> \
--var "kube_conf=$(kubectl config view --flatten)"