boxing 0.9.0 → 0.10.0
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/README.md +29 -4
- data/lib/boxing/context.rb +3 -0
- data/lib/boxing/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e1a72179803fe3997bbc8ec057a4829bab1f10800b4bb29971b01303847a3c40
|
4
|
+
data.tar.gz: 8f24d68d167994db0017674b4841e447863d8def7a21a37a9dd0d067e607dc20
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fcf0679493f741d8d76861a3dc1686bd15896a7b11061274729fab08cffe537d441850c059d6eed488c7dcab23df9df16bc5d367a36804717e5badb578cdce40
|
7
|
+
data.tar.gz: a9a9e34b8c4c9f33c5d0e936279f10ac9010fe8b23050683b7eb2882bf3656a49b016ca06e268a3eef7c93dfe55d97f0d5ce01d9b50633dd149da67898631303
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -1,4 +1,6 @@
|
|
1
|
-
|
1
|
+
Boxing
|
2
|
+
===
|
3
|
+
[![Ruby](https://github.com/elct9620/boxing/actions/workflows/main.yml/badge.svg)](https://github.com/elct9620/boxing/actions/workflows/main.yml)
|
2
4
|
|
3
5
|
The zero-configuration Dockerfile generator for Ruby.
|
4
6
|
|
@@ -36,6 +38,10 @@ The final Rails image will be around 100MB and can be flexible to delivery to an
|
|
36
38
|
|
37
39
|
> We suggest using `puma` as the webserver to avoid the extra dependency to keep the image small.
|
38
40
|
|
41
|
+
### Bootsnap Precompile (Experimental)
|
42
|
+
|
43
|
+
If your gem dependency included `bootsnap` the generated Dockerfile will add precompile options to speed up the application bootstrap.
|
44
|
+
|
39
45
|
### Revision
|
40
46
|
|
41
47
|
To identity your image version, the default build argument `REVISION` will be configured by default.
|
@@ -90,6 +96,22 @@ Boxing.config do |c|
|
|
90
96
|
end
|
91
97
|
```
|
92
98
|
|
99
|
+
### Customize Entrypoint
|
100
|
+
|
101
|
+
```ruby
|
102
|
+
Boxing.config do |c|
|
103
|
+
c.entrypoint = ['bin/rails']
|
104
|
+
end
|
105
|
+
```
|
106
|
+
|
107
|
+
### Customize Command
|
108
|
+
|
109
|
+
```ruby
|
110
|
+
Boxing.config do |c|
|
111
|
+
c.command = ['server', '-b', '127.0.0.1']
|
112
|
+
end
|
113
|
+
```
|
114
|
+
|
93
115
|
### Ignore Files
|
94
116
|
|
95
117
|
```ruby
|
@@ -164,11 +186,11 @@ end
|
|
164
186
|
* [ ] Disable `RAILS_SERVE_STATIC_FILES` by default
|
165
187
|
* [x] Customize config file `config/boxing.rb`
|
166
188
|
* [x] Customize `APP_ROOT`
|
167
|
-
* [
|
189
|
+
* [x] Extra packages
|
168
190
|
* [ ] DSL to customize `Dockerfile`
|
169
191
|
* [ ] Build Stage
|
170
|
-
* [
|
171
|
-
* [
|
192
|
+
* [x] Entrypoint
|
193
|
+
* [x] Command
|
172
194
|
* [x] Expose Port
|
173
195
|
* [x] Health Check
|
174
196
|
* [x] [Liveness](https://github.com/elct9620/openbox) gem detection
|
@@ -177,6 +199,9 @@ end
|
|
177
199
|
* [x] [Openbox](https://github.com/elct9620/openbox) (Suggested)
|
178
200
|
* [x] Ruby on Rails
|
179
201
|
* [x] Rack (Default)
|
202
|
+
* [x] AWS Lambda Runtime Interface Client
|
203
|
+
* [x] Lamby supported (Default)
|
204
|
+
* [x] SQS ActiveJob Lambda Handler
|
180
205
|
* [ ] Package Database
|
181
206
|
* [x] Built-in (Move to standalone repoistory in future)
|
182
207
|
* [x] Standalone Repoistory
|
data/lib/boxing/context.rb
CHANGED
@@ -123,6 +123,7 @@ module Boxing
|
|
123
123
|
# @since 0.9.0
|
124
124
|
def entrypoint
|
125
125
|
return config.entrypoint.map(&:to_s) if config.entrypoint
|
126
|
+
return ['bin/aws_lambda_ric'] if has?('aws_lambda_ric')
|
126
127
|
return ['bin/openbox'] if has?('openbox')
|
127
128
|
return ['bin/rails'] if has?('rails')
|
128
129
|
|
@@ -136,6 +137,8 @@ module Boxing
|
|
136
137
|
# @since 0.9.0
|
137
138
|
def command
|
138
139
|
return config.command.map(&:to_s) if config.command
|
140
|
+
return ['config/environment.Lamby.cmd'] if has?('lamby')
|
141
|
+
return ['config/environment.Aws::Rails::SqsActiveJob.lambda_job_handler'] if has?('aws-sdk-rails')
|
139
142
|
return ['server'] if has?('openbox')
|
140
143
|
return ['server', '-b', '0.0.0.0'] if has?('rails')
|
141
144
|
|
data/lib/boxing/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: boxing
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.10.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- 蒼時弦也
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-01-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|