all_images 0.3.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +19 -0
- data/Rakefile +2 -2
- data/all_images.gemspec +15 -27
- data/lib/all_images/app.rb +3 -2
- data/lib/all_images/config.rb +1 -2
- data/lib/all_images/version.rb +1 -1
- data/spec/app_spec.rb +7 -0
- data/spec/spec_helper.rb +1 -1
- metadata +9 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f1e9a30544cd8da8ff78b08273145dc8c43f30ee61aee97e035444c7eca98b1d
|
4
|
+
data.tar.gz: faba9ac223de4a106c77fd1dc943ab4933cde3b4a052c7411390e1b7335780d1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3a95b63a886db349cf62083638f4686a4adefa2e013da197b5ae016cac16fc3f967a35b679a47ba2a86bbecceb85181c7fd85c1411b442891945f2d91ecbe8d8
|
7
|
+
data.tar.gz: cfb5b0bf0a330623bfb37579f5606da2b2099511f31c7d28263dd249388856418d984d86f00889e1db2825b752ff30a74bf9de1dc90110b886220181ec92d458
|
data/LICENSE
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
Copyright Florian Frank
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
4
|
+
this software and associated documentation files (the “Software”), to deal in
|
5
|
+
the Software without restriction, including without limitation the rights to
|
6
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
7
|
+
of the Software, and to permit persons to whom the Software is furnished to do
|
8
|
+
so, subject to the following conditions:
|
9
|
+
|
10
|
+
The above copyright notice and this permission notice shall be included in all
|
11
|
+
copies or substantial portions of the Software.
|
12
|
+
|
13
|
+
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
14
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
15
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
16
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
17
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
18
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
19
|
+
SOFTWARE.
|
data/Rakefile
CHANGED
@@ -6,12 +6,12 @@ GemHadar do
|
|
6
6
|
name 'all_images'
|
7
7
|
author 'Florian Frank'
|
8
8
|
email 'flori@ping.de'
|
9
|
-
homepage "
|
9
|
+
homepage "https://github.com/flori/#{name}"
|
10
10
|
summary 'Runs a script in all of the docker images'
|
11
11
|
description 'A script that runs a script in all of the configured docker images'
|
12
12
|
test_dir 'spec'
|
13
13
|
ignore '.*.sw[pon]', 'pkg', 'Gemfile.lock', 'coverage',
|
14
|
-
'.AppleDouble', 'tags', '.
|
14
|
+
'.AppleDouble', 'tags', '.DS_Store'
|
15
15
|
readme 'README.md'
|
16
16
|
title "#{name.camelize} -- #{summary}"
|
17
17
|
package_ignore '.all_images.yml', '.gitignore', 'VERSION'
|
data/all_images.gemspec
CHANGED
@@ -1,45 +1,33 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
|
-
# stub: all_images 0.
|
2
|
+
# stub: all_images 0.4.1 ruby lib
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = "all_images".freeze
|
6
|
-
s.version = "0.
|
6
|
+
s.version = "0.4.1".freeze
|
7
7
|
|
8
8
|
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
|
9
9
|
s.require_paths = ["lib".freeze]
|
10
10
|
s.authors = ["Florian Frank".freeze]
|
11
|
-
s.date = "
|
11
|
+
s.date = "2024-08-08"
|
12
12
|
s.description = "A script that runs a script in all of the configured docker images".freeze
|
13
13
|
s.email = "flori@ping.de".freeze
|
14
14
|
s.executables = ["all_images".freeze]
|
15
15
|
s.extra_rdoc_files = ["README.md".freeze, "lib/all_images.rb".freeze, "lib/all_images/app.rb".freeze, "lib/all_images/config.rb".freeze, "lib/all_images/version.rb".freeze]
|
16
|
-
s.files = [".utilsrc".freeze, "Gemfile".freeze, "README.md".freeze, "Rakefile".freeze, "all_images.gemspec".freeze, "bin/all_images".freeze, "lib/all_images.rb".freeze, "lib/all_images/app.rb".freeze, "lib/all_images/config.rb".freeze, "lib/all_images/version.rb".freeze, "spec/spec_helper.rb".freeze]
|
17
|
-
s.homepage = "
|
16
|
+
s.files = [".utilsrc".freeze, "Gemfile".freeze, "LICENSE".freeze, "README.md".freeze, "Rakefile".freeze, "all_images.gemspec".freeze, "bin/all_images".freeze, "lib/all_images.rb".freeze, "lib/all_images/app.rb".freeze, "lib/all_images/config.rb".freeze, "lib/all_images/version.rb".freeze, "spec/app_spec.rb".freeze, "spec/spec_helper.rb".freeze]
|
17
|
+
s.homepage = "https://github.com/flori/all_images".freeze
|
18
18
|
s.licenses = ["MIT".freeze]
|
19
19
|
s.rdoc_options = ["--title".freeze, "AllImages -- Runs a script in all of the docker images".freeze, "--main".freeze, "README.md".freeze]
|
20
|
-
s.rubygems_version = "3.
|
20
|
+
s.rubygems_version = "3.5.16".freeze
|
21
21
|
s.summary = "Runs a script in all of the docker images".freeze
|
22
|
-
s.test_files = ["spec/spec_helper.rb".freeze]
|
22
|
+
s.test_files = ["spec/app_spec.rb".freeze, "spec/spec_helper.rb".freeze]
|
23
23
|
|
24
|
-
|
25
|
-
s.specification_version = 4
|
26
|
-
end
|
24
|
+
s.specification_version = 4
|
27
25
|
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
s.add_runtime_dependency(%q<term-ansicolor>.freeze, [">= 0"])
|
36
|
-
else
|
37
|
-
s.add_dependency(%q<gem_hadar>.freeze, ["~> 1.12.0"])
|
38
|
-
s.add_dependency(%q<rake>.freeze, [">= 0"])
|
39
|
-
s.add_dependency(%q<simplecov>.freeze, [">= 0"])
|
40
|
-
s.add_dependency(%q<rspec>.freeze, [">= 0"])
|
41
|
-
s.add_dependency(%q<debug>.freeze, [">= 0"])
|
42
|
-
s.add_dependency(%q<tins>.freeze, ["~> 1.0"])
|
43
|
-
s.add_dependency(%q<term-ansicolor>.freeze, [">= 0"])
|
44
|
-
end
|
26
|
+
s.add_development_dependency(%q<gem_hadar>.freeze, ["~> 1.16.1".freeze])
|
27
|
+
s.add_development_dependency(%q<rake>.freeze, [">= 0".freeze])
|
28
|
+
s.add_development_dependency(%q<simplecov>.freeze, [">= 0".freeze])
|
29
|
+
s.add_development_dependency(%q<rspec>.freeze, [">= 0".freeze])
|
30
|
+
s.add_development_dependency(%q<debug>.freeze, [">= 0".freeze])
|
31
|
+
s.add_runtime_dependency(%q<tins>.freeze, ["~> 1.0".freeze])
|
32
|
+
s.add_runtime_dependency(%q<term-ansicolor>.freeze, [">= 0".freeze])
|
45
33
|
end
|
data/lib/all_images/app.rb
CHANGED
@@ -46,12 +46,13 @@ class AllImages::App
|
|
46
46
|
def run_image(image, script, interactive: false)
|
47
47
|
dockerfile = @config.fetch('dockerfile').to_s
|
48
48
|
tag = provide_image image, dockerfile, script
|
49
|
+
term = ENV.key?('TERM') ? %{ -e TERM=#{ENV['TERM'].inspect} } : ' '
|
49
50
|
if interactive
|
50
51
|
puts "You can run /script interactively now."
|
51
|
-
sh "docker run --name all_images -it -v `pwd`:/work '#{tag}' sh"
|
52
|
+
sh "docker run --name all_images -it #{term}-v `pwd`:/work '#{tag}' sh"
|
52
53
|
return 0
|
53
54
|
else
|
54
|
-
if sh "docker run --name all_images -v `pwd`:/work '#{tag}' sh -c /script"
|
55
|
+
if sh "docker run --name all_images -it #{term}-v `pwd`:/work '#{tag}' sh -c /script"
|
55
56
|
puts green('SUCCESS')
|
56
57
|
return 0
|
57
58
|
else
|
data/lib/all_images/config.rb
CHANGED
@@ -19,11 +19,10 @@ module AllImages::Config
|
|
19
19
|
rake test
|
20
20
|
|
21
21
|
images:
|
22
|
+
ruby:3.3-alpine: *script
|
22
23
|
ruby:3.2-alpine: *script
|
23
24
|
ruby:3.1-alpine: *script
|
24
25
|
ruby:3.0-alpine: *script
|
25
|
-
ruby:2.7-alpine: *script
|
26
|
-
ruby:2.6-alpine: *script
|
27
26
|
end
|
28
27
|
|
29
28
|
def init(filename)
|
data/lib/all_images/version.rb
CHANGED
data/spec/app_spec.rb
ADDED
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: all_images
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Florian Frank
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-08-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gem_hadar
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.
|
19
|
+
version: 1.16.1
|
20
20
|
type: :development
|
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: 1.
|
26
|
+
version: 1.16.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -122,6 +122,7 @@ extra_rdoc_files:
|
|
122
122
|
files:
|
123
123
|
- ".utilsrc"
|
124
124
|
- Gemfile
|
125
|
+
- LICENSE
|
125
126
|
- README.md
|
126
127
|
- Rakefile
|
127
128
|
- all_images.gemspec
|
@@ -130,8 +131,9 @@ files:
|
|
130
131
|
- lib/all_images/app.rb
|
131
132
|
- lib/all_images/config.rb
|
132
133
|
- lib/all_images/version.rb
|
134
|
+
- spec/app_spec.rb
|
133
135
|
- spec/spec_helper.rb
|
134
|
-
homepage:
|
136
|
+
homepage: https://github.com/flori/all_images
|
135
137
|
licenses:
|
136
138
|
- MIT
|
137
139
|
metadata: {}
|
@@ -154,9 +156,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
154
156
|
- !ruby/object:Gem::Version
|
155
157
|
version: '0'
|
156
158
|
requirements: []
|
157
|
-
rubygems_version: 3.
|
159
|
+
rubygems_version: 3.5.16
|
158
160
|
signing_key:
|
159
161
|
specification_version: 4
|
160
162
|
summary: Runs a script in all of the docker images
|
161
163
|
test_files:
|
164
|
+
- spec/app_spec.rb
|
162
165
|
- spec/spec_helper.rb
|