kuber_kit 0.3.6 → 0.3.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/kuber_kit/actions/kubectl_logs.rb +1 -1
- data/lib/kuber_kit/service_deployer/strategies/docker.rb +6 -1
- data/lib/kuber_kit/service_deployer/strategies/docker_compose.rb +3 -2
- data/lib/kuber_kit/shell/commands/docker_commands.rb +2 -1
- data/lib/kuber_kit/shell/commands/docker_compose_commands.rb +9 -4
- data/lib/kuber_kit/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e15ac135b8fd4fab45aee2797f1aa6c836e299e40175e6c518761af7d7557587
|
4
|
+
data.tar.gz: a998aa67c2389dad43604b610471f9b196456dffb100926d25e3acbf6782494f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ac0c29ae11579f2431f8fc7972027b8551866d96cc212d4117eddfb91694d7680a73f0d6d867f955746475e404cd6136b8d4ad228e5489366df7f881cbba92be
|
7
|
+
data.tar.gz: d29aaa6aa028eef516f91a8f9081fd4a9d32c5c9f850755c7bea8583240c9b3bf2636dc2bab745fa778062c2a45334fc043d49d69d10963c574be4f26fc66044
|
data/Gemfile.lock
CHANGED
@@ -36,6 +36,11 @@ class KuberKit::ServiceDeployer::Strategies::Docker < KuberKit::ServiceDeployer:
|
|
36
36
|
docker_commands.delete_container(shell, container_name)
|
37
37
|
end
|
38
38
|
|
39
|
-
docker_commands.run(
|
39
|
+
docker_commands.run(
|
40
|
+
shell, image.remote_registry_url,
|
41
|
+
run_args: docker_run_args,
|
42
|
+
run_command: docker_run_command,
|
43
|
+
detached: !!strategy_options[:detached]
|
44
|
+
)
|
40
45
|
end
|
41
46
|
end
|
@@ -26,8 +26,9 @@ class KuberKit::ServiceDeployer::Strategies::DockerCompose < KuberKit::ServiceDe
|
|
26
26
|
command_name = strategy_options.fetch(:command_name, "bash")
|
27
27
|
|
28
28
|
docker_compose_commands.run(shell, config_path,
|
29
|
-
service:
|
30
|
-
command:
|
29
|
+
service: service_name,
|
30
|
+
command: command_name,
|
31
|
+
detached: !!strategy_options[:detached]
|
31
32
|
)
|
32
33
|
end
|
33
34
|
end
|
@@ -14,9 +14,10 @@ class KuberKit::Shell::Commands::DockerCommands
|
|
14
14
|
shell.exec!(%Q{docker push #{tag_name}})
|
15
15
|
end
|
16
16
|
|
17
|
-
def run(shell, image_name, run_args: nil, run_command: nil)
|
17
|
+
def run(shell, image_name, run_args: nil, run_command: nil, detached: false)
|
18
18
|
command_parts = []
|
19
19
|
command_parts << "docker run"
|
20
|
+
command_parts << "-d" if detached
|
20
21
|
command_parts << run_args if run_args
|
21
22
|
command_parts << image_name
|
22
23
|
command_parts << run_command if run_command
|
@@ -1,13 +1,18 @@
|
|
1
1
|
class KuberKit::Shell::Commands::DockerComposeCommands
|
2
|
-
def run(shell, path, service:, command:, interactive: false)
|
2
|
+
def run(shell, path, service:, command:, interactive: false, detached: false)
|
3
3
|
command_parts = [
|
4
4
|
"docker-compose",
|
5
|
-
"-f #{path}",
|
6
5
|
"run",
|
7
|
-
|
8
|
-
command
|
6
|
+
"-f #{path}",
|
9
7
|
]
|
10
8
|
|
9
|
+
if detached
|
10
|
+
command_parts << "-d"
|
11
|
+
end
|
12
|
+
|
13
|
+
command_parts << service
|
14
|
+
command_parts << command
|
15
|
+
|
11
16
|
if interactive
|
12
17
|
shell.interactive!(command_parts.join(" "))
|
13
18
|
else
|
data/lib/kuber_kit/version.rb
CHANGED
metadata
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kuber_kit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Iskander Khaziev
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
date: 2021-01-07 00:00:00.000000000 Z
|
@@ -293,7 +293,7 @@ homepage: https://github.com/ArtStation/kuber_kit
|
|
293
293
|
licenses:
|
294
294
|
- MIT
|
295
295
|
metadata: {}
|
296
|
-
post_install_message:
|
296
|
+
post_install_message:
|
297
297
|
rdoc_options: []
|
298
298
|
require_paths:
|
299
299
|
- lib
|
@@ -308,8 +308,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
308
308
|
- !ruby/object:Gem::Version
|
309
309
|
version: '0'
|
310
310
|
requirements: []
|
311
|
-
rubygems_version: 3.0.
|
312
|
-
signing_key:
|
311
|
+
rubygems_version: 3.0.8
|
312
|
+
signing_key:
|
313
313
|
specification_version: 4
|
314
314
|
summary: Docker Containers Build & Deployment
|
315
315
|
test_files: []
|