kubes 0.2.5 → 0.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/docs/_docs/config/{build-strategy.md → builder.md} +7 -7
- data/docs/_includes/sidebar.html +1 -1
- data/lib/kubes/config.rb +1 -1
- data/lib/kubes/docker.rb +1 -1
- data/lib/kubes/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 38315c41de75e3132ebd72d88227c7b2dfd5051e62beaebba937081bd04bf87a
|
4
|
+
data.tar.gz: 1e5ad418c423fee55f4b735a446b20835fc2256699d00ed58b162390526e1610
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 74e34ea429c1acfa0b642c99b83ea6f7d5889f0539fb905c329380d9f31f116241401ec5af16445694b6507d205b5c3f17d6e099086b9208a68afc835396c01e
|
7
|
+
data.tar.gz: 200b3bec023fec1caf42d418449533035b1f05ecf069770800a90538c93ca344e755701ef35883956512383710fcb1668893ecf9ea2f2e5e148ba0c4fd9fff13
|
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,9 @@
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
This project *loosely tries* to adhere to [Semantic Versioning](http://semver.org/), even before v1.0.
|
5
5
|
|
6
|
+
## [0.2.6]
|
7
|
+
- #18 gcloud builder. change to config.builder
|
8
|
+
|
6
9
|
## [0.2.5]
|
7
10
|
- #17 cloudbuild build strategy
|
8
11
|
|
@@ -1,24 +1,24 @@
|
|
1
1
|
---
|
2
|
-
title:
|
2
|
+
title: Builder Strategy
|
3
3
|
---
|
4
4
|
|
5
|
-
Kubes uses the `docker` to build the docker image by default. Kubes can also support an additional
|
5
|
+
Kubes uses the `docker` command to build the docker image by default. Kubes can also support an additional builder: gcloud.
|
6
6
|
|
7
|
-
## Gcloud
|
7
|
+
## Gcloud Builder
|
8
8
|
|
9
|
-
With the gcloud
|
9
|
+
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.
|
10
10
|
|
11
11
|
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.
|
12
12
|
|
13
13
|
## Configure
|
14
14
|
|
15
|
-
You configure gcloud as the
|
15
|
+
You configure gcloud as the builder like so:
|
16
16
|
|
17
17
|
```ruby
|
18
18
|
Kubes.configure do |config|
|
19
19
|
config.repo = "gcr.io/#{ENV['GOOGLE_PROJECT']}/demo"
|
20
20
|
config.logger.level = "info"
|
21
|
-
config.
|
21
|
+
config.builder = "gcloud" # <= changed to gcloud
|
22
22
|
end
|
23
23
|
```
|
24
24
|
|
@@ -28,7 +28,7 @@ The kubes builds command will remain the same.
|
|
28
28
|
|
29
29
|
kubes docker build
|
30
30
|
|
31
|
-
There is no need to run the push command, as the build command with the gcloud
|
31
|
+
There is no need to run the push command, as the build command with the gcloud builder will always push.
|
32
32
|
|
33
33
|
## Deploy
|
34
34
|
|
data/docs/_includes/sidebar.html
CHANGED
@@ -56,7 +56,7 @@
|
|
56
56
|
<li><a href="{% link _docs/config/docker.md %}">Docker</a></li>
|
57
57
|
<li><a href="{% link _docs/config/env.md %}">Env</a></li>
|
58
58
|
<li><a href="{% link _docs/config/kubectl.md %}">Kubectl</a></li>
|
59
|
-
<li><a href="{% link _docs/config/
|
59
|
+
<li><a href="{% link _docs/config/builder.md %}">Builder</a></li>
|
60
60
|
</ul>
|
61
61
|
</li>
|
62
62
|
<li><a href="{% link _docs/yaml.md %}">YAML</a></li>
|
data/lib/kubes/config.rb
CHANGED
data/lib/kubes/docker.rb
CHANGED
@@ -11,7 +11,7 @@ module Kubes
|
|
11
11
|
end
|
12
12
|
|
13
13
|
def strategy_class
|
14
|
-
strategy = Kubes.config.
|
14
|
+
strategy = Kubes.config.builder.to_s.camelize # IE: Docker or Gcloud
|
15
15
|
klass_name = "Kubes::Docker::Strategy::#{@name.camelize}::#{strategy}"
|
16
16
|
klass_name.constantize
|
17
17
|
end
|
data/lib/kubes/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kubes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tung Nguyen
|
@@ -235,7 +235,7 @@ files:
|
|
235
235
|
- docs/_docs/auto-context.md
|
236
236
|
- docs/_docs/ci/cloudbuild.md
|
237
237
|
- docs/_docs/config.md
|
238
|
-
- docs/_docs/config/
|
238
|
+
- docs/_docs/config/builder.md
|
239
239
|
- docs/_docs/config/docker.md
|
240
240
|
- docs/_docs/config/env.md
|
241
241
|
- docs/_docs/config/kubectl.md
|