dockerfile-rails 1.7.2 → 1.7.4
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: be3d1ce9566496c167fba7241e1f1e07ed7efbad7945c6a86d3ff282bb1b8229
|
4
|
+
data.tar.gz: 27f6342c3e4cc7bc92195139347938d75bc0cf0b77bfc53627cbfd7611b149b4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6bb0a8358622932c93120e5779b6eb3b43b5e7b2b10fb292ede16303800189322b2c56ea86a539fc79803c6fd2ea07c328266e00a3ab6ecfaeab8a00cfdf9550
|
7
|
+
data.tar.gz: a66522cf4672acbbb377ee85feb42cab5443300df5fc2327a1c8034cc4f3bf49665f7d16612ebf02c719c27213f2652c372352c002ed0e4ee030f2b74361aab6
|
@@ -72,7 +72,7 @@ class DockerfileGenerator < Rails::Generators::Base
|
|
72
72
|
"libsqlite3-0" => "sqlite-dev",
|
73
73
|
"libtiff-dev" => "tiff-dev",
|
74
74
|
"libjemalloc2" => "jemalloc",
|
75
|
-
"libvips" => "vips
|
75
|
+
"libvips" => "vips",
|
76
76
|
"libyaml-dev" => "yaml-dev",
|
77
77
|
"node-gyp" => "gyp",
|
78
78
|
"pkg-config" => "pkgconfig",
|
@@ -511,7 +511,7 @@ private
|
|
511
511
|
|
512
512
|
def using_bun?
|
513
513
|
return @using_bun if @using_bun != nil
|
514
|
-
@using_bun = File.exist?("bun.config.js") || File.exist?("bun.lockb")
|
514
|
+
@using_bun = File.exist?("bun.config.js") || File.exist?("bun.lockb") || File.exist?("bun.lock")
|
515
515
|
end
|
516
516
|
|
517
517
|
def references_ruby_version_file?
|
@@ -1255,7 +1255,7 @@ private
|
|
1255
1255
|
client = api_client_dir
|
1256
1256
|
return unless client
|
1257
1257
|
|
1258
|
-
Dir["#{client}/{package.json,package-lock.json,yarn.lock,bun.lockb}"]
|
1258
|
+
Dir["#{client}/{package.json,package-lock.json,yarn.lock,bun.lockb,bun.lock}"]
|
1259
1259
|
end
|
1260
1260
|
|
1261
1261
|
def dbprep_command
|
@@ -1600,7 +1600,7 @@ private
|
|
1600
1600
|
def fix_database_config
|
1601
1601
|
yaml = IO.read("config/database.yml")
|
1602
1602
|
|
1603
|
-
production = YAML.load(yaml, aliases: true)["production"]
|
1603
|
+
production = YAML.load(yaml, aliases: true)["production"] rescue nil
|
1604
1604
|
return unless production.is_a?(Hash) && production.values.all?(Hash)
|
1605
1605
|
return if production.keys == [ "primary" ]
|
1606
1606
|
|
@@ -70,7 +70,7 @@ FROM base AS <%= parallel? ? 'pre' : '' %>build
|
|
70
70
|
FROM prebuild AS <% if using_bun? %>bun<% else %>node<% end %>
|
71
71
|
|
72
72
|
<% end -%>
|
73
|
-
<% if using_bun? and (!using_execjs? || File.exist?('bun.lockb')) -%>
|
73
|
+
<% if using_bun? and (!using_execjs? || File.exist?('bun.lockb') || File.exist?('bun.lock')) -%>
|
74
74
|
<%= render partial: 'install_node', locals: {bun_version: using_execjs? ? nil : bun_version} %>
|
75
75
|
|
76
76
|
<% elsif using_node? and (!using_execjs? || File.exist?('yarn.lock')) -%>
|
@@ -78,7 +78,7 @@ FROM prebuild AS <% if using_bun? %>bun<% else %>node<% end %>
|
|
78
78
|
|
79
79
|
<% end -%>
|
80
80
|
<% if parallel? -%>
|
81
|
-
<%= render partial: 'npm_install', locals: {sources: Dir[*%w(package.json yarn.lock bun.lockb)]} %>
|
81
|
+
<%= render partial: 'npm_install', locals: {sources: Dir[*%w(package.json yarn.lock bun.lockb bun.lock)]} %>
|
82
82
|
|
83
83
|
|
84
84
|
FROM prebuild AS build
|
@@ -149,7 +149,7 @@ ENV PATH=/usr/local/node/bin:$PATH
|
|
149
149
|
<% end -%>
|
150
150
|
|
151
151
|
<% elsif using_node? || using_bun? -%>
|
152
|
-
<%= render partial: 'npm_install', locals: {sources: Dir[*%w(.npmrc .yarnrc package.json package-lock.json yarn.lock bun.lockb)]} %>
|
152
|
+
<%= render partial: 'npm_install', locals: {sources: Dir[*%w(.npmrc .yarnrc package.json package-lock.json yarn.lock bun.lockb bun.lock)]} %>
|
153
153
|
|
154
154
|
<% end -%>
|
155
155
|
# Copy application code
|
@@ -2,6 +2,8 @@
|
|
2
2
|
RUN <%= pkg_cache.map {|name, path| "--mount=type=cache,id=#{name},sharing=locked,target=#{path} \\"}.join("\n ") %>
|
3
3
|
<%= repos %><%= pkg_update %> && \
|
4
4
|
<%= pkg_install %> <%= packages.join(" ") %>
|
5
|
+
<% elsif options.alpine? && clean -%>
|
6
|
+
RUN apk add --no-cache <%= packages.join(" ") %>
|
5
7
|
<% else -%>
|
6
8
|
RUN <%= repos %><%= pkg_update %> && \
|
7
9
|
<%= pkg_install %> <%= packages.join(" ") %><% if clean %> && \
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dockerfile-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.7.
|
4
|
+
version: 1.7.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sam Ruby
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-01-
|
10
|
+
date: 2025-01-31 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: rails
|