dockerfile-rails 1.5.10 → 1.5.12
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 +5 -1
- data/lib/generators/dockerfile_generator.rb +10 -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: fdf6d8e58eec7c4d0eec797792faa410c9b0c09a7cfc478563e0f387166be802
|
4
|
+
data.tar.gz: e238089dfc97a18fb6809be291ffbdc08d65e58b21be427fb5f3d3c7db5986bf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7e7b085fb960accab2838308541e3a85eb08f3a069d486dc48e644f42d06d6ffb2d8f240ab2abf9df87dc10f82b2881ea5f93f264f9c192f3e32895bda7754d4
|
7
|
+
data.tar.gz: 94d2d844c5af3382f81c8956148878564ad1dc6ca5ff636d75c67ef031e18c4276ec980e729883ab0220474e30fc69565a319c592a83dda21387365d7aba121b
|
data/README.md
CHANGED
@@ -15,11 +15,15 @@ For more background:
|
|
15
15
|
|
16
16
|
## Usage
|
17
17
|
|
18
|
+
Install from the root of your Rails project by running the following.
|
19
|
+
|
18
20
|
```
|
19
21
|
bundle add dockerfile-rails --optimistic --group development
|
20
22
|
bin/rails generate dockerfile
|
21
23
|
```
|
22
24
|
|
25
|
+
The `--optomistic` flag will make sure you always get the latest `dockerfile-rails` gem when you run `bundle update && rails g dockerfile`.
|
26
|
+
|
23
27
|
### General option:
|
24
28
|
|
25
29
|
* `--force` - overwrite existing files
|
@@ -76,7 +80,7 @@ Not all of your needs can be determined by scanning your application. For examp
|
|
76
80
|
* `--env=name:value` - add an environment variable
|
77
81
|
* `--remove package...` - remove package from "to be added" list
|
78
82
|
|
79
|
-
|
83
|
+
Args and environment variables can be tailored to a specific build phase by adding `-base`, `-build`, or `-deploy` after the flag name (e.g `--add-build freetds-dev --add-deploy freetds-bin`). If no such suffix is found, the default for arg is `-base`, and the default for env is `-deploy`. Removal of an arg or environment variable is done by leaving the value blank (e.g `--env-build=PORT:`).
|
80
84
|
|
81
85
|
### Configuration:
|
82
86
|
|
@@ -968,7 +968,7 @@ private
|
|
968
968
|
|
969
969
|
version
|
970
970
|
rescue
|
971
|
-
"
|
971
|
+
"1.22.19"
|
972
972
|
end
|
973
973
|
|
974
974
|
|
@@ -1107,12 +1107,15 @@ private
|
|
1107
1107
|
return unless toml.include?("primary_region") # v2
|
1108
1108
|
|
1109
1109
|
# see if flyctl is in the path
|
1110
|
-
|
1111
|
-
|
1112
|
-
|
1113
|
-
|
1114
|
-
|
1115
|
-
|
1110
|
+
flyctl = (lambda do
|
1111
|
+
cmd = "flyctl"
|
1112
|
+
ENV["PATH"].split(File::PATH_SEPARATOR).each do |path|
|
1113
|
+
(ENV["PATHEXT"] ? ENV["PATHEXT"].split(";") : [""]).each do |ext|
|
1114
|
+
path = File.join(path, "#{cmd}#{ext}")
|
1115
|
+
return path if File.executable? path
|
1116
|
+
end
|
1117
|
+
end
|
1118
|
+
end).call
|
1116
1119
|
return unless flyctl
|
1117
1120
|
|
1118
1121
|
# see if secret is already set?
|
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.5.
|
4
|
+
version: 1.5.12
|
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-
|
11
|
+
date: 2023-10-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|