dockerfile-rails 1.7.5 → 1.7.6

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: d70002b918b2110952ebace8ba264db76189fe7f5a27b1985313871e9318af8f
4
- data.tar.gz: 9cd5e7a99158113277978a9787cb099ba002d35d2dfaef2fba58d9abf1a67225
3
+ metadata.gz: 4ff1ee0c49a9ebbbb98ee4dd006a2e48d0c3c711e9f95057ab5b7048d2ee6916
4
+ data.tar.gz: eb82fe4009d35400dfab47747f2d3e115847a10e27f8ae17f405ac2db58dfba1
5
5
  SHA512:
6
- metadata.gz: 93bc70acc19970a2813bfcd9e56138dd3216ea6998e8a883cff27a305e8cd2a6694a750333249e1367eea05b37edccc2183f2a1d09b2fc1f8f65428d66f38af4
7
- data.tar.gz: 13f8868fbc6e5e09be03e3f323c9093e136b5b93d760d883d94057138f8e8c92ffd04841a5963a4c08175a011f03a44998ed7a396c2861da890ac4d3a6d8f001
6
+ metadata.gz: 9be4612b0a2d7cb9e8781e06f167a23732bff0f46cd3fc5233f26b41d7856859595e610b1a8ee169e65897e61fac03f928c1ada613576552650978a675a80c9f
7
+ data.tar.gz: '09c53a4ce9d8840ee27bd78a9acf0beea803d2200013484cb6c7a7db0dbcf55d5a68604938c24fd41aa036c3b154c79529a6119e8a440f27753dd5e530ec5010'
data/README.md CHANGED
@@ -67,7 +67,7 @@ are actually using. But should you be using DATABASE_URL, for example, at runti
67
67
  additional support may be needed:
68
68
 
69
69
  * `--litefs` - use [LiteFS](https://fly.io/docs/litefs/)
70
- * `--litestream` - use [LiteFS](https://litestream.io/)
70
+ * `--litestream` - use [Litestream](https://litestream.io/)
71
71
  * `--mysql` - add mysql libraries
72
72
  * `--postgresql` - add postgresql libraries
73
73
  * `--redis` - add redis libraries
@@ -120,6 +120,16 @@ Options are saved between runs into `config/dockerfile.yml`. To invert a boolea
120
120
 
121
121
  ## Testing
122
122
 
123
+ Run:
124
+
125
+ Installation:
126
+
127
+ ```
128
+ brew install postgresql mysql zstd
129
+ bundle config --local build.mysql2 "--with-opt-dir="$(brew --prefix zstd)""
130
+ bundle install
131
+ ```
132
+
123
133
  A single invocation of `rake test:all` will run all of the tests defined. dockerfile-rails has are three types of tests:
124
134
 
125
135
  * `rake test:rubocop` runs [rubocop](https://github.com/rubocop/rubocop) using the same options as the Rails codebase.
@@ -410,6 +410,11 @@ class DockerfileGenerator < Rails::Generators::Base
410
410
  missing = Set.new(base_packages + build_packages) -
411
411
  Set.new(dockerfile.scan(/[-\w]+/))
412
412
 
413
+ # https://github.com/docker-library/ruby/pull/497
414
+ # https://github.com/rails/rails/pull/54237
415
+ missing.delete("libyaml-dev")
416
+ missing.delete("yaml-dev")
417
+
413
418
  unless missing.empty?
414
419
  message = "The following packages are missing from the Dockerfile: #{missing.to_a.join(", ")}"
415
420
  STDERR.puts "\n" + shell.set_color(message, Thor::Shell::Color::RED, Thor::Shell::Color::BOLD)
@@ -1164,11 +1169,11 @@ private
1164
1169
  else
1165
1170
  command = Shellwords.split(procfile.values.first)
1166
1171
 
1167
- if command.first == "./bin/thrust"
1168
- command[1..]
1169
- else
1170
- command
1171
- end
1172
+ thrust = command.index("./bin/thrust")
1173
+ thrust = command.index("litestream:run") if thrust.nil?
1174
+ command = command[thrust + 1...] unless thrust.nil?
1175
+
1176
+ command
1172
1177
  end
1173
1178
  end
1174
1179
 
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.5
4
+ version: 1.7.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Ruby
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-01-31 00:00:00.000000000 Z
10
+ date: 2025-02-06 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: rails