smartcloud 0.4.1 → 0.4.2

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: 771fafc023e8af4228d942f6629a05c1607f8b3bed34c79e79190083ce6b9d7b
4
- data.tar.gz: a57da3cf4e496b8fea60db3bde5b2a2f2ae1e55f0862659ffaa3208310cb0ac1
3
+ metadata.gz: ec440d4ec540e783e7f8af0e3c652421c200b856220f884cae1716fe8c1f90c2
4
+ data.tar.gz: 49e62cd6528a6e6187ed229f278715f5a757889cb39f32839c9cf36de52c1517
5
5
  SHA512:
6
- metadata.gz: 0a7a46a96df2b9ffecb71f283d160bec26a7fef5153c90d6583310a3b73928e20776ebe45470604e531556d12f6416dc6532963cacb9a06e6acd0ae5cb7edcdf
7
- data.tar.gz: 140f28602924a10a725612ea8011036dd3fca8b68a9860955492420e9461625883ccc255de0b174fc88f3b2e2847763ce210f0d6f0016b00d0e37ed5c63a9cba
6
+ metadata.gz: 5b4e59bba167cf3e516aaef9ed4978cca24f9c215ab47edf24560a2d7fdb1b8253ed978c8badeba30ee245d3c6cfaeca642e698b7126290886c86d530b0dd2f9
7
+ data.tar.gz: 898e3cd32b789be48255ac4acad80fcdceb6c3226cad971f59feb62636b7f39b8c1139e322c82f178f35bb9e265f8619ce7025322afad29ae3140e36deb6f9b6
@@ -59,16 +59,18 @@ module Smartcloud
59
59
  password: #{SecureRandom.hex(16)}
60
60
 
61
61
  minio:
62
- port: 9000
62
+ hostname: #{SecureRandom.hex(8)}
63
63
  access_key: #{SecureRandom.hex(8)}
64
64
  secret_key: #{SecureRandom.hex(16)}
65
+ browser: on
66
+ worm: off
65
67
 
66
68
  mysql:
67
69
  port: 3306
68
70
  root_password: #{SecureRandom.hex(16)}
69
71
  username: #{SecureRandom.hex(8)}
70
72
  password: #{SecureRandom.hex(16)}
71
- database_name: #{SecureRandom.hex(4)}_production
73
+ database_name: #{SecureRandom.hex(8)}
72
74
 
73
75
  elasticsearch:
74
76
  port: 9200
@@ -81,7 +83,7 @@ module Smartcloud
81
83
  database_port: 3306
82
84
  database_username: #{SecureRandom.hex(8)}_redmine
83
85
  database_password: #{SecureRandom.hex(16)}
84
- database_name: #{SecureRandom.hex(4)}_redmine_production
86
+ database_name: #{SecureRandom.hex(8)}_redmine
85
87
  # plugins_migrate: true
86
88
  YAML
87
89
  end
@@ -22,15 +22,22 @@ module Smartcloud
22
22
  print "-----> Creating container minio ... "
23
23
  if system("docker create \
24
24
  --name='minio' \
25
+ --env VIRTUAL_HOST=#{Smartcloud.credentials.minio[:hostname]}.#{Smartcloud.config.apps_domain} \
26
+ --env LETSENCRYPT_HOST=#{Smartcloud.credentials.minio[:hostname]}.#{Smartcloud.config.apps_domain} \
27
+ --env LETSENCRYPT_EMAIL=#{Smartcloud.config.sysadmin_email} \
28
+ --env LETSENCRYPT_TEST=false \
25
29
  --env MINIO_ACCESS_KEY=#{Smartcloud.credentials.minio[:access_key]} \
26
30
  --env MINIO_SECRET_KEY=#{Smartcloud.credentials.minio[:secret_key]} \
31
+ --env MINIO_BROWSER=#{Smartcloud.credentials.minio[:browser]} \
32
+ --env MINIO_WORM=#{Smartcloud.credentials.minio[:worm]} \
27
33
  --user `id -u`:`id -g` \
28
- #{"--publish='#{Smartcloud.credentials.minio[:port]}:#{Smartcloud.credentials.minio[:port]}'" if exposed == '--exposed'} \
29
34
  --volume='#{Smartcloud.config.user_home_path}/.smartcloud/grids/grid-minio/data:/data' \
30
35
  --restart='always' \
31
36
  --network='minio-network' \
32
37
  minio/minio:RELEASE.2020-02-27T00-23-05Z server /data", out: File::NULL)
33
38
 
39
+ system("docker network connect nginx-network minio")
40
+
34
41
  puts "done"
35
42
  print "-----> Starting container minio ... "
36
43
  if system("docker start minio", out: File::NULL)
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: false
2
2
 
3
3
  module Smartcloud
4
- VERSION = "0.4.1".freeze
4
+ VERSION = "0.4.2".freeze
5
5
 
6
6
  def self.version
7
7
  @@version ||= VERSION
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smartcloud
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Timeboard