Skip to content

a-hassanin/bosh-google-cpi-release

 
 

Repository files navigation

BOSH Google CPI release

This is a BOSH release for the BOSH Google CPI.

Releases

Releases are available on bosh.io: https://bosh.io/releases/github.com/cloudfoundry-incubator/bosh-google-cpi-release?all=1. Please see CHANGELOG.md for details of each release.

Stemcell

Stemcells are available on bosh.io: http://bosh.io/stemcells/bosh-google-kvm-ubuntu-trusty-go_agent

Usage

If you are not familiar with BOSH and its terminology please take a look at the BOSH documentation.

Deploy a BOSH Director on Google Cloud Platform

BOSH Bootloader is the recommended way to deploy a BOSH director on GCP. Detailed instructions are available here.

Deploy other software

After you have followed the instructions for deploying a BOSH director in docs/bosh/README.md, you may deploy releases like Cloud Foundry or Concourse by following the links below:

Developing

Contributions to the CPI are welcome. Unit and integration tests for any new features are encouraged.

Running unit tests

There is a Makefile target for running unit tests on the Golang code for the CPI.

cd src/bosh-google-cpi
make test

Running integration tests

  1. Set your project:
export GOOGLE_PROJECT=your-project-id
export GOOGLE_JSON_KEY=your-file-location-of-gcp-json-key
export GOOGLE_APPLICATION_CREDENTIALS=your-file-location-of-gcp-json-key
  1. Create the infrastructure required to run tests:
make configint
  1. Run the integration tests:
make testint

To destroy the infrastructure required to run the integration tests, execute:

make cleanint

Running ERB job templates unit tests

The ERB templates rendered by the jobs of this Bosh Release have unit tests using Ruby. The required Ruby version is specified in .ruby-version as per convention with chruby or similar tools. A script will help you to install the correct Ruby version if necessary and run the ERB unit tests:

./scripts/test-unit-erb

Contributing

For detailes on how to contribute to this project - including filing bug reports and contributing code changes - pleasee see CONTRIBUTING.md.

Releases

No releases published

Packages

No packages published

Languages

  • Go 90.7%
  • Shell 5.5%
  • HCL 1.6%
  • Makefile 1.1%
  • Dockerfile 0.5%
  • HTML 0.4%
  • Ruby 0.2%