kplay 0.4.2 → 0.4.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/kplay.gemspec +6 -6
- data/lib/kplay/config.rb +1 -0
- data/lib/kplay/pod.rb +13 -2
- data/lib/kplay/version.rb +1 -1
- metadata +20 -21
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 53910f55f7866149ac49ba24929c0910426acc650110ca8af0dc5bdcdab8579f
|
4
|
+
data.tar.gz: 29e33b1b25d5d9b2b29dd1e3ff6a24b9ef69b86fb25dd09f0ca43f6167aa86a7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bfb686244d9a400d308912bed2e345b107e86245ea837814b1e62485c2e311823944edea710cabf2f628f789671f691b081f0f8a5aeee6ed23eb315c0b9bcdba
|
7
|
+
data.tar.gz: ab33ebcdbe5ed11a0579252f7a6e9f875ce62a1150a59345da467beb51cc84b8afd1ae05aae14a55c435b3d399868de5f32623a7a3aaa885c01ced338ff29065
|
data/kplay.gemspec
CHANGED
@@ -30,11 +30,11 @@ Gem::Specification.new do |spec|
|
|
30
30
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
31
31
|
spec.require_paths = ['lib']
|
32
32
|
|
33
|
-
spec.add_dependency 'thor', '~>
|
34
|
-
spec.add_dependency 'rainbow', '~> 3.
|
33
|
+
spec.add_dependency 'thor' , '~> 1.2'
|
34
|
+
spec.add_dependency 'rainbow' , '~> 3.1'
|
35
35
|
|
36
|
-
spec.add_development_dependency 'bundler', '~>
|
37
|
-
spec.add_development_dependency 'rake', '~>
|
38
|
-
spec.add_development_dependency 'rspec', '~> 3.
|
39
|
-
spec.add_development_dependency 'pry', '~> 0.11'
|
36
|
+
spec.add_development_dependency 'bundler', '~> 2.4'
|
37
|
+
spec.add_development_dependency 'rake' , '~> 13.0'
|
38
|
+
spec.add_development_dependency 'rspec', '~> 3.12'
|
39
|
+
spec.add_development_dependency 'pry' # , '~> 0.11'
|
40
40
|
end
|
data/lib/kplay/config.rb
CHANGED
data/lib/kplay/pod.rb
CHANGED
@@ -7,6 +7,9 @@ module Kplay
|
|
7
7
|
# Pod represents a pod associated with a folder on a host machine
|
8
8
|
#
|
9
9
|
class Pod
|
10
|
+
DEFAULT_SHM_VOLUME_NAME = "pod-shm-volume"
|
11
|
+
DEFAULT_SHM_VOLUME_PATH = "/dev/shm"
|
12
|
+
|
10
13
|
attr_reader :name, :config, :volume_name, :path_host, :path_vm, :mount_path, :options
|
11
14
|
|
12
15
|
# Creates a Pod from a path on host
|
@@ -54,6 +57,7 @@ module Kplay
|
|
54
57
|
],
|
55
58
|
'volumeMounts' => [
|
56
59
|
{ 'mountPath' => config[:mount_path], 'name' => volume_name },
|
60
|
+
{ 'mountPath' => DEFAULT_SHM_VOLUME_PATH, 'name' => DEFAULT_SHM_VOLUME_NAME },
|
57
61
|
# <-- ssh forwarding socket should be mounted a CONTAINER here
|
58
62
|
]
|
59
63
|
}
|
@@ -62,6 +66,13 @@ module Kplay
|
|
62
66
|
{
|
63
67
|
'name' => volume_name,
|
64
68
|
'hostPath' => { 'path' => path_vm.to_s }
|
69
|
+
},
|
70
|
+
{
|
71
|
+
'name' => DEFAULT_SHM_VOLUME_NAME,
|
72
|
+
'emptyDir' => {
|
73
|
+
'medium' => 'Memory',
|
74
|
+
'sizeLimit' => config[:shm_size]
|
75
|
+
}
|
65
76
|
}
|
66
77
|
# <-- ssh forwarding socket in VM mounted here
|
67
78
|
]
|
@@ -100,7 +111,7 @@ module Kplay
|
|
100
111
|
#
|
101
112
|
def stop!
|
102
113
|
Kplay.sh(
|
103
|
-
['kubectl', 'delete', 'pod', name, "--grace-period=#{config[:stop_grace_period]}"
|
114
|
+
['kubectl', 'delete', 'pod', name, "--grace-period=#{config[:stop_grace_period]}"],
|
104
115
|
echo: options[:verbose]
|
105
116
|
)
|
106
117
|
end
|
@@ -109,7 +120,7 @@ module Kplay
|
|
109
120
|
#
|
110
121
|
def shell
|
111
122
|
Kplay.sh(
|
112
|
-
['kubectl', 'exec', name, '
|
123
|
+
['kubectl', 'exec', '-ti', name, '--', config[:shell], *config[:shell_args]],
|
113
124
|
tty: true,
|
114
125
|
echo: options[:verbose]
|
115
126
|
)
|
data/lib/kplay/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kplay
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alex Kukushkin
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-10-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -16,84 +16,84 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '1.2'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '1.2'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rainbow
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '3.
|
33
|
+
version: '3.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: '3.
|
40
|
+
version: '3.1'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: bundler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '2.4'
|
48
48
|
type: :development
|
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: '
|
54
|
+
version: '2.4'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rake
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
61
|
+
version: '13.0'
|
62
62
|
type: :development
|
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: '
|
68
|
+
version: '13.0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rspec
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '3.
|
75
|
+
version: '3.12'
|
76
76
|
type: :development
|
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: '3.
|
82
|
+
version: '3.12'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: pry
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- - "
|
87
|
+
- - ">="
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: '0
|
89
|
+
version: '0'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- - "
|
94
|
+
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: '0
|
96
|
+
version: '0'
|
97
97
|
description: A tool to start a container in minikube and mount your project folder
|
98
98
|
into it
|
99
99
|
email:
|
@@ -129,7 +129,7 @@ licenses:
|
|
129
129
|
- MIT
|
130
130
|
metadata:
|
131
131
|
allowed_push_host: https://rubygems.org
|
132
|
-
post_install_message:
|
132
|
+
post_install_message:
|
133
133
|
rdoc_options: []
|
134
134
|
require_paths:
|
135
135
|
- lib
|
@@ -144,9 +144,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
144
144
|
- !ruby/object:Gem::Version
|
145
145
|
version: '0'
|
146
146
|
requirements: []
|
147
|
-
|
148
|
-
|
149
|
-
signing_key:
|
147
|
+
rubygems_version: 3.4.10
|
148
|
+
signing_key:
|
150
149
|
specification_version: 4
|
151
150
|
summary: Starts your project within a container in minikube
|
152
151
|
test_files: []
|