Giter Site home page Giter Site logo

benjamintf1 / bosh-package-cf-cli-release Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cloudfoundry/bosh-package-cf-cli-release

0.0 0.0 0.0 46.89 MB

BOSH release of Cloud Foundry CLI

Home Page: https://github.com/cloudfoundry/cli

License: Apache License 2.0

Shell 65.12% Dockerfile 23.91% Makefile 10.98%

bosh-package-cf-cli-release's Introduction

cf-cli-release

This release allows a BOSH release author to install a specific *official version of the CF CLI binary in their deployment. The release currently comprises two major versions of the CLI: v7 (via the cf-cli-7-linux package) and v8 (via the cf-cli-8-linux package).

*official: the CF CLI binary is signed with a Cloud Foundry Foundation certificate, certifying that the source code has not been tampered with.

Consuming the release

To co-locate the Linux CF CLI BOSH job on your target VM, follow these steps:

  1. Add the cf-cli BOSH release to your deployment manifest.
  2. Colocate either the cf-cli-7-linux or cf-cli-8-linux BOSH job on the instance group you want to use the CF CLI binary on.
  3. Modify your BOSH job script that uses the cli to add the cf binary of your choice to the PATH.

Behind the scenes, the CF CLI binary is installed on the target machine at compile time via the cf-cli-7-linux or cf-cli-8-linux BOSH package (dependency of the cf-cli-(7 | 8)-linux BOSH job). The binary will be located at /var/vcap/packages/cf-cli-(7 | 8)-linux/bin/cf.

Warning

Before consuming the release, ensure you've removed all previous cf CLI from either your blobs or packages.

Development

  1. Open with VisualStudion Code
  2. By default .vars and .secrets located in .github folder. To use them please copy to the root of the project and update values. cp .github/.vars .github/.secrets .
  3. Update .secrets file with real API token.
    • echo "API_TOKEN: $(shepherd create service-account gha-shepherd --json | jq -r .secret)" >> .secrets
    • Local workflow dev runner act injects content of .vars and .secrets into workflow execution context.
  4. Open project inside the dev container.
  5. Run make run to start.

Deployment

  1. To upload variables and secrets to the default remote repo for the current branch. PROCEED WITH CARE use make repo-context-setup. This will overwrite remote vaules with local from .vars and .secrets

To test installation of the CF CLI binary via BOSH job co-location, run:

./tests/run.sh

This will create a deployment using your currently targeted BOSH Director.

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.