boxing 0.9.0 → 0.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cc711842897fe99033eddd84096476da91f3e8978932f1b7e6ad81c92e58d6a8
4
- data.tar.gz: aa5a956bdaefd0aad083eb1d953850692110c87ce1b7feebdd7a0bf9b1b0437b
3
+ metadata.gz: e1a72179803fe3997bbc8ec057a4829bab1f10800b4bb29971b01303847a3c40
4
+ data.tar.gz: 8f24d68d167994db0017674b4841e447863d8def7a21a37a9dd0d067e607dc20
5
5
  SHA512:
6
- metadata.gz: 4ec68e4a79a4c7143c7cb5c627a066fcb358752e6d1a070f76da6ceda516ee4d3c684505bafeac107d3dd83b68bed3d24b4d44e9a489ce716a2832da89c3afea
7
- data.tar.gz: afcafc86d6cd2bf263982da25245ba29eb97c9bc7957da8c2a3b01a72e03bef095c94060c565d79ace96cc62b0edec7e644315ea7128ceffc3791e6666751d86
6
+ metadata.gz: fcf0679493f741d8d76861a3dc1686bd15896a7b11061274729fab08cffe537d441850c059d6eed488c7dcab23df9df16bc5d367a36804717e5badb578cdce40
7
+ data.tar.gz: a9a9e34b8c4c9f33c5d0e936279f10ac9010fe8b23050683b7eb2882bf3656a49b016ca06e268a3eef7c93dfe55d97f0d5ce01d9b50633dd149da67898631303
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- boxing (0.9.0)
4
+ boxing (0.10.0)
5
5
  bundler (~> 2.0)
6
6
  thor (~> 1.0)
7
7
 
data/README.md CHANGED
@@ -1,4 +1,6 @@
1
- # Boxing
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
- * [ ] Extra packages
189
+ * [x] Extra packages
168
190
  * [ ] DSL to customize `Dockerfile`
169
191
  * [ ] Build Stage
170
- * [ ] Entrypoint
171
- * [ ] Command
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
@@ -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
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Boxing
4
- VERSION = '0.9.0'
4
+ VERSION = '0.10.0'
5
5
  end
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.9.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: 2022-12-22 00:00:00.000000000 Z
11
+ date: 2023-01-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler