boxing 0.6.0 → 0.6.4
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/lib/boxing/config.rb +1 -1
- data/lib/boxing/context.rb +17 -6
- data/lib/boxing/version.rb +1 -1
- data/templates/Dockerfile.tt +2 -1
- data/templates/dockerignore.tt +1 -0
- 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: fd427826998bb9df83b3955139e558ce7138d290714c1305950f2ef2a8a51b35
|
4
|
+
data.tar.gz: 353786ff330d319bce5a5d84c21f594e7b7c7c6314e6afc6a23b55a64316c20c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d1ae4a276fff20bf0730a7cc6988d1f6294446897976afc832d769389416097410a37e606007924547477187d1ba3bff64381c4090b6d6636956f290ce9738ed
|
7
|
+
data.tar.gz: c466465e8b07c81728df9dc742ab372ea45b438764780d5936edb47d7b8129258653025e69e61ecfdd84950b8e852e92af3ef3d84d26e3495642d5fe0e6f560f
|
data/Gemfile.lock
CHANGED
data/lib/boxing/config.rb
CHANGED
data/lib/boxing/context.rb
CHANGED
@@ -77,12 +77,11 @@ module Boxing
|
|
77
77
|
#
|
78
78
|
# @since 0.6.0
|
79
79
|
def extra_packages
|
80
|
-
Array[config.build_packages, config.runtime_packages].
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
end
|
80
|
+
Array[config.build_packages, config.runtime_packages].flatten.map do |name|
|
81
|
+
next if name.nil?
|
82
|
+
|
83
|
+
Package.new(name, mode: mode_of(name))
|
84
|
+
end.compact
|
86
85
|
end
|
87
86
|
|
88
87
|
# Return node.js version
|
@@ -104,5 +103,17 @@ module Boxing
|
|
104
103
|
def to_binding
|
105
104
|
binding
|
106
105
|
end
|
106
|
+
|
107
|
+
# Check Package Mode
|
108
|
+
#
|
109
|
+
# @return [Number]
|
110
|
+
#
|
111
|
+
# @since 0.6.3
|
112
|
+
def mode_of(name)
|
113
|
+
mode = 0
|
114
|
+
mode |= Package::BUILD if config.build_packages&.include?(name)
|
115
|
+
mode |= Package::RUNTIME if config.runtime_packages&.include?(name)
|
116
|
+
mode
|
117
|
+
end
|
107
118
|
end
|
108
119
|
end
|
data/lib/boxing/version.rb
CHANGED
data/templates/Dockerfile.tt
CHANGED
@@ -68,7 +68,8 @@ ENV RAILS_SERVE_STATIC_FILES=yes
|
|
68
68
|
ENV APP_ROOT=$APP_ROOT
|
69
69
|
|
70
70
|
COPY . ${APP_ROOT}
|
71
|
-
COPY --from=assets /${APP_ROOT}/public /${APP_ROOT}/public
|
71
|
+
<%- if config.assets_precompile -%>COPY --from=assets /${APP_ROOT}/public /${APP_ROOT}/public
|
72
|
+
<%- end -%>
|
72
73
|
|
73
74
|
ARG REVISION
|
74
75
|
ENV REVISION $REVISION
|
data/templates/dockerignore.tt
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.6.
|
4
|
+
version: 0.6.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- 蒼時弦也
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-02-
|
11
|
+
date: 2022-02-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|