Skip to content
Community-contributed images for Google Cloud Build
Branch: master
Clone or download
Latest commit 4393281 Mar 19, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Add issue template and link to updated support docs Feb 1, 2019
android Merge pull request #175 from RamzyHassan-VG/addingFirebasetestLab Feb 24, 2019
ansible
awscli update clone step Jan 25, 2019
boot GCB rebrand. Jul 24, 2018
bq GCB rebrand. Jul 24, 2018
buildah `gcloud container builds` --> `gcloud builds`. Jul 24, 2018
cache -P instead of -C for tar Feb 26, 2019
cargo `gcloud container builds` --> `gcloud builds`. Jul 24, 2018
cft Add the commands to assign DM Editor role to Cloud Build SA Nov 27, 2018
compodoc Implemented updates per comments from PR Feb 25, 2019
composer Update composer builder README.md Aug 24, 2018
container-diff `gcloud container builds` --> `gcloud builds`. Jul 24, 2018
cron-helper GCB rebrand. Jul 24, 2018
dataflow-python GCB rebrand. Jul 24, 2018
dep adding test to validate dep with PROJECT_ROOT Mar 15, 2019
docker-compose Updated docs for GCB rename. Jul 24, 2018
envsubst Fix log statement Feb 25, 2019
fastlane Use Ruby 2.6 and fix up gem iinstall Jan 25, 2019
firebase
flutter update-gcloud-calls Dec 26, 2018
fsharp
glide `gcloud container builds` --> `gcloud builds`. Jul 24, 2018
google-closure-compiler `gcloud container builds` --> `gcloud builds`. Jul 24, 2018
helm bump helm version to 2.12.2 Jan 31, 2019
hub GCB rebrand. Jul 24, 2018
hugo Update hugo to 0.49 Oct 9, 2018
inspec Remove the sed -i extension due to Mac specific Jan 25, 2019
jfrog Updated builder image to a pre-built docker image Sep 29, 2018
jmeter removed Images section from example per PR comment Nov 27, 2018
jsonnet `gcloud container builds` --> `gcloud builds`. Jul 24, 2018
kaniko Add kaniko example (#140) Nov 21, 2018
kubectl_wait_for_job GKE rebrand (#86) Jul 26, 2018
kustomize remove the added wget, not curl Jan 29, 2019
make `gcloud container builds` --> `gcloud builds`. Jul 24, 2018
makisu Add makisu example (#139) Nov 21, 2018
mortar mortar: kontena mortar support Jan 29, 2019
ng chore: add angular cli cloud builders Oct 22, 2018
nix-build Add nix-build builder (#138) Nov 21, 2018
npm-jasmine-node
packer Provide instructions for building the builder Mar 14, 2019
protoc Merge pull request #133 from jackwootton/patch-1 Nov 21, 2018
pylint
remote-builder `gcloud container builds` --> `gcloud builds`. Jul 24, 2018
rocker `gcloud container builds` --> `gcloud builds`. Jul 24, 2018
s2i Update README.md Mar 13, 2019
scala-sbt scala sbt version 1.2.8 update Jan 31, 2019
skaffold `gcloud container builds` --> `gcloud builds`. Jul 24, 2018
slackbot Minimal docker image for slackbot Feb 12, 2019
sonarqube compodoc builder and minor dockerfile cleanup for Sonarqube builder Feb 22, 2019
swift Delete .DS_Store Feb 26, 2019
tar Updates Android builder to be more encapsulated, configurable and com… Nov 6, 2018
terraform update terraform version to 0.11.13 Mar 13, 2019
terragrunt add maintainer to docker 2nd stage Mar 6, 2019
traceroute remove example dir and move example to cloudbuild.yaml Nov 26, 2018
windows-builder Minor fixes to windows-builder Nov 11, 2018
yarn-puppeteer Add tests for all supported node versions and update node versions Nov 7, 2018
CONTRIBUTING.md
LICENSE
README.md
cloudbuild.yaml `gcloud container builds` --> `gcloud builds`. Jul 24, 2018

README.md

Google Cloud Build community images

This repository contains source code for community-contributed Docker images. You can use these images as build steps for Google Cloud Build.

These are not official Google products.

How to use a community-contributed build step

Google Cloud Build executes a build as a series of build steps. Each build step is run in a Docker container. See the Cloud Build documentation for more details about builds and build steps.

Before you begin

  1. Select or create a Google Cloud project.
  2. Enable billing for your project.
  3. Enable the Cloud Build API.
  4. Install and initialize the Cloud SDK.

Build the build step from source

To use a community-contributed Docker image as a build step, you need to download the source code from this repo and build the image.

The example below shows how to download and build the image for the packer build step on a Linux or Mac OS X workstation:

  1. Clone the cloud-builders-community repo:

    $ git clone https://github.com/GoogleCloudPlatform/cloud-builders-community
  2. Go to the directory that has the source code for the packer Docker image:

    $ cd cloud-builders-community/packer
  3. Build the Docker image:

    $ gcloud builds submit --config cloudbuild.yaml .
    
  4. View the image in Google Container Registry:

    $ gcloud container images list --filter packer

Use the build step with Cloud Build build

Once you've built the Docker image, you can use it as a build step in a Cloud Build build.

For example, below is the packer build step in a YAML config file, ready to be used in a Cloud Build build:

- name: 'gcr.io/$PROJECT_ID/packer'
  args:
  - build
  - -var
  - project_id=$PROJECT_ID
  - packer.json

Each build step's examples directory has an example of how you can use the build step. See the example for the packer builder.

Contributing

We welcome contributions! See CONTRIBUTING for more information on how to get started. Please include a cloudbuild.yaml and at least one working example in your pull request.

Contribution Requirements

In order to accept your contribution, it must:

  • make clear that the builder image is pushed to the builder's project's registry. E.g., it specifies images: ['gcr.io/$PROJECT_ID/the-tool']. The builder will not be pushed to the gcr.io/cloud-builders registry.
  • include a simple sanity test in the cloudbuild.yaml config that builds and pushes the image. This can be as simple as invoking the tool with --help, and it ensures the tool is installed correctly and in the expected location within the image.
  • include some basic example describing how to use it. This helps new users get acquainted with the builder, and helps us ensure the builder continues to work as intended.

License

This source code is licensed under Apache 2.0. Full license text is available in LICENSE.

Support

To file issues and feature requests against these builder images, the usage of these build steps or the Cloud Build API in general, create an issue in this repo.

If you are experiencing an issue with the Cloud Build service or have a feature request, e-mail google-cloud-dev@googlegroups.com or see our Getting support documentation.

You can’t perform that action at this time.