Sha256: 719fec42fb1d6eaf80745773996f823d6a34ef5fb9c8e98c679a2f23038fdde7

Contents?: true

Size: 1.24 KB

Versions: 52

Compression:

Stored size: 1.24 KB

Contents

---
title: Builder Strategy
---

Kubes uses the `docker` command to build the docker image by default. Kubes can also support an additional builder: gcloud.

## Gcloud Builder

With the gcloud builder, you do not need docker installed locally. Google CloudBuild is used to build and push the image to a GCR registry.

You must set up the [gcloud cli](https://cloud.google.com/sdk/gcloud/reference/builds/submit).  Please refer to the [gcloud sdk install docs](https://cloud.google.com/sdk/install). Kubes will call out to `gcloud builds submit` to create the Docker image.

## Configure

You configure gcloud as the builder like so:

```ruby
Kubes.configure do |config|
  config.repo = "gcr.io/#{ENV['GOOGLE_PROJECT']}/demo"
  config.logger.level = "info"
  config.builder = "gcloud" # <= changed to gcloud
end
```

## Commands

The kubes builds command will remain the same.

    kubes docker build

There is no need to run the push command, as the build command with the gcloud builder will always push.

## Deploy

The deploy commands remain the same. Example:

    kubes deploy web

If you want to skip the `docker build` phase of the deploy, you can run:

    kubes deploy web --no-build

Also, kubes apply another way to skip the docker build:

    kubes apply web

Version data entries

52 entries across 52 versions & 1 rubygems

Version Path
kubes-0.9.3 docs/_docs/config/builder.md
kubes-0.9.2 docs/_docs/config/builder.md
kubes-0.9.1 docs/_docs/config/builder.md
kubes-0.9.0 docs/_docs/config/builder.md
kubes-0.8.10 docs/_docs/config/builder.md
kubes-0.8.9 docs/_docs/config/builder.md
kubes-0.8.8 docs/_docs/config/builder.md
kubes-0.8.7 docs/_docs/config/builder.md
kubes-0.8.6 docs/_docs/config/builder.md
kubes-0.8.5 docs/_docs/config/builder.md
kubes-0.8.4 docs/_docs/config/builder.md
kubes-0.8.3 docs/_docs/config/builder.md
kubes-0.8.2 docs/_docs/config/builder.md
kubes-0.8.1 docs/_docs/config/builder.md
kubes-0.8.0 docs/_docs/config/builder.md
kubes-0.7.10 docs/_docs/config/builder.md
kubes-0.7.9 docs/_docs/config/builder.md
kubes-0.7.8 docs/_docs/config/builder.md
kubes-0.7.7 docs/_docs/config/builder.md
kubes-0.7.6 docs/_docs/config/builder.md