kuber_kit 1.3.7 → 1.3.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/example/services/docker_app.rb +15 -8
- data/kuber_kit.gemspec +4 -4
- data/lib/kuber_kit/actions/service_deployer.rb +2 -1
- data/lib/kuber_kit/container.rb +3 -3
- data/lib/kuber_kit/core/dependencies/abstract_dependency_resolver.rb +1 -1
- data/lib/kuber_kit/version.rb +2 -2
- data/lib/kuber_kit.rb +6 -5
- metadata +14 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 82d3a7715e81124b24caa5a0b095cf95a7d63ef772b1ef35d4bfd9426ef1ba10
|
4
|
+
data.tar.gz: 87d68c04b28ae040b33a937e4a9ca5758d9f0fd33e75e1ff431cbea740da3ab1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3afae648ec1e52f4d789009f4d4a909f4008bc5abbdbe889d2df2b7920e52563cd826dd89827a58933a61540650b6681f4d5454a04500a11235c2156e6e40c3e
|
7
|
+
data.tar.gz: cafd4a6ca768f02aec7242494f5064b86aec8a4b55bca3583d2303d918a4d105b17c18379f8ab2e789fb41c9c63fa096c7651112bdf73b2efdcfe8a21c6c46bd
|
data/CHANGELOG.md
CHANGED
@@ -2,12 +2,19 @@ KuberKit
|
|
2
2
|
.define_service(:docker_app)
|
3
3
|
.images(:ruby_app)
|
4
4
|
.deployer_strategy(:docker)
|
5
|
-
.attributes
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
5
|
+
.attributes do
|
6
|
+
artifact_store = KuberKit::Core::Artifacts::ArtifactStore.new
|
7
|
+
artifact = artifact_store.get(:kuber_kit_repo)
|
8
|
+
root_path = artifact.cloned_path
|
9
|
+
|
10
|
+
{
|
11
|
+
deployer: {
|
12
|
+
detached: false,
|
13
|
+
container_name: "test_docker_app",
|
14
|
+
image_name: :ruby_app,
|
15
|
+
networks: ["test_network"],
|
16
|
+
volumes: ["#{root_path}:/app"],
|
17
|
+
delete_if_exists: true
|
18
|
+
}
|
12
19
|
}
|
13
|
-
|
20
|
+
end
|
data/kuber_kit.gemspec
CHANGED
@@ -27,10 +27,10 @@ Gem::Specification.new do |spec|
|
|
27
27
|
|
28
28
|
spec.add_dependency "contracts", '0.17.0'
|
29
29
|
|
30
|
-
spec.add_dependency "dry-auto_inject", "~> 0.
|
31
|
-
spec.add_dependency "dry-core", "~> 0.
|
32
|
-
spec.add_dependency "dry-configurable", "~> 0.
|
33
|
-
spec.add_dependency "dry-container", "~> 0.
|
30
|
+
spec.add_dependency "dry-auto_inject", "~> 1.0.1"
|
31
|
+
spec.add_dependency "dry-core", "~> 1.0.0"
|
32
|
+
spec.add_dependency "dry-configurable", "~> 1.0.1"
|
33
|
+
spec.add_dependency "dry-container", "~> 0.11.0"
|
34
34
|
|
35
35
|
spec.add_dependency "thor"
|
36
36
|
spec.add_dependency "cli-ui", '2.1.0'
|
@@ -89,9 +89,10 @@ class KuberKit::Actions::ServiceDeployer
|
|
89
89
|
initializers.map(&:to_sym).each_slice(configs.deploy_simultaneous_limit) do |batch_service_names|
|
90
90
|
deploy_simultaneously(batch_service_names, deployment_result)
|
91
91
|
end
|
92
|
+
service_names -= initializers
|
92
93
|
end
|
93
94
|
|
94
|
-
# Next, deploy all requested services.
|
95
|
+
# Next, deploy all requested services, except initializers.
|
95
96
|
service_names.each_slice(configs.deploy_simultaneous_limit) do |batch_service_names|
|
96
97
|
deploy_simultaneously(batch_service_names, deployment_result)
|
97
98
|
end
|
data/lib/kuber_kit/container.rb
CHANGED
@@ -76,7 +76,7 @@ class KuberKit::Container
|
|
76
76
|
register "core.image_factory" do
|
77
77
|
KuberKit::Core::ImageFactory.new
|
78
78
|
end
|
79
|
-
|
79
|
+
|
80
80
|
register "core.image_definition_factory" do
|
81
81
|
KuberKit::Core::ImageDefinitionFactory.new
|
82
82
|
end
|
@@ -88,7 +88,7 @@ class KuberKit::Container
|
|
88
88
|
register "core.service_factory" do
|
89
89
|
KuberKit::Core::ServiceFactory.new
|
90
90
|
end
|
91
|
-
|
91
|
+
|
92
92
|
register "core.service_definition_factory" do
|
93
93
|
KuberKit::Core::ServiceDefinitionFactory.new
|
94
94
|
end
|
@@ -356,4 +356,4 @@ class KuberKit::Container
|
|
356
356
|
KuberKit::UI::Interactive.new
|
357
357
|
end
|
358
358
|
end
|
359
|
-
end
|
359
|
+
end
|
@@ -54,7 +54,7 @@ class KuberKit::Core::Dependencies::AbstractDependencyResolver
|
|
54
54
|
Contract Or[Symbol, ArrayOf[Symbol]] => Any
|
55
55
|
def get_all_deps(item_names)
|
56
56
|
deps = Array(item_names).map { |i| get_recursive_deps(i) }.flatten
|
57
|
-
deps.uniq
|
57
|
+
deps.uniq
|
58
58
|
end
|
59
59
|
|
60
60
|
def get_recursive_deps(item_name, dependency_tree: [])
|
data/lib/kuber_kit/version.rb
CHANGED
@@ -1,3 +1,3 @@
|
|
1
1
|
module KuberKit
|
2
|
-
VERSION = "1.3.
|
3
|
-
end
|
2
|
+
VERSION = "1.3.9"
|
3
|
+
end
|
data/lib/kuber_kit.rb
CHANGED
@@ -2,6 +2,7 @@ require "kuber_kit/version"
|
|
2
2
|
require 'ostruct'
|
3
3
|
require 'contracts'
|
4
4
|
require 'dry-auto_inject'
|
5
|
+
require 'dry/container'
|
5
6
|
require 'kuber_kit/extensions/colored_string'
|
6
7
|
require 'kuber_kit/extensions/contracts'
|
7
8
|
require 'kuber_kit/extensions/tty_prompt'
|
@@ -12,7 +13,7 @@ module KuberKit
|
|
12
13
|
Error = Class.new(StandardError)
|
13
14
|
NotImplementedError = Class.new(Error)
|
14
15
|
NotFoundError = Class.new(Error)
|
15
|
-
|
16
|
+
|
16
17
|
module Core
|
17
18
|
autoload :ArtifactPath, 'core/artifact_path'
|
18
19
|
autoload :ArtifactPathResolver, 'core/artifact_path_resolver'
|
@@ -251,11 +252,11 @@ module KuberKit
|
|
251
252
|
class << self
|
252
253
|
def define_image(image_name)
|
253
254
|
image_path = caller[0].split(':').first
|
254
|
-
|
255
|
+
|
255
256
|
Container["core.image_store"].define(image_name, image_path.split('image.rb').first)
|
256
257
|
end
|
257
258
|
|
258
|
-
def define_service(service_name)
|
259
|
+
def define_service(service_name)
|
259
260
|
Container["core.service_store"].define(service_name)
|
260
261
|
end
|
261
262
|
|
@@ -271,7 +272,7 @@ module KuberKit
|
|
271
272
|
def set_ui_mode(value)
|
272
273
|
@ui_mode = value
|
273
274
|
end
|
274
|
-
|
275
|
+
|
275
276
|
def ui_mode
|
276
277
|
@ui_mode
|
277
278
|
end
|
@@ -336,4 +337,4 @@ end
|
|
336
337
|
|
337
338
|
KuberKit::Defaults.init
|
338
339
|
|
339
|
-
require 'kuber_kit/extensions/indocker_compat'
|
340
|
+
require 'kuber_kit/extensions/indocker_compat'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kuber_kit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Iskander Khaziev
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-01-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: contracts
|
@@ -30,56 +30,56 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.
|
33
|
+
version: 1.0.1
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.
|
40
|
+
version: 1.0.1
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: dry-core
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 0.
|
47
|
+
version: 1.0.0
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 0.
|
54
|
+
version: 1.0.0
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: dry-configurable
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 0.
|
61
|
+
version: 1.0.1
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 0.
|
68
|
+
version: 1.0.1
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: dry-container
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 0.
|
75
|
+
version: 0.11.0
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 0.
|
82
|
+
version: 0.11.0
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: thor
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -394,7 +394,7 @@ homepage: https://github.com/ArtStation/kuber_kit
|
|
394
394
|
licenses:
|
395
395
|
- MIT
|
396
396
|
metadata: {}
|
397
|
-
post_install_message:
|
397
|
+
post_install_message:
|
398
398
|
rdoc_options: []
|
399
399
|
require_paths:
|
400
400
|
- lib
|
@@ -409,8 +409,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
409
409
|
- !ruby/object:Gem::Version
|
410
410
|
version: '0'
|
411
411
|
requirements: []
|
412
|
-
rubygems_version: 3.4.
|
413
|
-
signing_key:
|
412
|
+
rubygems_version: 3.4.1
|
413
|
+
signing_key:
|
414
414
|
specification_version: 4
|
415
415
|
summary: Docker Containers Build & Deployment
|
416
416
|
test_files: []
|