Installs/Configures Bazel
Just include bazel
in your node's run_list
:
{
"name":"my_node",
"run_list": [
"recipe[bazel]"
]
}
bazel_installation('bazel') do
version '0.3.0'
action :create
end
Chef 12.5+
- build-essential
- java
- poise-python
- zip
- apt
- homebrew
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
Installs Bazel and its minimal dependencies
Installs other recommended tools in addition to bazel::bazel
.
Automatically selects a right installation method and installs Bazel.
bazel_installation('bazel') do
version '0.3.0'
action :create
end
version
- Bazel version to install
Automatcially selects a right package management system and installs Bazel with it.
bazel_installation_package('bazel') do
version '0.3.0'
action :create
end
version
- Bazel version to install
Installs bazel with homebrew
Installs bazel with apt
Installs bazel with an installer scirpt.
bazel_installation_script('bazel') do
version '0.3.0'
action :create
end
version
- Verion of Bazel to installprefix
- installation prefixinstaller_uri
- URI to the installerinstaller_checksum
- SHA256 sum of the installer
- Fork the repository on Github
- Create a named feature branch (like
add_component_x
) - Write chefspec for the feature (if applicable)
- Write your change
- Write serverspec for the feature (if applicable)
- Run the tests, ensuring they all pass
- Submit a Pull Request using Github
Copyright 2016 Gengo Inc.
BSD 3-Clause license