GoogleCloudPlatform/cloud-builders-community

Name: cloud-builders-community

Owner: Google Cloud Platform

Description: Community-contributed images for Google Cloud Container Builder

Created: 2017-10-24 13:49:44.0

Updated: 2018-05-21 23:04:27.0

Pushed: 2018-05-22 15:37:47.0

Homepage: https://cloud.google.com/container-builder/

Size: 158

Language: Shell

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Google Cloud Container Builder community images

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.

How to use a community-contributed build step

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.

Before you begin
  1. Select or create a Google Cloud project.
  2. Enable billing for your project.
  3. Enable the Container Builder 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:

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

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

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

    loud container images list --filter packer
    
Use the build step with Container Builder build

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.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:

License

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

Support

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.