GithubHelp home page GithubHelp logo

fnaranjo-vmw / csb-brokerpak-gcp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cloudfoundry/csb-brokerpak-gcp

0.0 0.0 0.0 80.06 MB

License: Apache License 2.0

Shell 5.32% JavaScript 0.74% Go 78.56% Makefile 3.76% HCL 11.61%

csb-brokerpak-gcp's Introduction

csb-brokerpak-gcp

A brokerpak for the Cloud Service Broker that provides support for GCP services.

Development Requirements

  • Either Go 1.18 or Docker
  • make - covers development lifecycle steps

A docker container for the cloud service broker binary is available at cfplatformeng/csb

GCP account information

To provision services, the brokerpak currently requires GCP credentials. The brokerpak expects them in environment variables:

  • GOOGLE_CREDENTIALS
  • GOOGLE_PROJECT

Development Tools

A Makefile supports the full local development lifecycle for the brokerpak.

The make targets can be run either with Docker or installing the required libraries in the local OS.

Available make targets can be listed by running make.

Running with docker

  1. Install Docker
  2. If you don't have Go installed, the makefile will automatically use Docker. If you do have go installed but still want to use docker, then set the USE_GO_CONTAINERS to true.

Make targets will run with the cfplatformeng/csb docker image. Alternatively, a custom image can be specified by setting the CSB environment variable.

Running with Go

  1. Make sure you have the right Go version installed (see go.mod file).
  2. Make sure USE_GO_CONTAINERS environment variable is NOT set.

The make targets will build the source using the local go installation.

Other targets

There is a make target to push the broker and brokerpak into a CloudFoundry foundation. It will be necessary to manually configure a few items for the broker to work.

  • make push-broker will cf push the broker into CloudFoundry. Requires the cf cli to be installed.
  • make run-integration-tests will test the brokerpak with the latest version of CSB

The broker gets pushed into CloudFoundry as cloud-service-broker-gcp It will be necessary to bind a MySQL database to the broker to provide broker state storage. See GCP Installation docs for more info.

Broker

The version of Cloud Service Broker to use with this brokerpak is encoded in the go.mod file. The make targets will use this version by default.

Tests

Example tests

Services definitions declare examples for each plan they provide. Those examples are then run through the whole cycle of provision, bind, unbind, and delete when running

terminal 1
>> make run

terminal 2
>> make run-examples

Acceptance tests

See acceptance tests

csb-brokerpak-gcp's People

Contributors

dependabot[bot] avatar servicesenablement avatar blgm avatar felisiam avatar zucchinidev avatar erniebilling avatar pivotal-marcela-campo avatar jimbo459 avatar svennela-pivotal avatar tinygrasshopper avatar jhvhs avatar svennela avatar christopherclark avatar rkoster avatar samcolson4 avatar fnaranjo-vmw 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.