Skip to content

Latest commit

 

History

History
53 lines (34 loc) · 2.01 KB

README.md

File metadata and controls

53 lines (34 loc) · 2.01 KB

Google Cloud Container Builder community images

This repository contains source code for community-contributed builders used with the Google Cloud Container Builder API.

These are not official Google products.

How to use

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.

Example: using the packer 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.

Contributing

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.

License

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.