This repository contains source code for community-contributed builders used with the Google Cloud Container Builder API.
These are not official Google products.
First, select or create a project, enable billing, enable the Container Builder API, and install and initialize the Cloud SDK.
Then, download the source code and build your builder.
To use the packer
builder on a Linux or Mac OS X workstation:
$ git clone http://github.com/GoogleCloudPlatform/cloud-builders-community
$ cd cloud-builders-community/packer
$ gcloud container builds submit --config cloudbuild.yaml .
View the builder image in Google Container Registry:
$ gcloud container images list --filter packer
Use the builder in your project's cloudbuild.yaml
:
- name: 'gcr.io/$PROJECT_ID/packer'
args:
- build
- -var
- project_id=$PROJECT_ID
- packer.json
Examples of use are included in each tool's examples
directory. View a complete packer
example.
We welcome your contributions enthusiastically. 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.
This source code is licensed under Apache 2.0. Full license text is available in LICENSE.
File issues here or e-mail [email protected]
if you have questions about
the usage of these build steps or the Cloud Container Builder API in general.