standard-procedure-anvil 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/anvil/app/host_installer.rb +5 -3
- data/lib/anvil/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 937d7c5bf6a5d1fd219dc4012cd4c155e48059ef1bdbdbd41d4cba92b7df2220
|
4
|
+
data.tar.gz: 230222ee2700fc95ab5924a5c944c26654bb9676d50ddbd903effd94b6e79c91
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7ca80eb610002df3ede6f540e897bbf002a3c69af908ebd5b372e12e6cee4c03bd98f71e34679ff15a5e5ae79661aff5e376937a42b88d87f2ef0dc4a977446b
|
7
|
+
data.tar.gz: 6274b4cb3fee26c8aa6ff544732259b90ef235c3b3266b03e9a0d524bad9a77b9cad2996a5feb660019c744986f83368ed0f7a263373467b10a56d610b5e065e
|
data/CHANGELOG.md
CHANGED
@@ -23,3 +23,7 @@ Successfully deployed a number of apps into production using this
|
|
23
23
|
- Updaetd the dokku cloudinit file to install dokku and docker from the official repositories
|
24
24
|
- Added support for %{HOSTNAME} in cloudinit files
|
25
25
|
- Improved reliability when reading configuration files
|
26
|
+
|
27
|
+
## [0.2.4] - 2024-07-15
|
28
|
+
|
29
|
+
- Set the RAM resource limit when installing an app
|
@@ -44,11 +44,13 @@ module Anvil
|
|
44
44
|
ssh.exec! "dokku ports:add app http:80:#{configuration_for_app["port"]}", "set_dokku_options"
|
45
45
|
ssh.exec! "dokku ports:add app https:443:#{configuration_for_app["port"]}", "set_dokku_options"
|
46
46
|
ssh.exec! "dokku nginx:set app client-max-body-size #{configuration_for_app["nginx"]["client_max_body_size"]}", "set_dokku_options"
|
47
|
+
resource_limit = configuration_for_app["resource_limit"].blank? ? "1024m" : configuration_for_app["resource_limit"]
|
48
|
+
ssh.exec! "dokku resource:limit --memory #{resource_limit} app"
|
47
49
|
ssh.exec! "dokku nginx:set app proxy-read-timeout #{configuration_for_app["nginx"]["proxy_read_timeout"]}", "set_dokku_options"
|
48
50
|
if configuration_for_app["load_balancer"]
|
49
|
-
ssh.exec! "dokku nginx:set app x-forwarded-for-value
|
50
|
-
ssh.exec! "dokku nginx:set app x-forwarded-port-value
|
51
|
-
ssh.exec! "dokku nginx:set app x-forwarded-proto-value
|
51
|
+
ssh.exec! "dokku nginx:set app x-forwarded-for-value '$http_x_forwarded_for'", "set_dokku_options"
|
52
|
+
ssh.exec! "dokku nginx:set app x-forwarded-port-value '$http_x_forwarded_port'", "set_dokku_options"
|
53
|
+
ssh.exec! "dokku nginx:set app x-forwarded-proto-value '$http_x_forwarded_proto'", "set_dokku_options"
|
52
54
|
end
|
53
55
|
ssh.exec! "dokku proxy:build-config app", "set_dokku_options"
|
54
56
|
end
|
data/lib/anvil/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: standard-procedure-anvil
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rahoul Baruah
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-07-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -180,7 +180,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
180
180
|
- !ruby/object:Gem::Version
|
181
181
|
version: '0'
|
182
182
|
requirements: []
|
183
|
-
rubygems_version: 3.
|
183
|
+
rubygems_version: 3.5.14
|
184
184
|
signing_key:
|
185
185
|
specification_version: 4
|
186
186
|
summary: Tools for managing servers and apps built using dokku
|