boxing 0.6.3 → 0.7.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: af8de757c6161777e9736f17b858e4c4bee3c47a9d169f6719b55d7407bcf9e5
4
- data.tar.gz: f57afeca9dfa7b749bfebb470650abcb05a8bde3e15ce8d49cdf35f2372052eb
3
+ metadata.gz: cb92f9e7966c3a451361f7e1c69ec5f9e420888b4b5d41ec31824211acd964ce
4
+ data.tar.gz: 4a6713c8b7829a7621a38c26ea8e7089d2142450971ce01adc326fba8c3f3946
5
5
  SHA512:
6
- metadata.gz: 9554a76aa1f1733e1f1927e69b2c132be8ad54d6c5419406ad4bfa7b03e871105bb811c990d633e58a3309767101d88362afdfc1b820e5d88aff7cfaa58e74ef
7
- data.tar.gz: af9331633f264efb01af94ad17f52b57c5c3a41940082c5685e6d55df32fe8774d4a504717cfddf3a698bb013fb5123ad644902ec14cd2b11c03e80c85cb3501
6
+ metadata.gz: a3270e71d3fb6a2d15a98f7a1516be83ddda40e516b8013acf662f58e1ddc8d6699bd618361eb46591dd5664164cebe4112d62c8105a7de097251c13bc436338
7
+ data.tar.gz: b20c971714e113f171f80502128a4faf8ba91ddd85b9a7515858501c928113a9a561a22780d6c23d24ecc11cac094d022b77d733275dbb27b75f2db6bd4b92a4
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- boxing (0.6.3)
4
+ boxing (0.7.1)
5
5
  bundler (~> 2.0)
6
6
  thor (~> 1.0)
7
7
 
data/README.md CHANGED
@@ -121,6 +121,8 @@ Boxing.config do |c|
121
121
  end
122
122
  ```
123
123
 
124
+ > When building the image, you have to add `--build-arg RAILS_MASTER_KEY=...` to set your production key to compile it correctly.
125
+
124
126
  ### Health Check
125
127
 
126
128
  ```ruby
data/lib/boxing/config.rb CHANGED
@@ -19,7 +19,7 @@ module Boxing
19
19
  @name = 'myapp'
20
20
  @root = '/srv/app'
21
21
  @port = 9292
22
- @health_path = '/status'
22
+ @health_check_path = '/status'
23
23
  @assets_precompile = false
24
24
 
25
25
  instance_exec(self, &block) if defined?(yield)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Boxing
4
- VERSION = '0.6.3'
4
+ VERSION = '0.7.1'
5
5
  end
@@ -15,19 +15,20 @@ RUN gem install bundler:<%= Bundler::VERSION %> \
15
15
  && bundle config --local deployment 'true' \
16
16
  && bundle config --local frozen 'true' \
17
17
  && bundle config --local no-cache 'true' \
18
- && bundle config --local system 'true' \
19
18
  && bundle config --local without 'development test' \
20
19
  && bundle install -j "$(getconf _NPROCESSORS_ONLN)" \
21
- && find /${APP_ROOT}/vendor/bundle -type f -name '*.c' -delete \
22
- && find /${APP_ROOT}/vendor/bundle -type f -name '*.o' -delete \
23
- && find /usr/local/bundle -type f -name '*.c' -delete \
24
- && find /usr/local/bundle -type f -name '*.o' -delete \
25
- && rm -rf /usr/local/bundle/cache/*.gem
20
+ && find ${APP_ROOT}/vendor/bundle -type f -name '*.c' -delete \
21
+ && find ${APP_ROOT}/vendor/bundle -type f -name '*.h' -delete \
22
+ && find ${APP_ROOT}/vendor/bundle -type f -name '*.o' -delete \
23
+ && find ${APP_ROOT}/vendor/bundle -type f -name '*.gem' -delete
26
24
 
27
25
  <%- if config.assets_precompile -%>
28
26
  FROM node:${NODE_VERSION}-alpine as node
29
27
  FROM ruby:${RUBY_VERSION}-alpine as assets
30
28
  ARG APP_ROOT
29
+ ARG RAILS_MASTER_KEY
30
+
31
+ ENV RAILS_MASTER_KEY $RAILS_MASTER_KEY
31
32
 
32
33
  <%- if packages.select(&:runtime?).any? -%>
33
34
  RUN apk add --no-cache <%= packages.select(&:runtime?).join(' ') %> yarn
@@ -37,7 +38,7 @@ COPY --from=node /usr/local/bin/node /usr/local/bin/node
37
38
 
38
39
  COPY --from=gem /usr/local/bundle/config /usr/local/bundle/config
39
40
  COPY --from=gem /usr/local/bundle /usr/local/bundle
40
- COPY --from=gem /${APP_ROOT}/vendor/bundle /${APP_ROOT}/vendor/bundle
41
+ COPY --from=gem ${APP_ROOT}/vendor/bundle ${APP_ROOT}/vendor/bundle
41
42
 
42
43
  RUN mkdir -p ${APP_ROOT}
43
44
  COPY . ${APP_ROOT}
@@ -56,7 +57,7 @@ RUN apk add --no-cache <%= packages.select(&:runtime?).join(' ') %>
56
57
  <%- end -%>
57
58
  COPY --from=gem /usr/local/bundle/config /usr/local/bundle/config
58
59
  COPY --from=gem /usr/local/bundle /usr/local/bundle
59
- COPY --from=gem /${APP_ROOT}/vendor/bundle /${APP_ROOT}/vendor/bundle
60
+ COPY --from=gem ${APP_ROOT}/vendor/bundle ${APP_ROOT}/vendor/bundle
60
61
 
61
62
  RUN mkdir -p ${APP_ROOT}
62
63
 
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.6.3
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - 蒼時弦也
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-02-21 00:00:00.000000000 Z
11
+ date: 2022-05-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler