smartmachine 0.9.0 → 1.0.1

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: 4236454efa3e9aea2e9424532fe89c1d66ab3fce70d79a2b6824ea619109bc58
4
- data.tar.gz: 28b98001cfe561efbddb0f5196db4bd4742040895cd117645b13847cf1529184
3
+ metadata.gz: d77d6ff76ab2f6f4337bebd16aa3151238818d1abc8adc35acbf70bc6d7d4489
4
+ data.tar.gz: c4bdace421a0d57b8ad4604660ab0950217720cb9aa7a9f3d037ae2ab6e8ee3e
5
5
  SHA512:
6
- metadata.gz: b97b4a9cbce32411bb67755b3b4189e2360a17771e5ac7a1806b7e5091bb0dca7349edbcd7b8b70fc8d3e40d674ea902583ec739b45bb64dffa62648fa5b5887
7
- data.tar.gz: 8fe92425eafcc525fa849e5496e70e8d7cbfc043a2990da44687289b3011e299b4433a9b5f7d31d2249725567d7af4742b27d0ca982448d23e6bf255270746dc
6
+ metadata.gz: df9e0408228f0af69b30ab32d2754f9231e25656b8947032d44ea9b592ca436c269df8f3a7f0ea77a9330e4e726d2cca9a727e7bcd1d037b21648f17c0cad376
7
+ data.tar.gz: c9b22b7c5d2ba4b82ce3d7d17f8254d51f3dc9cf8d805a3a554bf4becec31b46d3ef80b8d3cb582a529d652a3b0f67cb7f6e33c853421863f87dd7ff5e7f7123
data/README.md CHANGED
@@ -136,7 +136,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
136
136
 
137
137
  ## Contributing
138
138
 
139
- Bug reports and pull requests are welcome on GitHub at https://github.com/timeboardorg/smartmachine. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/timeboardorg/smartmachine/blob/main/CODE_OF_CONDUCT.md).
139
+ Bug reports and pull requests are welcome on GitHub at https://github.com/plainsource/smartmachine. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/plainsource/smartmachine/blob/main/CODE_OF_CONDUCT.md).
140
140
 
141
141
  ## License
142
142
 
@@ -144,4 +144,4 @@ The gem is available as open source under the terms of the [AGPL License](https:
144
144
 
145
145
  ## Code of Conduct
146
146
 
147
- Everyone interacting in the SmartMachine project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/timeboardorg/smartmachine/blob/main/CODE_OF_CONDUCT.md).
147
+ Everyone interacting in the SmartMachine project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/plainsource/smartmachine/blob/main/CODE_OF_CONDUCT.md).
@@ -1,7 +1,7 @@
1
1
  ARG SMARTMACHINE_VERSION
2
2
 
3
3
  FROM smartmachine/smartengine:$SMARTMACHINE_VERSION
4
- LABEL maintainer="Gaurav Goel <gaurav@timeboard.me>"
4
+ LABEL maintainer="plainsource <plainsource@humanmind.me>"
5
5
 
6
6
  # Ruby on Rails Essentials
7
7
  RUN apk add --update build-base && \
@@ -1,5 +1,5 @@
1
1
  FROM ruby:2.7.0-alpine3.11
2
- LABEL maintainer="Gaurav Goel <gaurav@timeboard.me>"
2
+ LABEL maintainer="plainsource <plainsource@humanmind.me>"
3
3
 
4
4
  # User
5
5
  # --- Fix to change docker gid to 998 (if it is in use) so that addgroup is free to create a group with docker gid.
@@ -1,7 +1,7 @@
1
1
  ARG SMARTMACHINE_VERSION
2
2
 
3
3
  FROM smartmachine/smartengine:$SMARTMACHINE_VERSION
4
- LABEL maintainer="Gaurav Goel <gaurav@timeboard.me>"
4
+ LABEL maintainer="plainsource <plainsource@humanmind.me>"
5
5
 
6
6
  # FCGI Essentials
7
7
  # --- IMPORTANT NOTE: This is custom built fcgiwrap package for alpine linux to account for NO_BUFFERING option.
@@ -10,6 +10,8 @@ module SmartMachine
10
10
  @appendonly = config.dig(:appendonly)
11
11
  @maxmemory = config.dig(:maxmemory)
12
12
  @maxmemory_policy = config.dig(:maxmemory_policy)
13
+ @modules = config.dig(:modules)&.map { |module_name| "--loadmodule /usr/lib/redis/modules/#{module_name}.so" } || []
14
+ @modules.push("Plugin /var/opt/redislabs/modules/rg/plugin/gears_python.so")
13
15
 
14
16
  @name = name.to_s
15
17
  @home_dir = File.expand_path('~')
@@ -37,7 +39,7 @@ module SmartMachine
37
39
  "--volume='#{@home_dir}/smartmachine/grids/redis/#{@name}/data:/data'",
38
40
  "--restart='always'",
39
41
  "--network='#{@name}-network'",
40
- "redis:6.2.6-alpine3.15 redis-server --port #{@port} --requirepass #{@password} --appendonly #{@appendonly} --maxmemory #{@maxmemory} --maxmemory-policy #{@maxmemory_policy}"
42
+ "redislabs/redismod:latest --port #{@port} --requirepass #{@password} --appendonly #{@appendonly} --maxmemory #{@maxmemory} --maxmemory-policy #{@maxmemory_policy} #{@modules.join(' ')}"
41
43
  ]
42
44
  if system(command.compact.join(" "), out: File::NULL)
43
45
  puts "done"
@@ -1,7 +1,7 @@
1
1
  ARG SMARTMACHINE_VERSION
2
2
 
3
3
  FROM smartmachine:$SMARTMACHINE_VERSION
4
- LABEL maintainer="Timeboard <hello@timeboard.me>"
4
+ LABEL maintainer="plainsource <plainsource@humanmind.me>"
5
5
 
6
6
  # Scheduler Essentials
7
7
  RUN apk add --update busybox-suid && \
@@ -4,6 +4,7 @@ redisone:
4
4
  appendonly: "yes"
5
5
  maxmemory: 250MB
6
6
  maxmemory_policy: allkeys-lfu
7
+ modules: []
7
8
 
8
9
  # redistwo:
9
10
  # port: 6380
@@ -11,3 +12,4 @@ redisone:
11
12
  # appendonly: "yes"
12
13
  # maxmemory: 250MB
13
14
  # maxmemory_policy: allkeys-lfu
15
+ # modules: []
@@ -15,9 +15,9 @@ module SmartMachine
15
15
  end
16
16
 
17
17
  module VERSION
18
- MAJOR = 0
19
- MINOR = 9
20
- TINY = 0
18
+ MAJOR = 1
19
+ MINOR = 0
20
+ TINY = 1
21
21
  PRE = nil
22
22
 
23
23
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smartmachine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
- - Gaurav Goel
7
+ - plainsource
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-04-14 00:00:00.000000000 Z
11
+ date: 2022-10-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: net-ssh
@@ -115,7 +115,7 @@ dependencies:
115
115
  description: SmartMachine is a full-stack deployment framework for rails optimized
116
116
  for admin programmer happiness and peaceful administration. It encourages natural
117
117
  simplicity by favoring convention over configuration.
118
- email: gaurav@timeboard.me
118
+ email: plainsource@humanmind.me
119
119
  executables:
120
120
  - smartmachine
121
121
  extensions: []
@@ -370,14 +370,14 @@ files:
370
370
  - lib/smart_machine/templates/dotsmartmachine/tmp/.keep
371
371
  - lib/smart_machine/templates/dotsmartmachine/vendor/.keep
372
372
  - lib/smart_machine/version.rb
373
- homepage: https://github.com/timeboardorg/smartmachine
373
+ homepage: https://github.com/plainsource/smartmachine
374
374
  licenses:
375
375
  - AGPL-3.0-or-later
376
376
  metadata:
377
- homepage_uri: https://github.com/timeboardorg/smartmachine
378
- bug_tracker_uri: https://github.com/timeboardorg/smartmachine/issues
379
- changelog_uri: https://github.com/timeboardorg/smartmachine/releases/tag/v0.9.0
380
- source_code_uri: https://github.com/timeboardorg/smartmachine/tree/v0.9.0/smartmachine
377
+ homepage_uri: https://github.com/plainsource/smartmachine
378
+ bug_tracker_uri: https://github.com/plainsource/smartmachine/issues
379
+ changelog_uri: https://github.com/plainsource/smartmachine/releases/tag/v1.0.1
380
+ source_code_uri: https://github.com/plainsource/smartmachine/tree/v1.0.1
381
381
  post_install_message:
382
382
  rdoc_options: []
383
383
  require_paths: