rake-compiler-dock 1.9.0 → 1.10.0
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
- checksums.yaml.gz.sig +0 -0
- data/.github/workflows/ci.yml +65 -71
- data/.github/workflows/publish-images.yml +73 -38
- data/.github/workflows/release-images.yml +71 -35
- data/{History.md → CHANGELOG.md} +25 -0
- data/CONTRIBUTING.md +44 -1
- data/Dockerfile.mri.erb +58 -18
- data/README.md +85 -5
- data/Rakefile +83 -39
- data/build/buildkitd.toml +2 -0
- data/build/gem_helper.rb +1 -1
- data/build/mk_musl_cross.sh +1 -1
- data/build/parallel_docker_build.rb +17 -13
- data/build/patches/rake-compiler-1.2.9/0004-Enable-build-of-static-libruby.patch +3 -1
- data/build/sudoers +1 -1
- data/lib/rake_compiler_dock/starter.rb +11 -1
- data/lib/rake_compiler_dock/version.rb +2 -2
- data/lib/rake_compiler_dock.rb +76 -1
- data/mingw64-ucrt/README.md +0 -44
- data/test/env/Dockerfile.alpine +1 -1
- data/test/fixtures/mig_test_rpc.defs +8 -0
- data/test/rcd_test/Rakefile +1 -0
- data/test/rcd_test/ext/mri/extconf.rb +2 -0
- data/test/rcd_test/rcd_test.gemspec +1 -1
- data/test/rcd_test/test/test_basic.rb +11 -0
- data/test/test_environment_variables.rb +15 -0
- data/test/test_mig.rb +18 -0
- data/test/test_starter.rb +6 -0
- data/test/test_versions.rb +82 -0
- data.tar.gz.sig +3 -0
- metadata +37 -7
- metadata.gz.sig +0 -0
- data/test/env/Dockerfile.centos +0 -24
data/lib/rake_compiler_dock.rb
CHANGED
|
@@ -73,5 +73,80 @@ module RakeCompilerDock
|
|
|
73
73
|
Starter.exec(*args, &block)
|
|
74
74
|
end
|
|
75
75
|
|
|
76
|
-
|
|
76
|
+
# Retrieve the cross-rubies that are available in the docker image. This can be used to construct
|
|
77
|
+
# a custom `RUBY_CC_VERSION` string that is valid.
|
|
78
|
+
#
|
|
79
|
+
# Returns a Hash<minor_version => corresponding_patch_version>
|
|
80
|
+
#
|
|
81
|
+
# For example:
|
|
82
|
+
#
|
|
83
|
+
# RakeCompilerDock.cross_rubies
|
|
84
|
+
# # => {
|
|
85
|
+
# # "3.4" => "3.4.5",
|
|
86
|
+
# # "3.3" => "3.3.9",
|
|
87
|
+
# # "3.2" => "3.2.9",
|
|
88
|
+
# # "3.1" => "3.1.7",
|
|
89
|
+
# # "3.0" => "3.0.7",
|
|
90
|
+
# # "2.7" => "2.7.8",
|
|
91
|
+
# # }
|
|
92
|
+
#
|
|
93
|
+
def cross_rubies
|
|
94
|
+
{
|
|
95
|
+
"3.4" => "3.4.5",
|
|
96
|
+
"3.3" => "3.3.9",
|
|
97
|
+
"3.2" => "3.2.9",
|
|
98
|
+
"3.1" => "3.1.7",
|
|
99
|
+
"3.0" => "3.0.7",
|
|
100
|
+
"2.7" => "2.7.8",
|
|
101
|
+
}
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
# Returns a valid RUBY_CC_VERSION string for the given requirements,
|
|
105
|
+
# where each `requirement` may be:
|
|
106
|
+
#
|
|
107
|
+
# - a String that matches the minor version exactly
|
|
108
|
+
# - a String that can be used as a Gem::Requirement constructor argument
|
|
109
|
+
# - a Gem::Requirement object
|
|
110
|
+
#
|
|
111
|
+
# Note that the returned string will contain versions sorted in descending order.
|
|
112
|
+
#
|
|
113
|
+
# For example:
|
|
114
|
+
# RakeCompilerDock.ruby_cc_version("2.7", "3.4")
|
|
115
|
+
# # => "3.4.5:2.7.8"
|
|
116
|
+
#
|
|
117
|
+
# RakeCompilerDock.ruby_cc_version("~> 3.2")
|
|
118
|
+
# # => "3.4.5:3.3.9:3.2.9"
|
|
119
|
+
#
|
|
120
|
+
# RakeCompilerDock.ruby_cc_version(Gem::Requirement.new("~> 3.2"))
|
|
121
|
+
# # => "3.4.5:3.3.9:3.2.9"
|
|
122
|
+
#
|
|
123
|
+
def ruby_cc_version(*requirements)
|
|
124
|
+
cross = cross_rubies
|
|
125
|
+
output = []
|
|
126
|
+
|
|
127
|
+
if requirements.empty?
|
|
128
|
+
output += cross.values
|
|
129
|
+
else
|
|
130
|
+
requirements.each do |requirement|
|
|
131
|
+
if cross[requirement]
|
|
132
|
+
output << cross[requirement]
|
|
133
|
+
else
|
|
134
|
+
requirement = Gem::Requirement.new(requirement) unless requirement.is_a?(Gem::Requirement)
|
|
135
|
+
versions = cross.values.find_all { |v| requirement.satisfied_by?(Gem::Version.new(v)) }
|
|
136
|
+
raise("No matching ruby version for requirement: #{requirement.inspect}") if versions.empty?
|
|
137
|
+
output += versions
|
|
138
|
+
end
|
|
139
|
+
end
|
|
140
|
+
end
|
|
141
|
+
|
|
142
|
+
output.uniq.sort.reverse.join(":")
|
|
143
|
+
end
|
|
144
|
+
|
|
145
|
+
# Set the environment variable `RUBY_CC_VERSION` to the value returned by `ruby_cc_version`,
|
|
146
|
+
# for the given requirements.
|
|
147
|
+
def set_ruby_cc_version(*requirements)
|
|
148
|
+
ENV["RUBY_CC_VERSION"] = ruby_cc_version(*requirements)
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
module_function :exec, :sh, :image_name, :cross_rubies, :ruby_cc_version, :set_ruby_cc_version
|
|
77
152
|
end
|
data/mingw64-ucrt/README.md
CHANGED
|
@@ -12,47 +12,3 @@ They are built by the following command:
|
|
|
12
12
|
```sh
|
|
13
13
|
docker buildx build . -t larskanis/mingw64-ucrt:20.04 --platform linux/arm64,linux/amd64 --push
|
|
14
14
|
```
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
Create builder instance for two architectures
|
|
18
|
-
------------------
|
|
19
|
-
|
|
20
|
-
Building with qemu emulation fails currently with a segfault, so that it must be built by a builder instance with at least one remote node for the other architecture.
|
|
21
|
-
Building on native hardware is also much faster (~30 minutes) than on qemu.
|
|
22
|
-
A two-nodes builder requires obviously a ARM and a Intel/AMD device.
|
|
23
|
-
It can be created like this:
|
|
24
|
-
|
|
25
|
-
```sh
|
|
26
|
-
# Make sure the remote instance can be connected
|
|
27
|
-
$ docker -H ssh://isa info
|
|
28
|
-
|
|
29
|
-
# Create a new builder with the local instance
|
|
30
|
-
$ docker buildx create --name isayoga
|
|
31
|
-
|
|
32
|
-
# Add the remote instance
|
|
33
|
-
$ docker buildx create --name isayoga --append ssh://isa
|
|
34
|
-
|
|
35
|
-
# They are inactive from the start
|
|
36
|
-
$ docker buildx ls
|
|
37
|
-
NAME/NODE DRIVER/ENDPOINT STATUS BUILDKIT PLATFORMS
|
|
38
|
-
isayoga docker-container
|
|
39
|
-
\_ isayoga0 \_ unix:///var/run/docker.sock inactive
|
|
40
|
-
\_ isayoga1 \_ ssh://isa inactive
|
|
41
|
-
default* docker
|
|
42
|
-
\_ default \_ default running v0.13.2 linux/arm64
|
|
43
|
-
|
|
44
|
-
# Bootstrap the instances
|
|
45
|
-
$ docker buildx inspect --bootstrap --builder isayoga
|
|
46
|
-
|
|
47
|
-
# Set the new builder as default
|
|
48
|
-
$ docker buildx use isayoga
|
|
49
|
-
|
|
50
|
-
# Now it should be default and in state "running"
|
|
51
|
-
$ docker buildx ls
|
|
52
|
-
NAME/NODE DRIVER/ENDPOINT STATUS BUILDKIT PLATFORMS
|
|
53
|
-
isayoga* docker-container
|
|
54
|
-
\_ isayoga0 \_ unix:///var/run/docker.sock running v0.18.2 linux/arm64
|
|
55
|
-
\_ isayoga1 \_ ssh://isa running v0.18.2 linux/amd64, linux/amd64/v2, linux/amd64/v3, linux/386
|
|
56
|
-
default docker
|
|
57
|
-
\_ default \_ default running v0.13.2 linux/arm64
|
|
58
|
-
```
|
data/test/env/Dockerfile.alpine
CHANGED
data/test/rcd_test/Rakefile
CHANGED
|
@@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
|
|
|
9
9
|
spec.summary = "C extension for testing rake-compiler-dock"
|
|
10
10
|
spec.description = "This gem has no real use other than testing builds of binary gems."
|
|
11
11
|
spec.homepage = "https://github.com/rake-compiler/rake-compiler-dock"
|
|
12
|
-
spec.required_ruby_version = ">= 2.
|
|
12
|
+
spec.required_ruby_version = ">= 2.7.0"
|
|
13
13
|
spec.license = "MIT"
|
|
14
14
|
|
|
15
15
|
spec.files = [
|
|
@@ -35,4 +35,15 @@ class TestBasic < Minitest::Test
|
|
|
35
35
|
is_linux = RUBY_PLATFORM.include?("linux")
|
|
36
36
|
assert_equal(is_linux, RcdTest.largefile_op_removed_from_musl)
|
|
37
37
|
end
|
|
38
|
+
|
|
39
|
+
def test_disabled_rpath
|
|
40
|
+
skip("jruby uses jar files without rpath") if RUBY_ENGINE == "jruby"
|
|
41
|
+
|
|
42
|
+
cext_fname = $LOADED_FEATURES.grep(/rcd_test_ext/).first
|
|
43
|
+
refute_nil(cext_fname, "the C-ext should be loaded")
|
|
44
|
+
cext_text = File.binread(cext_fname)
|
|
45
|
+
assert_match(/Init_rcd_test_ext/, cext_text, "C-ext shoud contain the init function")
|
|
46
|
+
refute_match(/usr\/local/, cext_text, "there should be no rpath to /usr/local/rake-compiler/ruby/x86_64-unknown-linux-musl/ruby-3.4.5/lib or so")
|
|
47
|
+
refute_match(/home\//, cext_text, "there should be no path to /home/ or so")
|
|
48
|
+
end
|
|
38
49
|
end
|
|
@@ -34,6 +34,8 @@ class TestEnvironmentVariables
|
|
|
34
34
|
df = File.read(File.expand_path("../../Dockerfile.mri.erb", __FILE__))
|
|
35
35
|
df =~ /^ENV RUBY_CC_VERSION=(.*)$/
|
|
36
36
|
assert_equal $1, rcd_env['RUBY_CC_VERSION']
|
|
37
|
+
|
|
38
|
+
assert_equal RakeCompilerDock.ruby_cc_version, rcd_env['RUBY_CC_VERSION']
|
|
37
39
|
end
|
|
38
40
|
|
|
39
41
|
def test_RAKE_EXTENSION_TASK_NO_NATIVE
|
|
@@ -83,6 +85,19 @@ class TestEnvironmentVariables
|
|
|
83
85
|
end
|
|
84
86
|
end
|
|
85
87
|
|
|
88
|
+
class UsingWrapperSpecifyingRuby < UsingWrapper
|
|
89
|
+
include Common
|
|
90
|
+
|
|
91
|
+
def invocation(command)
|
|
92
|
+
idir = File.join(File.dirname(__FILE__), '../lib')
|
|
93
|
+
"RCD_RUBY_VERSION=3.1.6 RCD_PLATFORM=#{TEST_PLATFORM} RCD_RUBYVM=#{IS_JRUBY ? 'jruby' : 'mri'} #{RbConfig::CONFIG['RUBY_INSTALL_NAME']} -I#{idir.inspect} bin/rake-compiler-dock bash -c '#{command}'"
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
def test_RUBY_VERSION
|
|
97
|
+
assert_equal "3.1.6", rcd_env['RBENV_VERSION']
|
|
98
|
+
end
|
|
99
|
+
end
|
|
100
|
+
|
|
86
101
|
class AsIfContinuousIntegration < Test::Unit::TestCase
|
|
87
102
|
include Common
|
|
88
103
|
|
data/test/test_mig.rb
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
require 'rake_compiler_dock'
|
|
2
|
+
require 'test/unit'
|
|
3
|
+
|
|
4
|
+
class TestMigCompile < Test::Unit::TestCase
|
|
5
|
+
TEST_PLATFORM = ENV["TEST_PLATFORM"] || 'arm64-darwin'
|
|
6
|
+
|
|
7
|
+
def test_mig_compile
|
|
8
|
+
omit "only on darwin platform" unless TEST_PLATFORM =~ /darwin/
|
|
9
|
+
|
|
10
|
+
RakeCompilerDock::Starter.sh "mig -header tmp/mig_test_rpc.h -user tmp/mig_test_rpc.c -sheader /dev/null -server /dev/null -I. test/fixtures/mig_test_rpc.defs ", platform: TEST_PLATFORM, verbose: false
|
|
11
|
+
|
|
12
|
+
h_file = File.read("tmp/mig_test_rpc.h")
|
|
13
|
+
assert_match /Request_mig_test_call/, h_file
|
|
14
|
+
|
|
15
|
+
c_file = File.read("tmp/mig_test_rpc.c")
|
|
16
|
+
assert_match /Reply__mig_test_call/, c_file
|
|
17
|
+
end
|
|
18
|
+
end
|
data/test/test_starter.rb
CHANGED
|
@@ -38,6 +38,12 @@ class TestStarter < Test::Unit::TestCase
|
|
|
38
38
|
with_env({"RAKE_COMPILER_DOCK_IMAGE" => "env-var-value"}) do
|
|
39
39
|
assert_equal("env-var-value", Starter.container_image_name)
|
|
40
40
|
end
|
|
41
|
+
with_env({"CONTAINER_REGISTRY" => "env-var-value"}) do
|
|
42
|
+
assert_match(/env-var-value\//, Starter.container_image_name(platform: "x64-mingw-ucrt"))
|
|
43
|
+
end
|
|
44
|
+
with_env({"RCD_IMAGE_VERSION" => "env-var-value"}) do
|
|
45
|
+
assert_match(/:env-var-value-/, Starter.container_image_name(platform: "x64-mingw-ucrt"))
|
|
46
|
+
end
|
|
41
47
|
|
|
42
48
|
# with image option
|
|
43
49
|
assert_equal("option-value", Starter.container_image_name({:image => "option-value"}))
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
require 'rake_compiler_dock'
|
|
2
|
+
require 'rbconfig'
|
|
3
|
+
require 'test/unit'
|
|
4
|
+
|
|
5
|
+
class TestVersions < Test::Unit::TestCase
|
|
6
|
+
def test_cross_rubies
|
|
7
|
+
cross = RakeCompilerDock.cross_rubies
|
|
8
|
+
assert_operator(cross, :is_a?, Hash)
|
|
9
|
+
cross.each do |minor, patch|
|
|
10
|
+
assert_match(/^\d+\.\d+$/, minor)
|
|
11
|
+
assert_match(/^\d+\.\d+\.\d+$/, patch)
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
def test_ruby_cc_versions_no_args
|
|
16
|
+
cross = RakeCompilerDock.cross_rubies
|
|
17
|
+
expected = cross.values.sort.reverse.join(":")
|
|
18
|
+
|
|
19
|
+
assert_equal(expected, RakeCompilerDock.ruby_cc_version)
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
def test_ruby_cc_versions_strings
|
|
23
|
+
cross = RakeCompilerDock.cross_rubies
|
|
24
|
+
|
|
25
|
+
expected = cross["3.4"]
|
|
26
|
+
assert_equal(expected, RakeCompilerDock.ruby_cc_version("3.4"))
|
|
27
|
+
|
|
28
|
+
expected = [cross["3.4"], cross["3.2"]].join(":")
|
|
29
|
+
assert_equal(expected, RakeCompilerDock.ruby_cc_version("3.4", "3.2"))
|
|
30
|
+
|
|
31
|
+
expected = [cross["3.4"], cross["3.2"]].join(":")
|
|
32
|
+
assert_equal(expected, RakeCompilerDock.ruby_cc_version("3.2", "3.4"))
|
|
33
|
+
|
|
34
|
+
assert_raises do
|
|
35
|
+
RakeCompilerDock.ruby_cc_version("9.8")
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
assert_raises do
|
|
39
|
+
RakeCompilerDock.ruby_cc_version("foo")
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
def test_ruby_cc_versions_requirements
|
|
44
|
+
cross = RakeCompilerDock.cross_rubies
|
|
45
|
+
|
|
46
|
+
expected = cross["3.4"]
|
|
47
|
+
assert_equal(expected, RakeCompilerDock.ruby_cc_version("~> 3.4"))
|
|
48
|
+
assert_equal(expected, RakeCompilerDock.ruby_cc_version(Gem::Requirement.new("~> 3.4")))
|
|
49
|
+
|
|
50
|
+
expected = [cross["3.4"], cross["3.3"], cross["3.2"]].join(":")
|
|
51
|
+
assert_equal(expected, RakeCompilerDock.ruby_cc_version("~> 3.2"))
|
|
52
|
+
assert_equal(expected, RakeCompilerDock.ruby_cc_version(Gem::Requirement.new("~> 3.2")))
|
|
53
|
+
|
|
54
|
+
expected = [cross["3.4"], cross["3.2"]].join(":")
|
|
55
|
+
assert_equal(expected, RakeCompilerDock.ruby_cc_version("~> 3.2.0", "~> 3.4.0"))
|
|
56
|
+
assert_equal(expected, RakeCompilerDock.ruby_cc_version(Gem::Requirement.new("~> 3.2.0"), Gem::Requirement.new("~> 3.4.0")))
|
|
57
|
+
|
|
58
|
+
expected = [cross["3.4"], cross["3.3"], cross["3.2"]].join(":")
|
|
59
|
+
assert_equal(expected, RakeCompilerDock.ruby_cc_version(">= 3.2"))
|
|
60
|
+
assert_equal(expected, RakeCompilerDock.ruby_cc_version(Gem::Requirement.new(">= 3.2")))
|
|
61
|
+
|
|
62
|
+
assert_raises do
|
|
63
|
+
RakeCompilerDock.ruby_cc_version(Gem::Requirement.new("> 9.8"))
|
|
64
|
+
end
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
def test_set_ruby_cc_versions
|
|
68
|
+
original_ruby_cc_versions = ENV["RUBY_CC_VERSION"]
|
|
69
|
+
cross = RakeCompilerDock.cross_rubies
|
|
70
|
+
|
|
71
|
+
RakeCompilerDock.set_ruby_cc_version(Gem::Requirement.new("~> 3.2.0"), Gem::Requirement.new("~> 3.4.0"))
|
|
72
|
+
assert_equal([cross["3.4"], cross["3.2"]].join(":"), ENV["RUBY_CC_VERSION"])
|
|
73
|
+
|
|
74
|
+
RakeCompilerDock.set_ruby_cc_version("~> 3.2.0", "~> 3.4.0")
|
|
75
|
+
assert_equal([cross["3.4"], cross["3.2"]].join(":"), ENV["RUBY_CC_VERSION"])
|
|
76
|
+
|
|
77
|
+
RakeCompilerDock.set_ruby_cc_version("~> 3.1")
|
|
78
|
+
assert_equal([cross["3.4"], cross["3.3"], cross["3.2"], cross["3.1"]].join(":"), ENV["RUBY_CC_VERSION"])
|
|
79
|
+
ensure
|
|
80
|
+
ENV["RUBY_CC_VERSION"] = original_ruby_cc_versions
|
|
81
|
+
end
|
|
82
|
+
end
|
data.tar.gz.sig
ADDED
metadata
CHANGED
|
@@ -1,13 +1,38 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rake-compiler-dock
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.10.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Lars Kanis
|
|
8
8
|
bindir: bin
|
|
9
|
-
cert_chain:
|
|
10
|
-
|
|
9
|
+
cert_chain:
|
|
10
|
+
- |
|
|
11
|
+
-----BEGIN CERTIFICATE-----
|
|
12
|
+
MIIEBDCCAmygAwIBAgIBAzANBgkqhkiG9w0BAQsFADAoMSYwJAYDVQQDDB1sYXJz
|
|
13
|
+
L0RDPWdyZWl6LXJlaW5zZG9yZi9EQz1kZTAeFw0yNDEyMjkxOTU2NTZaFw0yNTEy
|
|
14
|
+
MjkxOTU2NTZaMCgxJjAkBgNVBAMMHWxhcnMvREM9Z3JlaXotcmVpbnNkb3JmL0RD
|
|
15
|
+
PWRlMIIBojANBgkqhkiG9w0BAQEFAAOCAY8AMIIBigKCAYEAwum6Y1KznfpzXOT/
|
|
16
|
+
mZgJTBbxZuuZF49Fq3K0WA67YBzNlDv95qzSp7V/7Ek3NCcnT7G+2kSuhNo1FhdN
|
|
17
|
+
eSDO/moYebZNAcu3iqLsuzuULXPLuoU0GsMnVMqV9DZPh7cQHE5EBZ7hlzDBK7k/
|
|
18
|
+
8nBMvR0mHo77kIkapHc26UzVq/G0nKLfDsIHXVylto3PjzOumjG6GhmFN4r3cP6e
|
|
19
|
+
SDfl1FSeRYVpt4kmQULz/zdSaOH3AjAq7PM2Z91iGwQvoUXMANH2v89OWjQO/NHe
|
|
20
|
+
JMNDFsmHK/6Ji4Kk48Z3TyscHQnipAID5GhS1oD21/WePdj7GhmbF5gBzkV5uepd
|
|
21
|
+
eJQPgWGwrQW/Z2oPjRuJrRofzWfrMWqbOahj9uth6WSxhNexUtbjk6P8emmXOJi5
|
|
22
|
+
chQPnWX+N3Gj+jjYxqTFdwT7Mj3pv1VHa+aNUbqSPpvJeDyxRIuo9hvzDaBHb/Cg
|
|
23
|
+
9qRVcm8a96n4t7y2lrX1oookY6bkBaxWOMtWlqIprq8JZXM9AgMBAAGjOTA3MAkG
|
|
24
|
+
A1UdEwQCMAAwCwYDVR0PBAQDAgSwMB0GA1UdDgQWBBQ4h1tIyvdUWtMI739xMzTR
|
|
25
|
+
7EfMFzANBgkqhkiG9w0BAQsFAAOCAYEAoZZWzNV2XXaoSmvyamSSN+Wt/Ia+DNrU
|
|
26
|
+
2pc3kMEqykH6l1WiVPszr6HavQ//2I2UcSRSS5AGDdiSXcfyFmHtMBdtJHhTPcn7
|
|
27
|
+
4DLliB0szpvwG+ltGD8PI8eWkLaTQeFzs+0QCTavgKV+Zw56Q0J5zZvHHUMrLkUD
|
|
28
|
+
qhwKjdTdkrRTn9Sqi0BrIRRZGTUDdrt8qoWm35aES5arKZzytgrRD/kXfFW2LCg0
|
|
29
|
+
FzgTKibR4/3g8ph94kQLg/D2SMlVPkQ3ECi036mZxDC2n8V6u3rDkG5923wmrRZB
|
|
30
|
+
J6cqz475Q8HYORQCB68OPzkWMfC7mBo3vpSsIqRoNs1FE4FJu4FGwZG8fBSrDC4H
|
|
31
|
+
bZe+GtyS3e2SMjgT65zp35gLO9I7MquzYN9P6V2u1iBpTycchk5z9R1ghxzZSBT8
|
|
32
|
+
DrkJ9tVlPQtJB0LqT0tvBap4upnwT1xYq721b5dwH6AF4Pi6iz/dc5vnq1/MH8bV
|
|
33
|
+
8VbbBzzeE7MsvgkP3sHlLmY8PtuyViJ8
|
|
34
|
+
-----END CERTIFICATE-----
|
|
35
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
11
36
|
dependencies:
|
|
12
37
|
- !ruby/object:Gem::Dependency
|
|
13
38
|
name: bundler
|
|
@@ -72,15 +97,16 @@ files:
|
|
|
72
97
|
- ".github/workflows/publish-images.yml"
|
|
73
98
|
- ".github/workflows/release-images.yml"
|
|
74
99
|
- ".gitignore"
|
|
100
|
+
- CHANGELOG.md
|
|
75
101
|
- CONTRIBUTING.md
|
|
76
102
|
- Dockerfile.jruby
|
|
77
103
|
- Dockerfile.mri.erb
|
|
78
104
|
- Gemfile
|
|
79
|
-
- History.md
|
|
80
105
|
- LICENSE.txt
|
|
81
106
|
- README.md
|
|
82
107
|
- Rakefile
|
|
83
108
|
- bin/rake-compiler-dock
|
|
109
|
+
- build/buildkitd.toml
|
|
84
110
|
- build/gem_helper.rb
|
|
85
111
|
- build/mk_i686.rb
|
|
86
112
|
- build/mk_musl_cross.sh
|
|
@@ -108,8 +134,8 @@ files:
|
|
|
108
134
|
- mingw64-ucrt/mingw-w64-enable-ucrt.patch
|
|
109
135
|
- rake-compiler-dock.gemspec
|
|
110
136
|
- test/env/Dockerfile.alpine
|
|
111
|
-
- test/env/Dockerfile.centos
|
|
112
137
|
- test/env/Dockerfile.debian
|
|
138
|
+
- test/fixtures/mig_test_rpc.defs
|
|
113
139
|
- test/rcd_test/Gemfile
|
|
114
140
|
- test/rcd_test/Rakefile
|
|
115
141
|
- test/rcd_test/ext/java/RcdTestExtService.java
|
|
@@ -121,8 +147,10 @@ files:
|
|
|
121
147
|
- test/rcd_test/rcd_test.gemspec
|
|
122
148
|
- test/rcd_test/test/test_basic.rb
|
|
123
149
|
- test/test_environment_variables.rb
|
|
150
|
+
- test/test_mig.rb
|
|
124
151
|
- test/test_parallel_docker_build.rb
|
|
125
152
|
- test/test_starter.rb
|
|
153
|
+
- test/test_versions.rb
|
|
126
154
|
homepage: https://github.com/rake-compiler/rake-compiler-dock
|
|
127
155
|
licenses:
|
|
128
156
|
- MIT
|
|
@@ -141,14 +169,14 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
141
169
|
- !ruby/object:Gem::Version
|
|
142
170
|
version: '0'
|
|
143
171
|
requirements: []
|
|
144
|
-
rubygems_version: 3.6.
|
|
172
|
+
rubygems_version: 3.6.9
|
|
145
173
|
specification_version: 4
|
|
146
174
|
summary: Easy to use and reliable cross compiler environment for building Windows
|
|
147
175
|
and Linux binary gems.
|
|
148
176
|
test_files:
|
|
149
177
|
- test/env/Dockerfile.alpine
|
|
150
|
-
- test/env/Dockerfile.centos
|
|
151
178
|
- test/env/Dockerfile.debian
|
|
179
|
+
- test/fixtures/mig_test_rpc.defs
|
|
152
180
|
- test/rcd_test/Gemfile
|
|
153
181
|
- test/rcd_test/Rakefile
|
|
154
182
|
- test/rcd_test/ext/java/RcdTestExtService.java
|
|
@@ -160,5 +188,7 @@ test_files:
|
|
|
160
188
|
- test/rcd_test/rcd_test.gemspec
|
|
161
189
|
- test/rcd_test/test/test_basic.rb
|
|
162
190
|
- test/test_environment_variables.rb
|
|
191
|
+
- test/test_mig.rb
|
|
163
192
|
- test/test_parallel_docker_build.rb
|
|
164
193
|
- test/test_starter.rb
|
|
194
|
+
- test/test_versions.rb
|
metadata.gz.sig
ADDED
|
Binary file
|
data/test/env/Dockerfile.centos
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
ARG from_image
|
|
2
|
-
FROM ${from_image}
|
|
3
|
-
|
|
4
|
-
RUN uname -a
|
|
5
|
-
|
|
6
|
-
# Change download address of Centos-8 which is EOL
|
|
7
|
-
RUN sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
|
|
8
|
-
RUN sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
|
|
9
|
-
|
|
10
|
-
RUN yum install -y ruby git
|
|
11
|
-
|
|
12
|
-
RUN ruby --version
|
|
13
|
-
RUN gem env
|
|
14
|
-
|
|
15
|
-
# centos-8 comes with Ruby 2.5, and this is the last version of bundler that supports it
|
|
16
|
-
RUN gem install bundler -v2.2.28
|
|
17
|
-
|
|
18
|
-
WORKDIR /build
|
|
19
|
-
|
|
20
|
-
CMD ruby -e "puts Gem::Platform.local.to_s" && \
|
|
21
|
-
gem install --local *.gem --verbose --no-document && \
|
|
22
|
-
cd test/rcd_test/ && \
|
|
23
|
-
bundle install && \
|
|
24
|
-
rake test
|