rake-compiler-dock 0.7.0 → 0.7.1
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
- data/Dockerfile.jruby +1 -1
- data/Dockerfile.mri +1 -1
- data/History.md +5 -0
- data/README.md +26 -7
- data/lib/rake_compiler_dock/version.rb +2 -2
- metadata +13 -35
- checksums.yaml.gz.sig +0 -1
- data.tar.gz.sig +0 -3
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3b8330dda2b0c16d6d87636926a47487ebb6086481080114511c2a1bd137f6b5
|
4
|
+
data.tar.gz: 49f1e109ea8b3c16c86f34cdeba12316c411a1418fa786dc94e603cdb0f93fc4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0b19035d07931641fdc38c5186ed6566830ed5f74201046fe7402a82ad06805dd69a5634f43593dfef5dbe698035c5d48977b300b7c1bcf239261fe5ab2f9ba4
|
7
|
+
data.tar.gz: 4c7252c39cfdec3656a2f66ba745eb956c755918886823e573f5a112cb5789ca6553fe55d9360cb36a010facc748d13797394db922b0f8d634ad9c788de93a3e
|
data/Dockerfile.jruby
CHANGED
@@ -32,7 +32,7 @@ RUN bash -c " \
|
|
32
32
|
# do not generate documentation for gems
|
33
33
|
RUN echo "gem: --no-ri --no-rdoc" >> ~/.gemrc && \
|
34
34
|
bash -c " \
|
35
|
-
rvm all do gem install --no-document bundler rake-compiler hoe rubygems-tasks && \
|
35
|
+
rvm all do gem install --no-document bundler 'bundler:~>1.16' rake-compiler hoe rubygems-tasks && \
|
36
36
|
find /usr/local/rvm -type d -print0 | sudo xargs -0 chmod g+sw "
|
37
37
|
|
38
38
|
# Install rake-compiler's cross rubies in global dir instead of /root
|
data/Dockerfile.mri
CHANGED
@@ -32,7 +32,7 @@ RUN bash -c " \
|
|
32
32
|
# do not generate documentation for gems
|
33
33
|
RUN echo "gem: --no-ri --no-rdoc" >> ~/.gemrc && \
|
34
34
|
bash -c " \
|
35
|
-
rvm all do gem install --no-document bundler rake-compiler hoe mini_portile rubygems-tasks mini_portile2 && \
|
35
|
+
rvm all do gem install --no-document bundler 'bundler:~>1.16' rake-compiler hoe mini_portile rubygems-tasks mini_portile2 && \
|
36
36
|
find /usr/local/rvm -type d -print0 | sudo xargs -0 chmod g+sw "
|
37
37
|
|
38
38
|
# Install rake-compiler's cross rubies in global dir instead of /root
|
data/History.md
CHANGED
@@ -1,3 +1,8 @@
|
|
1
|
+
0.7.1 / 2019-01-27
|
2
|
+
------------------
|
3
|
+
* Add bundler-2.x to image and keep bundler-1.x for compatibility with projects using a `Gemfile.lock` generated by bundler-1.x .
|
4
|
+
|
5
|
+
|
1
6
|
0.7.0 / 2018-12-26
|
2
7
|
------------------
|
3
8
|
* Add docker image for JRuby extensions, new option `:rubyvm` and `RCD_RUBYVM` environment variable
|
data/README.md
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
# rake-compiler-dock
|
2
2
|
|
3
|
-
**Easy to use and reliable cross compiler environment for building Windows and
|
3
|
+
**Easy to use and reliable cross compiler environment for building Windows, Linux and JRuby binary gems.**
|
4
4
|
|
5
|
-
It provides cross compilers and Ruby environments for 2.
|
5
|
+
It provides cross compilers and Ruby environments for 2.2 and newer versions of the [RubyInstaller](http://rubyinstaller.org/) and Linux runtime environments.
|
6
6
|
They are prepared for use with [rake-compiler](https://github.com/rake-compiler/rake-compiler).
|
7
|
-
It is used by [many gems with C
|
7
|
+
It is used by [many gems with C or JRuby extentions](https://github.com/rake-compiler/rake-compiler-dock/wiki/Projects-using-rake-compiler-dock).
|
8
8
|
|
9
9
|
This is kind of successor of [rake-compiler-dev-box](https://github.com/tjschuck/rake-compiler-dev-box).
|
10
10
|
It is wrapped as a gem for easier setup, usage and integration and is based on lightweight Docker containers.
|
@@ -30,7 +30,7 @@ Install rake-compiler-dock as a gem. The docker image is downloaded later on dem
|
|
30
30
|
|
31
31
|
## Usage
|
32
32
|
|
33
|
-
Rake-compiler-dock provides the necessary tools to build Ruby extensions for Windows and Linux written in C and C
|
33
|
+
Rake-compiler-dock provides the necessary tools to build Ruby extensions for Windows and Linux written in C and C++ and JRuby written in Java.
|
34
34
|
It is intended to be used in conjunction with [rake-compiler's](https://github.com/rake-compiler/rake-compiler) cross build capability.
|
35
35
|
Your Rakefile should enable cross compilation like so:
|
36
36
|
|
@@ -78,23 +78,40 @@ This is local to the running session, only:
|
|
78
78
|
sudo apt-get update && sudo apt-get install your-package
|
79
79
|
|
80
80
|
You can also choose between different executable ruby versions by `rvm use <version>` .
|
81
|
-
The current default is 2.
|
81
|
+
The current default is 2.5.
|
82
82
|
|
83
|
+
### JRuby support
|
84
|
+
|
85
|
+
Rake-compiler-dock offers a dedicated docker image for JRuby.
|
86
|
+
JRuby doesn't need a complicated cross build environment like C-ruby, but using Rake-compiler-dock for JRuby makes building binary gems more consistent.
|
87
|
+
|
88
|
+
To build java binary gems interactively, it can be called like this:
|
89
|
+
|
90
|
+
user@host:$ cd your-gem-dir/
|
91
|
+
user@host:$ RCD_RUBYVM=jruby rake-compiler-dock # this enters a container with an interactive shell
|
92
|
+
user@5b53794ada92:$ ruby -v
|
93
|
+
jruby 9.2.5.0 (2.5.0) 2018-12-06 6d5a228 OpenJDK 64-Bit Server VM 10.0.2+13-Ubuntu-1ubuntu0.18.04.4 on 10.0.2+13-Ubuntu-1ubuntu0.18.04.4 +jit [linux-x86_64]
|
94
|
+
user@5b53794ada92:$ bundle
|
95
|
+
user@5b53794ada92:$ rake java gem
|
96
|
+
user@5b53794ada92:$ exit
|
97
|
+
user@host:$ ls pkg/*.gem
|
98
|
+
your-gem-1.0.0.gem your-gem-1.0.0-java.gem
|
83
99
|
|
84
100
|
### Add to your Rakefile
|
85
101
|
|
86
|
-
To make the build process
|
102
|
+
To make the build process reproducible for other parties, it is recommended to add rake-compiler-dock to your Rakefile.
|
87
103
|
This can be done like this:
|
88
104
|
|
89
105
|
task 'gem:native' do
|
90
106
|
require 'rake_compiler_dock'
|
91
107
|
sh "bundle package" # Avoid repeated downloads of gems by using gem files from the host.
|
92
108
|
RakeCompilerDock.sh "bundle --local && rake cross native gem"
|
109
|
+
RakeCompilerDock.sh "bundle --local && rake java gem", rubyvm: :jruby
|
93
110
|
end
|
94
111
|
|
95
112
|
Rake-compiler-dock uses [semantic versioning](http://semver.org/), so you should add it into your Gemfile, to make sure, that future changes will not break your build.
|
96
113
|
|
97
|
-
gem 'rake-compiler-dock', '~> 0.
|
114
|
+
gem 'rake-compiler-dock', '~> 0.7.0'
|
98
115
|
|
99
116
|
See [the wiki](https://github.com/rake-compiler/rake-compiler-dock/wiki/Projects-using-rake-compiler-dock) for projects which make use of rake-compiler-dock.
|
100
117
|
|
@@ -105,6 +122,8 @@ Rake-compiler-dock makes use of several environment variables.
|
|
105
122
|
|
106
123
|
The following variables are recognized by rake-compiler-dock:
|
107
124
|
|
125
|
+
* `RCD_RUBYVM` - The flavour of docker image to be used.
|
126
|
+
Must be one of `mri`, `jruby`.
|
108
127
|
* `RCD_IMAGE` - The docker image that is downloaded and started.
|
109
128
|
Defaults to "larskanis/rake-compiler-dock:IMAGE_VERSION" with an image version that is determined by the gem version.
|
110
129
|
|
metadata
CHANGED
@@ -1,73 +1,52 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rake-compiler-dock
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lars Kanis
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
|
-
cert_chain:
|
11
|
-
-
|
12
|
-
-----BEGIN CERTIFICATE-----
|
13
|
-
MIIDPDCCAiSgAwIBAgIBBDANBgkqhki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bwEc2uu
|
28
|
-
UfE3teqcc04i4+zWgDBu45UpF79QXbFbInaZkd92ozdnNYbd4jOud1SWtR5I2OFv
|
29
|
-
cIEWu8F/maa7XqF9Sk/GEGriqlaobodHfoJxAb/u9IDz0ytY3p8mEyGwqNDoCjeL
|
30
|
-
7/9XxD10fBRrg2rR7rYqZg==
|
31
|
-
-----END CERTIFICATE-----
|
32
|
-
date: 2018-12-26 00:00:00.000000000 Z
|
10
|
+
cert_chain: []
|
11
|
+
date: 2019-01-27 00:00:00.000000000 Z
|
33
12
|
dependencies:
|
34
13
|
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
35
15
|
requirement: !ruby/object:Gem::Requirement
|
36
16
|
requirements:
|
37
17
|
- - "~>"
|
38
18
|
- !ruby/object:Gem::Version
|
39
19
|
version: '1.7'
|
40
|
-
name: bundler
|
41
|
-
prerelease: false
|
42
20
|
type: :development
|
21
|
+
prerelease: false
|
43
22
|
version_requirements: !ruby/object:Gem::Requirement
|
44
23
|
requirements:
|
45
24
|
- - "~>"
|
46
25
|
- !ruby/object:Gem::Version
|
47
26
|
version: '1.7'
|
48
27
|
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
49
29
|
requirement: !ruby/object:Gem::Requirement
|
50
30
|
requirements:
|
51
31
|
- - "~>"
|
52
32
|
- !ruby/object:Gem::Version
|
53
33
|
version: '12.0'
|
54
|
-
name: rake
|
55
|
-
prerelease: false
|
56
34
|
type: :development
|
35
|
+
prerelease: false
|
57
36
|
version_requirements: !ruby/object:Gem::Requirement
|
58
37
|
requirements:
|
59
38
|
- - "~>"
|
60
39
|
- !ruby/object:Gem::Version
|
61
40
|
version: '12.0'
|
62
41
|
- !ruby/object:Gem::Dependency
|
42
|
+
name: test-unit
|
63
43
|
requirement: !ruby/object:Gem::Requirement
|
64
44
|
requirements:
|
65
45
|
- - "~>"
|
66
46
|
- !ruby/object:Gem::Version
|
67
47
|
version: '3.0'
|
68
|
-
name: test-unit
|
69
|
-
prerelease: false
|
70
48
|
type: :development
|
49
|
+
prerelease: false
|
71
50
|
version_requirements: !ruby/object:Gem::Requirement
|
72
51
|
requirements:
|
73
52
|
- - "~>"
|
@@ -113,7 +92,7 @@ homepage: https://github.com/rake-compiler/rake-compiler-dock
|
|
113
92
|
licenses:
|
114
93
|
- MIT
|
115
94
|
metadata: {}
|
116
|
-
post_install_message:
|
95
|
+
post_install_message:
|
117
96
|
rdoc_options: []
|
118
97
|
require_paths:
|
119
98
|
- lib
|
@@ -128,9 +107,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
128
107
|
- !ruby/object:Gem::Version
|
129
108
|
version: '0'
|
130
109
|
requirements: []
|
131
|
-
|
132
|
-
|
133
|
-
signing_key:
|
110
|
+
rubygems_version: 3.0.1
|
111
|
+
signing_key:
|
134
112
|
specification_version: 4
|
135
113
|
summary: Easy to use and reliable cross compiler environment for building Windows
|
136
114
|
and Linux binary gems.
|
checksums.yaml.gz.sig
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
Af�[��5��8� �,�.6���m)&JE����5�[n�=��i����F�B=�W,�9�_'bn�{�N|��;o����0WO��r���U����3l��}:QL$W�O���W���h�h��h��,��܄�v��9�=���vI?cP�C8�E
|
data.tar.gz.sig
DELETED
metadata.gz.sig
DELETED
Binary file
|