dockerfile-rails 1.1.2 → 1.2.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 +4 -4
- data/README.md +1 -0
- data/lib/generators/dockerfile_generator.rb +3 -3
- data/lib/generators/templates/_install_node.erb +6 -7
- 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: e8dc8b1f01f52091af8e9cb3322db265d96698e80fc203bfc570135efd69cb06
|
|
4
|
+
data.tar.gz: 6054ee7cb322ed79092c6205cce1969b7ab9ad1d868113024845d90bb52d4448
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 938d057a8f5faf7cca766898b5f6406a379bf90c1fc6116c05759e38a7d7439efdad941855a8cdf4029cc9aadd0131d7463a855e702fe8a69b7746250e1bfbd5
|
|
7
|
+
data.tar.gz: 4be1203c6fa6176c867dae6ef78511aa5e0a3c9943958430a8b77ba04cbb5368371d4ea3e100d4a037946cfd0f94ee7ced7425a1464bfe75450a3c1cc8703dbc
|
data/README.md
CHANGED
|
@@ -108,3 +108,4 @@ The following links relate to the current development status with respect to Rai
|
|
|
108
108
|
* [app/templates/Dockerfile.tt](https://github.com/rails/rails/blob/main/railties/lib/rails/generators/rails/app/templates/Dockerfile.tt) - current Rails 7.1 template
|
|
109
109
|
* Fly.io [Cut over to Rails Dockerfile Generator on Sunday 29 Jan 2023](https://community.fly.io/t/cut-over-to-rails-dockerfile-generator-on-sunday-29-jan-2023/10350)
|
|
110
110
|
* Fly.io [FAQ](https://fly.io/docs/rails/getting-started/dockerfiles/)
|
|
111
|
+
* DDH's [target](https://github.com/rails/rails/pull/47372#issuecomment-1438971730)
|
|
@@ -311,7 +311,7 @@ private
|
|
|
311
311
|
packages += @@packages["base"] if @@packages["base"]
|
|
312
312
|
|
|
313
313
|
if using_execjs?
|
|
314
|
-
packages += %w(curl
|
|
314
|
+
packages += %w(curl)
|
|
315
315
|
end
|
|
316
316
|
|
|
317
317
|
if using_puppeteer?
|
|
@@ -364,7 +364,7 @@ private
|
|
|
364
364
|
# node support, including support for building native modules
|
|
365
365
|
if using_node?
|
|
366
366
|
packages += %w(node-gyp pkg-config)
|
|
367
|
-
packages += %w(curl
|
|
367
|
+
packages += %w(curl) unless using_execjs? || using_puppeteer?
|
|
368
368
|
|
|
369
369
|
# module build process depends on Python, and debian changed
|
|
370
370
|
# how python is installed with the bullseye release. Below
|
|
@@ -464,7 +464,7 @@ private
|
|
|
464
464
|
env = {}
|
|
465
465
|
|
|
466
466
|
if using_execjs?
|
|
467
|
-
env["PATH"] = "/
|
|
467
|
+
env["PATH"] = "/usr/local/node/bin:$PATH"
|
|
468
468
|
end
|
|
469
469
|
|
|
470
470
|
if using_puppeteer?
|
|
@@ -12,12 +12,11 @@ ARG NODE_VERSION=<%= node_version %>
|
|
|
12
12
|
ARG YARN_VERSION=<%= yarn_version %>
|
|
13
13
|
<% end -%>
|
|
14
14
|
<% if node_version -%>
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
<% end -%>
|
|
15
|
+
ENV PATH=/usr/local/node/bin:$PATH
|
|
16
|
+
RUN curl -sL https://github.com/nodenv/node-build/archive/master.tar.gz | tar xz -C /tmp/ && \
|
|
17
|
+
/tmp/node-build-master/bin/node-build "${NODE_VERSION}" /usr/local/node && \
|
|
18
|
+
npm install -g yarn@$YARN_VERSION && \
|
|
19
|
+
rm -rf /tmp/node-build-master
|
|
21
20
|
<% end -%>
|
|
22
21
|
<% if yarn_version -%>
|
|
23
22
|
<% if yarn_version < '2' -%>
|
|
@@ -30,4 +29,4 @@ RUN corepack enable && \
|
|
|
30
29
|
<% end -%>
|
|
31
30
|
corepack prepare yarn@$YARN_VERSION --activate
|
|
32
31
|
<% end -%>
|
|
33
|
-
<% end -%>
|
|
32
|
+
<% end -%>
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: dockerfile-rails
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Sam Ruby
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2023-02-
|
|
11
|
+
date: 2023-02-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|