gengo / cookbook-bazel

Chef cookbook to install/configure Bazel

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bazel Cookbook

Installs/Configures Bazel

Build Status

Usage

bazel::default Recipe

Just include bazel in your node's run_list:

{
  "name":"my_node",
  "run_list": [
    "recipe[bazel]"
  ]
}

Custom Resources

bazel_installation('bazel') do
  version '0.3.0'
  action :create
end

Requirements

chef

Chef 12.5+

cookbooks

  • build-essential
  • java
  • poise-python
  • zip
  • apt
  • homebrew

Attributes

bazel::default

Key Type Description Default
['bazel']['version'] String Bazel version to install 0.3.0
['bazel']['prefix'] String installation prefix /usr/local
['bazel']['installation_method'] String how to install Bazel package

Valid values for installation_method are:

script : Installs Bazel with an installer script package : Installs Bazel with a package management system in the package homebrew : More specifically than package, installs Bazel with homebrew apt : More specifically than package, installs Bazel with apt

Recipes

bazel::bazel

Installs Bazel and its minimal dependencies

bazel::default

Installs other recommended tools in addition to bazel::bazel.

Resources

bazel_installation

Automatically selects a right installation method and installs Bazel.

Example
bazel_installation('bazel') do
  version '0.3.0'
  action :create
end
Properties
  • version - Bazel version to install

bazel_installation_package

Automatcially selects a right package management system and installs Bazel with it.

Example
bazel_installation_package('bazel') do
  version '0.3.0'
  action :create
end
Properties
  • version - Bazel version to install

bazel_installation_homebrew

Installs bazel with homebrew

bazel_installation_apt

Installs bazel with apt

bazel_installation_script

Installs bazel with an installer scirpt.

Example
bazel_installation_script('bazel') do
  version '0.3.0'
  action :create
end
Properties
  • version - Verion of Bazel to install
  • prefix - installation prefix
  • installer_uri - URI to the installer
  • installer_checksum - SHA256 sum of the installer

Contributing

  1. Fork the repository on Github
  2. Create a named feature branch (like add_component_x)
  3. Write chefspec for the feature (if applicable)
  4. Write your change
  5. Write serverspec for the feature (if applicable)
  6. Run the tests, ensuring they all pass
  7. Submit a Pull Request using Github

License and Authors

Copyright 2016 Gengo Inc.

BSD 3-Clause license

About

Chef cookbook to install/configure Bazel

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Ruby 95.2%Language:Python 3.6%Language:Java 0.7%Language:C++ 0.4%