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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 98f86509b143ec7364ce16bf3b13a407b68e18d75c4baa98772eebe2b553fb85
4
- data.tar.gz: a6e71d4b0e94a329ec786144ffa195df6d7308631619f9accffe5d22589988fd
3
+ metadata.gz: 937d7c5bf6a5d1fd219dc4012cd4c155e48059ef1bdbdbd41d4cba92b7df2220
4
+ data.tar.gz: 230222ee2700fc95ab5924a5c944c26654bb9676d50ddbd903effd94b6e79c91
5
5
  SHA512:
6
- metadata.gz: f6c629afa2f500c15226489eb66a9161b7538c097e5533a5640df42cde9d87a21a8709ab2d9b088cb0f5c293c976cb3f25fbe9db606d765c63a13c6a798614e7
7
- data.tar.gz: 40a298d3fdf5e6880395524824ec62350c57ac6ee0e36cff15aea0d12211b974ed098f56e1d65861c8774ffebba5a44c0cd78559046eb13edafddcf407a76839
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 \"$http_x_forwarded_for\"", "set_dokku_options"
50
- ssh.exec! "dokku nginx:set app x-forwarded-port-value \"$http_x_forwarded_port\"", "set_dokku_options"
51
- ssh.exec! "dokku nginx:set app x-forwarded-proto-value \"$http_x_forwarded_proto\"", "set_dokku_options"
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Anvil
4
- VERSION = "0.2.3"
4
+ VERSION = "0.2.4"
5
5
  end
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.3
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-01-17 00:00:00.000000000 Z
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.4.22
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