This repository contains source code for community-contributed Docker images. You can use these images as build steps for Google Cloud Container Builder.
These are not official Google products.
Google Container Builder executes a build as a series of build steps. Each build step is run in a Docker container. See the Container Builder documentation for more details about builds and build steps.
- Select or create a Google Cloud project.
 - Enable billing for your project.
 - Enable the Container Builder API.
 - Install and initialize the Cloud SDK.
 
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:
- 
Clone the
cloud-builders-communityrepo:$ git clone https://github.com/GoogleCloudPlatform/cloud-builders-community
 - 
Go to the directory that has the source code for the
packerDocker image:$ cd cloud-builders-community/packer - 
Build the Docker image:
$ gcloud container builds submit --config cloudbuild.yaml . - 
View the image in Google Container Registry:
$ gcloud container images list --filter packer
 
Once you've built the Docker image, you can use it as a build step in a Container Builder build.
For example, below is the packer build step in a YAML
config file, ready to be used in a Container Builder build:
- name: 'gcr.io/$PROJECT_ID/packer'
  args:
  - build
  - -var
  - project_id=$PROJECT_ID
  - packer.jsonEach build step's examples directory has an example of how you can use the build step. See the
example for the packer builder.
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.
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 thegcr.io/cloud-buildersregistry. - include a simple sanity test in the 
cloudbuild.yamlconfig 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.
 
This source code is licensed under Apache 2.0. Full license text is available in LICENSE.
- File issues here in GitHub about the community build steps.
 - Email 
[email protected]if you have questions about build steps or Google Cloud Container Builder.