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 +4 -4
- data/lib/smartcloud/credentials.rb +5 -3
- data/lib/smartcloud/grids/minio.rb +8 -1
- data/lib/smartcloud/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ec440d4ec540e783e7f8af0e3c652421c200b856220f884cae1716fe8c1f90c2
|
4
|
+
data.tar.gz: 49e62cd6528a6e6187ed229f278715f5a757889cb39f32839c9cf36de52c1517
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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(
|
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(
|
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)
|
data/lib/smartcloud/version.rb
CHANGED