smartcloud 0.6.0 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/{lib/smartcloud/grids/grid-elasticsearch/.keep → CHANGELOG.rdoc} +0 -0
- data/README.rdoc +9 -0
- data/bin/smartcloud +17 -17
- data/lib/smart_cloud.rb +24 -0
- data/lib/{smartcloud → smart_cloud}/apps/app.rb +22 -22
- data/lib/{smartcloud → smart_cloud}/apps/rails.rb +8 -8
- data/lib/{smartcloud → smart_cloud}/base.rb +3 -3
- data/lib/smart_cloud/boot.rb +24 -0
- data/lib/{smartcloud → smart_cloud}/buildpacker.rb +4 -4
- data/lib/{smartcloud → smart_cloud}/credentials.rb +6 -23
- data/lib/{smartcloud → smart_cloud}/docker.rb +9 -11
- data/lib/{smartcloud → smart_cloud}/engine.rb +13 -13
- data/lib/{smartcloud → smart_cloud}/engine/Dockerfile +2 -2
- data/lib/{smartcloud → smart_cloud}/engine/buildpacks/rails/Dockerfile +0 -0
- data/lib/smart_cloud/gem_version.rb +17 -0
- data/lib/{smartcloud → smart_cloud}/grids/nextcloud.rb +17 -17
- data/lib/{smartcloud/grids/grid-minio → smart_cloud/grids/nextcloud}/.keep +0 -0
- data/lib/{smartcloud → smart_cloud}/grids/redmine.rb +18 -18
- data/lib/{smartcloud/grids/grid-mysql/docker-entrypoint-initdb.d → smart_cloud/grids/redmine}/.keep +0 -0
- data/lib/{smartcloud → smart_cloud}/logger.rb +4 -4
- data/lib/{smartcloud → smart_cloud}/machine.rb +80 -80
- data/lib/{smartcloud → smart_cloud}/ssh.rb +6 -6
- data/lib/{smartcloud/grids/grid-nextcloud → smart_cloud/templates/dotsmartcloud/apps/containers}/.keep +0 -0
- data/lib/{smartcloud/grids/grid-nginx → smart_cloud/templates/dotsmartcloud/apps/repositories}/.keep +0 -0
- data/lib/{smartcloud → smart_cloud}/templates/dotsmartcloud/bin/smartcloud.sh +0 -0
- data/lib/{smartcloud → smart_cloud}/templates/dotsmartcloud/config/environment.rb +5 -5
- data/lib/{smartcloud → smart_cloud}/templates/dotsmartcloud/config/users.yml +0 -0
- data/lib/{smartcloud/grids/grid-redis → smart_cloud/templates/dotsmartcloud/grids/nextcloud/html}/.keep +0 -0
- data/lib/{smartcloud/grids/grid-redmine → smart_cloud/templates/dotsmartcloud/grids/nextcloud/html/apps}/.keep +0 -0
- data/lib/{smartcloud/grids/grid-solr → smart_cloud/templates/dotsmartcloud/grids/nextcloud/html}/config/.keep +0 -0
- data/lib/{smartcloud/grids/grid-solr/config/lib → smart_cloud/templates/dotsmartcloud/grids/redmine/files}/.keep +0 -0
- data/lib/{smartcloud/grids/grid-solr/docker-entrypoint-initdb.d → smart_cloud/templates/dotsmartcloud/tmp}/.keep +0 -0
- data/lib/{smartcloud → smart_cloud}/user.rb +6 -6
- data/lib/smart_cloud/version.rb +10 -0
- metadata +48 -241
- data/README.md +0 -81
- data/bin/buildpacker +0 -8
- data/bin/prereceiver +0 -8
- data/lib/smartcloud.rb +0 -24
- data/lib/smartcloud/boot.rb +0 -30
- data/lib/smartcloud/grids/elasticsearch.rb +0 -90
- data/lib/smartcloud/grids/grid-prereceiver/Dockerfile +0 -18
- data/lib/smartcloud/grids/grid-prereceiver/fcgiwrap/APKBUILD +0 -49
- data/lib/smartcloud/grids/grid-prereceiver/fcgiwrap/fcgiwrap.confd +0 -6
- data/lib/smartcloud/grids/grid-prereceiver/fcgiwrap/fcgiwrap.initd +0 -43
- data/lib/smartcloud/grids/grid-prereceiver/fcgiwrap/fcgiwrap.pre-install +0 -7
- data/lib/smartcloud/grids/grid-prereceiver/fcgiwrap/packages/main/x86_64/APKINDEX.tar.gz +0 -0
- data/lib/smartcloud/grids/grid-prereceiver/fcgiwrap/packages/main/x86_64/fcgiwrap-1.1.1-r4.apk +0 -0
- data/lib/smartcloud/grids/grid-prereceiver/fcgiwrap/packages/main/x86_64/fcgiwrap-doc-1.1.1-r4.apk +0 -0
- data/lib/smartcloud/grids/grid-prereceiver/fcgiwrap/packages/main/x86_64/fcgiwrap-openrc-1.1.1-r4.apk +0 -0
- data/lib/smartcloud/grids/grid-solr/config/README.txt +0 -77
- data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/contractions_ca.txt +0 -8
- data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/contractions_fr.txt +0 -15
- data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/contractions_ga.txt +0 -5
- data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/contractions_it.txt +0 -23
- data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/hyphenations_ga.txt +0 -5
- data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stemdict_nl.txt +0 -6
- data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stoptags_ja.txt +0 -420
- data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_ar.txt +0 -125
- data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_bg.txt +0 -193
- data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_ca.txt +0 -220
- data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_cz.txt +0 -172
- data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_da.txt +0 -110
- data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_de.txt +0 -294
- data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_el.txt +0 -78
- data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_en.txt +0 -54
- data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_es.txt +0 -356
- data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_eu.txt +0 -99
- data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_fa.txt +0 -313
- data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_fi.txt +0 -97
- data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_fr.txt +0 -186
- data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_ga.txt +0 -110
- data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_gl.txt +0 -161
- data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_hi.txt +0 -235
- data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_hu.txt +0 -211
- data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_hy.txt +0 -46
- data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_id.txt +0 -359
- data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_it.txt +0 -303
- data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_ja.txt +0 -127
- data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_lv.txt +0 -172
- data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_nl.txt +0 -119
- data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_no.txt +0 -194
- data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_pt.txt +0 -253
- data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_ro.txt +0 -233
- data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_ru.txt +0 -243
- data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_sv.txt +0 -133
- data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_th.txt +0 -119
- data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_tr.txt +0 -212
- data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/userdict_ja.txt +0 -29
- data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/managed-schema +0 -1007
- data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/params.json +0 -20
- data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/protwords.txt +0 -21
- data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/solrconfig.xml +0 -1355
- data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/stopwords.txt +0 -14
- data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/synonyms.txt +0 -29
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/_rest_managed.json +0 -1
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/_schema_analysis_stopwords_english.json +0 -38
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/_schema_analysis_synonyms_english.json +0 -11
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/clustering/carrot2/README.txt +0 -11
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/clustering/carrot2/kmeans-attributes.xml +0 -19
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/clustering/carrot2/lingo-attributes.xml +0 -24
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/clustering/carrot2/stc-attributes.xml +0 -19
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/currency.xml +0 -67
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/elevate.xml +0 -42
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/contractions_ca.txt +0 -8
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/contractions_fr.txt +0 -15
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/contractions_ga.txt +0 -5
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/contractions_it.txt +0 -23
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/hyphenations_ga.txt +0 -5
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stemdict_nl.txt +0 -6
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stoptags_ja.txt +0 -420
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_ar.txt +0 -125
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_bg.txt +0 -193
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_ca.txt +0 -220
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_ckb.txt +0 -136
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_cz.txt +0 -172
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_da.txt +0 -110
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_de.txt +0 -294
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_el.txt +0 -78
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_en.txt +0 -54
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_es.txt +0 -356
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_eu.txt +0 -99
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_fa.txt +0 -313
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_fi.txt +0 -97
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_fr.txt +0 -186
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_ga.txt +0 -110
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_gl.txt +0 -161
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_hi.txt +0 -235
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_hu.txt +0 -211
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_hy.txt +0 -46
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_id.txt +0 -359
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_it.txt +0 -303
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_ja.txt +0 -127
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_lv.txt +0 -172
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_nl.txt +0 -119
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_no.txt +0 -194
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_pt.txt +0 -253
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_ro.txt +0 -233
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_ru.txt +0 -243
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_sv.txt +0 -133
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_th.txt +0 -119
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_tr.txt +0 -212
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/userdict_ja.txt +0 -29
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/managed-schema +0 -1187
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/mapping-FoldToASCII.txt +0 -3813
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/mapping-ISOLatin1Accent.txt +0 -246
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/params.json +0 -11
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/protwords.txt +0 -21
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/solrconfig.xml +0 -1616
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/spellings.txt +0 -2
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/stopwords.txt +0 -14
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/synonyms.txt +0 -29
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/update-script.js +0 -53
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/README.txt +0 -101
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/VM_global_library.vm +0 -186
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/browse.vm +0 -33
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/cluster.vm +0 -19
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/cluster_results.vm +0 -31
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/debug.vm +0 -28
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/did_you_mean.vm +0 -11
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/error.vm +0 -11
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/facet_fields.vm +0 -24
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/facet_pivot.vm +0 -12
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/facet_queries.vm +0 -12
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/facet_ranges.vm +0 -23
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/facets.vm +0 -10
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/footer.vm +0 -43
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/head.vm +0 -37
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/header.vm +0 -7
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/hit.vm +0 -25
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/hit_grouped.vm +0 -43
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/hit_plain.vm +0 -25
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/join_doc.vm +0 -20
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/jquery.autocomplete.css +0 -48
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/jquery.autocomplete.js +0 -763
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/layout.vm +0 -24
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/main.css +0 -231
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/mime_type_lists.vm +0 -68
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/pagination_bottom.vm +0 -22
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/pagination_top.vm +0 -29
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/product_doc.vm +0 -32
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/query.vm +0 -42
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/query_form.vm +0 -64
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/query_group.vm +0 -43
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/query_spatial.vm +0 -75
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/results_list.vm +0 -22
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/richtext_doc.vm +0 -153
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/suggest.vm +0 -8
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/tabs.vm +0 -50
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/xslt/example.xsl +0 -132
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/xslt/example_atom.xsl +0 -67
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/xslt/example_rss.xsl +0 -66
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/xslt/luke.xsl +0 -337
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/xslt/updateXml.xsl +0 -70
- data/lib/smartcloud/grids/grid-solr/config/configsets/sunspot/conf/_rest_managed.json +0 -1
- data/lib/smartcloud/grids/grid-solr/config/configsets/sunspot/conf/admin-extra.html +0 -31
- data/lib/smartcloud/grids/grid-solr/config/configsets/sunspot/conf/currency.xml +0 -67
- data/lib/smartcloud/grids/grid-solr/config/configsets/sunspot/conf/elevate.xml +0 -36
- data/lib/smartcloud/grids/grid-solr/config/configsets/sunspot/conf/lang/stopwords_en.txt +0 -54
- data/lib/smartcloud/grids/grid-solr/config/configsets/sunspot/conf/mapping-ISOLatin1Accent.txt +0 -246
- data/lib/smartcloud/grids/grid-solr/config/configsets/sunspot/conf/protwords.txt +0 -21
- data/lib/smartcloud/grids/grid-solr/config/configsets/sunspot/conf/schema.xml +0 -278
- data/lib/smartcloud/grids/grid-solr/config/configsets/sunspot/conf/scripts.conf +0 -24
- data/lib/smartcloud/grids/grid-solr/config/configsets/sunspot/conf/solrconfig.xml +0 -632
- data/lib/smartcloud/grids/grid-solr/config/configsets/sunspot/conf/spellings.txt +0 -2
- data/lib/smartcloud/grids/grid-solr/config/configsets/sunspot/conf/synonyms.txt +0 -29
- data/lib/smartcloud/grids/grid-solr/config/solr.xml +0 -53
- data/lib/smartcloud/grids/grid-solr/config/zoo.cfg +0 -31
- data/lib/smartcloud/grids/grid-solr/sunspot/conf/schema.xml +0 -278
- data/lib/smartcloud/grids/grid-solr/sunspot/conf/solrconfig.xml +0 -632
- data/lib/smartcloud/grids/minio.rb +0 -77
- data/lib/smartcloud/grids/mysql.rb +0 -66
- data/lib/smartcloud/grids/nginx.rb +0 -137
- data/lib/smartcloud/grids/prereceiver.rb +0 -134
- data/lib/smartcloud/grids/redis.rb +0 -58
- data/lib/smartcloud/grids/solr.rb +0 -99
- data/lib/smartcloud/templates/dotsmartcloud/apps/containers/.keep +0 -0
- data/lib/smartcloud/templates/dotsmartcloud/apps/repositories/.keep +0 -0
- data/lib/smartcloud/templates/dotsmartcloud/grids/grid-elasticsearch/data/.keep +0 -0
- data/lib/smartcloud/templates/dotsmartcloud/grids/grid-elasticsearch/logs/.keep +0 -0
- data/lib/smartcloud/templates/dotsmartcloud/grids/grid-minio/data/.keep +0 -0
- data/lib/smartcloud/templates/dotsmartcloud/grids/grid-mysql/data/.keep +0 -0
- data/lib/smartcloud/templates/dotsmartcloud/grids/grid-nextcloud/html/.keep +0 -0
- data/lib/smartcloud/templates/dotsmartcloud/grids/grid-nextcloud/html/apps/.keep +0 -0
- data/lib/smartcloud/templates/dotsmartcloud/grids/grid-nextcloud/html/config/.keep +0 -0
- data/lib/smartcloud/templates/dotsmartcloud/grids/grid-nginx/certificates/.keep +0 -0
- data/lib/smartcloud/templates/dotsmartcloud/grids/grid-nginx/fastcgi.conf +0 -11
- data/lib/smartcloud/templates/dotsmartcloud/grids/grid-nginx/htpasswd/.keep +0 -0
- data/lib/smartcloud/templates/dotsmartcloud/grids/grid-nginx/nginx.tmpl +0 -373
- data/lib/smartcloud/templates/dotsmartcloud/grids/grid-prereceiver/pre-receive +0 -17
- data/lib/smartcloud/templates/dotsmartcloud/grids/grid-redis/data/.keep +0 -0
- data/lib/smartcloud/templates/dotsmartcloud/grids/grid-redmine/files/.keep +0 -0
- data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/solr/.keep +0 -0
- data/lib/smartcloud/templates/dotsmartcloud/tmp/.keep +0 -0
- data/lib/smartcloud/version.rb +0 -15
@@ -1,77 +0,0 @@
|
|
1
|
-
# The main Smartcloud Grids Minio driver
|
2
|
-
module Smartcloud
|
3
|
-
module Grids
|
4
|
-
class Minio < Smartcloud::Base
|
5
|
-
def initialize
|
6
|
-
end
|
7
|
-
|
8
|
-
def self.up(*args)
|
9
|
-
args.flatten!
|
10
|
-
exposed = args.empty? ? '' : args.shift
|
11
|
-
|
12
|
-
if Smartcloud::Docker.running?
|
13
|
-
# Creating networks
|
14
|
-
unless system("docker network inspect minio-network", [:out, :err] => File::NULL)
|
15
|
-
print "-----> Creating network minio-network ... "
|
16
|
-
if system("docker network create minio-network", out: File::NULL)
|
17
|
-
puts "done"
|
18
|
-
end
|
19
|
-
end
|
20
|
-
|
21
|
-
# Creating & Starting containers
|
22
|
-
print "-----> Creating container minio ... "
|
23
|
-
if system("docker create \
|
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 \
|
29
|
-
--env MINIO_ACCESS_KEY=#{Smartcloud.credentials.minio[:access_key]} \
|
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]} \
|
33
|
-
--user `id -u`:`id -g` \
|
34
|
-
--volume='#{Smartcloud.config.user_home_path}/.smartcloud/grids/grid-minio/data:/data' \
|
35
|
-
--restart='always' \
|
36
|
-
--network='minio-network' \
|
37
|
-
minio/minio:RELEASE.2020-02-27T00-23-05Z server /data", out: File::NULL)
|
38
|
-
|
39
|
-
# The alias is necessary to support internal network requests directed to minio container using public url
|
40
|
-
system("docker network connect --alias #{Smartcloud.credentials.minio[:hostname]}.#{Smartcloud.config.apps_domain} minio-network nginx")
|
41
|
-
system("docker network connect nginx-network minio")
|
42
|
-
|
43
|
-
puts "done"
|
44
|
-
print "-----> Starting container minio ... "
|
45
|
-
if system("docker start minio", out: File::NULL)
|
46
|
-
puts "done"
|
47
|
-
end
|
48
|
-
end
|
49
|
-
end
|
50
|
-
end
|
51
|
-
|
52
|
-
def self.down
|
53
|
-
if Smartcloud::Docker.running?
|
54
|
-
# Disconnecting networks
|
55
|
-
system("docker network disconnect nginx-network minio")
|
56
|
-
system("docker network disconnect minio-network nginx")
|
57
|
-
|
58
|
-
# Stopping & Removing containers - in reverse order
|
59
|
-
print "-----> Stopping container minio ... "
|
60
|
-
if system("docker stop 'minio'", out: File::NULL)
|
61
|
-
puts "done"
|
62
|
-
print "-----> Removing container minio ... "
|
63
|
-
if system("docker rm 'minio'", out: File::NULL)
|
64
|
-
puts "done"
|
65
|
-
end
|
66
|
-
end
|
67
|
-
|
68
|
-
# Removing networks
|
69
|
-
print "-----> Removing network minio-network ... "
|
70
|
-
if system("docker network rm minio-network", out: File::NULL)
|
71
|
-
puts "done"
|
72
|
-
end
|
73
|
-
end
|
74
|
-
end
|
75
|
-
end
|
76
|
-
end
|
77
|
-
end
|
@@ -1,66 +0,0 @@
|
|
1
|
-
# The main Smartcloud Grids Mysql driver
|
2
|
-
module Smartcloud
|
3
|
-
module Grids
|
4
|
-
class Mysql < Smartcloud::Base
|
5
|
-
def initialize
|
6
|
-
end
|
7
|
-
|
8
|
-
def self.up(*args)
|
9
|
-
args.flatten!
|
10
|
-
exposed = args.empty? ? '' : args.shift
|
11
|
-
|
12
|
-
if Smartcloud::Docker.running?
|
13
|
-
# Creating networks
|
14
|
-
unless system("docker network inspect mysql-network", [:out, :err] => File::NULL)
|
15
|
-
print "-----> Creating network mysql-network ... "
|
16
|
-
if system("docker network create mysql-network", out: File::NULL)
|
17
|
-
puts "done"
|
18
|
-
end
|
19
|
-
end
|
20
|
-
|
21
|
-
# Creating & Starting containers
|
22
|
-
print "-----> Creating container mysql ... "
|
23
|
-
if system("docker create \
|
24
|
-
--name='mysql' \
|
25
|
-
--env MYSQL_ROOT_PASSWORD=#{Smartcloud.credentials.mysql[:root_password]} \
|
26
|
-
--env MYSQL_USER=#{Smartcloud.credentials.mysql[:username]} \
|
27
|
-
--env MYSQL_PASSWORD=#{Smartcloud.credentials.mysql[:password]} \
|
28
|
-
--env MYSQL_DATABASE=#{Smartcloud.credentials.mysql[:database_name]} \
|
29
|
-
--user `id -u`:`id -g` \
|
30
|
-
#{"--publish='#{Smartcloud.credentials.mysql[:port]}:#{Smartcloud.credentials.mysql[:port]}'" if exposed == '--exposed'} \
|
31
|
-
--volume='#{Smartcloud.config.user_home_path}/.smartcloud/grids/grid-mysql/data:/var/lib/mysql' \
|
32
|
-
--restart='always' \
|
33
|
-
--network='mysql-network' \
|
34
|
-
mysql:8.0.18", out: File::NULL)
|
35
|
-
|
36
|
-
puts "done"
|
37
|
-
print "-----> Starting container mysql ... "
|
38
|
-
if system("docker start mysql", out: File::NULL)
|
39
|
-
puts "done"
|
40
|
-
end
|
41
|
-
end
|
42
|
-
end
|
43
|
-
end
|
44
|
-
|
45
|
-
def self.down
|
46
|
-
if Smartcloud::Docker.running?
|
47
|
-
# Stopping & Removing containers - in reverse order
|
48
|
-
print "-----> Stopping container mysql ... "
|
49
|
-
if system("docker stop 'mysql'", out: File::NULL)
|
50
|
-
puts "done"
|
51
|
-
print "-----> Removing container mysql ... "
|
52
|
-
if system("docker rm 'mysql'", out: File::NULL)
|
53
|
-
puts "done"
|
54
|
-
end
|
55
|
-
end
|
56
|
-
|
57
|
-
# Removing networks
|
58
|
-
print "-----> Removing network mysql-network ... "
|
59
|
-
if system("docker network rm mysql-network", out: File::NULL)
|
60
|
-
puts "done"
|
61
|
-
end
|
62
|
-
end
|
63
|
-
end
|
64
|
-
end
|
65
|
-
end
|
66
|
-
end
|
@@ -1,137 +0,0 @@
|
|
1
|
-
# The main Smartcloud Grids Nginx driver
|
2
|
-
module Smartcloud
|
3
|
-
module Grids
|
4
|
-
class Nginx < Smartcloud::Base
|
5
|
-
def initialize
|
6
|
-
end
|
7
|
-
|
8
|
-
def self.up(*args)
|
9
|
-
args.flatten!
|
10
|
-
exposed = args.empty? ? '' : args.shift
|
11
|
-
|
12
|
-
if Smartcloud::Docker.running?
|
13
|
-
# Creating volumes
|
14
|
-
print "-----> Creating volume nginx-confd ... "
|
15
|
-
if system("docker volume create nginx-confd", out: File::NULL)
|
16
|
-
puts "done"
|
17
|
-
end
|
18
|
-
|
19
|
-
print "-----> Creating volume nginx-vhost ... "
|
20
|
-
if system("docker volume create nginx-vhost", out: File::NULL)
|
21
|
-
puts "done"
|
22
|
-
end
|
23
|
-
|
24
|
-
print "-----> Creating volume nginx-shtml ... "
|
25
|
-
if system("docker volume create nginx-shtml", out: File::NULL)
|
26
|
-
puts "done"
|
27
|
-
end
|
28
|
-
|
29
|
-
# Creating networks
|
30
|
-
unless system("docker network inspect nginx-network", [:out, :err] => File::NULL)
|
31
|
-
print "-----> Creating network nginx-network ... "
|
32
|
-
if system("docker network create nginx-network", out: File::NULL)
|
33
|
-
puts "done"
|
34
|
-
end
|
35
|
-
end
|
36
|
-
|
37
|
-
# Creating & Starting containers
|
38
|
-
print "-----> Creating container nginx ... "
|
39
|
-
if system("docker create \
|
40
|
-
--name='nginx' \
|
41
|
-
#{"--publish='80:80' --publish='443:443'" if exposed == '--exposed'} \
|
42
|
-
--volume='nginx-confd:/etc/nginx/conf.d/' \
|
43
|
-
--volume='nginx-vhost:/etc/nginx/vhost.d/' \
|
44
|
-
--volume='nginx-shtml:/usr/share/nginx/html' \
|
45
|
-
--volume='#{Smartcloud.config.user_home_path}/.smartcloud/grids/grid-nginx/certificates:/etc/nginx/certs' \
|
46
|
-
--volume='#{Smartcloud.config.user_home_path}/.smartcloud/grids/grid-nginx/fastcgi.conf:/etc/nginx/fastcgi.conf:ro' \
|
47
|
-
--volume='#{Smartcloud.config.user_home_path}/.smartcloud/grids/grid-nginx/htpasswd:/etc/nginx/htpasswd:ro' \
|
48
|
-
--restart='always' \
|
49
|
-
--network='nginx-network' \
|
50
|
-
nginx:alpine", out: File::NULL)
|
51
|
-
|
52
|
-
puts "done"
|
53
|
-
print "-----> Starting container nginx ... "
|
54
|
-
if system("docker start nginx", out: File::NULL)
|
55
|
-
puts "done"
|
56
|
-
end
|
57
|
-
end
|
58
|
-
|
59
|
-
print "-----> Creating container nginx-gen ... "
|
60
|
-
if system("docker create \
|
61
|
-
--name='nginx-gen' \
|
62
|
-
--volumes-from nginx \
|
63
|
-
--volume='#{Smartcloud.config.user_home_path}/.smartcloud/grids/grid-nginx/nginx.tmpl:/etc/docker-gen/templates/nginx.tmpl:ro' \
|
64
|
-
--volume='/var/run/docker.sock:/tmp/docker.sock:ro' \
|
65
|
-
--restart='always' \
|
66
|
-
--network='nginx-network' \
|
67
|
-
jwilder/docker-gen \
|
68
|
-
-notify-sighup nginx -watch /etc/docker-gen/templates/nginx.tmpl /etc/nginx/conf.d/default.conf", out: File::NULL)
|
69
|
-
|
70
|
-
puts "done"
|
71
|
-
print "-----> Starting container nginx-gen ... "
|
72
|
-
if system("docker start nginx-gen", out: File::NULL)
|
73
|
-
puts "done"
|
74
|
-
end
|
75
|
-
end
|
76
|
-
|
77
|
-
print "-----> Creating container nginx-letsencrypt ... "
|
78
|
-
if system("docker create \
|
79
|
-
--name='nginx-letsencrypt' \
|
80
|
-
--env NGINX_PROXY_CONTAINER=nginx \
|
81
|
-
--env NGINX_DOCKER_GEN_CONTAINER=nginx-gen \
|
82
|
-
--env DEFAULT_EMAIL=#{Smartcloud.config.sysadmin_email} \
|
83
|
-
--volumes-from nginx \
|
84
|
-
--volume='/var/run/docker.sock:/var/run/docker.sock:ro' \
|
85
|
-
--restart='always' \
|
86
|
-
--network='nginx-network' \
|
87
|
-
jrcs/letsencrypt-nginx-proxy-companion", out: File::NULL)
|
88
|
-
|
89
|
-
puts "done"
|
90
|
-
print "-----> Starting container nginx-letsencrypt ... "
|
91
|
-
if system("docker start nginx-letsencrypt", out: File::NULL)
|
92
|
-
puts "done"
|
93
|
-
end
|
94
|
-
end
|
95
|
-
end
|
96
|
-
end
|
97
|
-
|
98
|
-
def self.down
|
99
|
-
if Smartcloud::Docker.running?
|
100
|
-
# Stopping & Removing containers - in reverse order
|
101
|
-
print "-----> Stopping container nginx-letsencrypt ... "
|
102
|
-
if system("docker stop 'nginx-letsencrypt'", out: File::NULL)
|
103
|
-
puts "done"
|
104
|
-
print "-----> Removing container nginx-letsencrypt ... "
|
105
|
-
if system("docker rm 'nginx-letsencrypt'", out: File::NULL)
|
106
|
-
puts "done"
|
107
|
-
end
|
108
|
-
end
|
109
|
-
|
110
|
-
print "-----> Stopping container nginx-gen ... "
|
111
|
-
if system("docker stop 'nginx-gen'", out: File::NULL)
|
112
|
-
puts "done"
|
113
|
-
print "-----> Removing container nginx-gen ... "
|
114
|
-
if system("docker rm 'nginx-gen'", out: File::NULL)
|
115
|
-
puts "done"
|
116
|
-
end
|
117
|
-
end
|
118
|
-
|
119
|
-
print "-----> Stopping container nginx ... "
|
120
|
-
if system("docker stop 'nginx'", out: File::NULL)
|
121
|
-
puts "done"
|
122
|
-
print "-----> Removing container nginx ... "
|
123
|
-
if system("docker rm 'nginx'", out: File::NULL)
|
124
|
-
puts "done"
|
125
|
-
end
|
126
|
-
end
|
127
|
-
|
128
|
-
# Removing networks
|
129
|
-
print "-----> Removing network nginx-network ... "
|
130
|
-
if system("docker network rm nginx-network", out: File::NULL)
|
131
|
-
puts "done"
|
132
|
-
end
|
133
|
-
end
|
134
|
-
end
|
135
|
-
end
|
136
|
-
end
|
137
|
-
end
|
@@ -1,134 +0,0 @@
|
|
1
|
-
# The main Smartcloud Grids Git driver
|
2
|
-
module Smartcloud
|
3
|
-
module Grids
|
4
|
-
class Prereceiver < Smartcloud::Base
|
5
|
-
|
6
|
-
def initialize
|
7
|
-
end
|
8
|
-
|
9
|
-
def install
|
10
|
-
self.uninstall
|
11
|
-
unless system("docker image inspect smartcloud/prereceiver", [:out, :err] => File::NULL)
|
12
|
-
print "-----> Creating image smartcloud/prereceiver ... "
|
13
|
-
if system("docker image build -t smartcloud/prereceiver \
|
14
|
-
#{Smartcloud.config.root_path}/lib/smartcloud/grids/grid-prereceiver", out: File::NULL)
|
15
|
-
puts "done"
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|
19
|
-
|
20
|
-
def uninstall
|
21
|
-
Smartcloud::Grids::Prereceiver.down
|
22
|
-
if system("docker image inspect smartcloud/prereceiver", [:out, :err] => File::NULL)
|
23
|
-
print "-----> Removing image smartcloud/prereceiver ... "
|
24
|
-
if system("docker image rm smartcloud/prereceiver", out: File::NULL)
|
25
|
-
puts "done"
|
26
|
-
end
|
27
|
-
end
|
28
|
-
end
|
29
|
-
|
30
|
-
def self.up
|
31
|
-
if Smartcloud::Docker.running?
|
32
|
-
if system("docker image inspect smartcloud/prereceiver", [:out, :err] => File::NULL) && system("docker image inspect smartcloud/buildpacks/rails", [:out, :err] => File::NULL)
|
33
|
-
print "-----> Creating container prereceiver ... "
|
34
|
-
if system("docker create \
|
35
|
-
--name='prereceiver' \
|
36
|
-
--env VIRTUAL_PROTO=fastcgi \
|
37
|
-
--env VIRTUAL_HOST=#{Smartcloud.config.git_domain} \
|
38
|
-
--env LETSENCRYPT_HOST=#{Smartcloud.config.git_domain} \
|
39
|
-
--env LETSENCRYPT_EMAIL=#{Smartcloud.config.sysadmin_email} \
|
40
|
-
--env LETSENCRYPT_TEST=#{Smartcloud.config.letsencrypt_test} \
|
41
|
-
--env GIT_PROJECT_ROOT=#{Smartcloud.config.user_home_path}/.smartcloud/apps/repositories \
|
42
|
-
--env GIT_HTTP_EXPORT_ALL="" \
|
43
|
-
--user `id -u` \
|
44
|
-
--workdir /home/`id -un`/.smartcloud/apps \
|
45
|
-
--expose='9000' \
|
46
|
-
--volume='#{Smartcloud.config.user_home_path}/.smartcloud/config:#{Smartcloud.config.user_home_path}/.smartcloud/config' \
|
47
|
-
--volume='#{Smartcloud.config.user_home_path}/.smartcloud/apps:#{Smartcloud.config.user_home_path}/.smartcloud/apps' \
|
48
|
-
--volume='#{Smartcloud.config.user_home_path}/.smartcloud/grids/grid-prereceiver:#{Smartcloud.config.user_home_path}/.smartcloud/grids/grid-prereceiver' \
|
49
|
-
--volume='/var/run/docker.sock:/var/run/docker.sock:ro' \
|
50
|
-
--restart='always' \
|
51
|
-
--network='nginx-network' \
|
52
|
-
smartcloud/prereceiver", out: File::NULL)
|
53
|
-
puts "done"
|
54
|
-
|
55
|
-
print "-----> Starting container prereceiver ... "
|
56
|
-
if system("docker start prereceiver", out: File::NULL)
|
57
|
-
puts "done"
|
58
|
-
end
|
59
|
-
end
|
60
|
-
end
|
61
|
-
end
|
62
|
-
end
|
63
|
-
|
64
|
-
def self.down
|
65
|
-
if Smartcloud::Docker.running?
|
66
|
-
# Stopping & Removing containers - in reverse order
|
67
|
-
if system("docker inspect -f '{{.State.Running}}' 'prereceiver'", [:out, :err] => File::NULL)
|
68
|
-
print "-----> Stopping container prereceiver ... "
|
69
|
-
if system("docker stop 'prereceiver'", out: File::NULL)
|
70
|
-
puts "done"
|
71
|
-
|
72
|
-
print "-----> Removing container prereceiver ... "
|
73
|
-
if system("docker rm 'prereceiver'", out: File::NULL)
|
74
|
-
puts "done"
|
75
|
-
end
|
76
|
-
end
|
77
|
-
else
|
78
|
-
puts "-----> Container 'prereceiver' is currently not running."
|
79
|
-
end
|
80
|
-
end
|
81
|
-
end
|
82
|
-
|
83
|
-
def self.prereceive(appname, username, oldrev, newrev, refname)
|
84
|
-
logger.formatter = proc do |severity, datetime, progname, message|
|
85
|
-
severity_text = { "DEBUG" => "\u{1f527} #{severity}:", "INFO" => " \u{276f}", "WARN" => "\u{2757} #{severity}:",
|
86
|
-
"ERROR" => "\u{274c} #{severity}:", "FATAL" => "\u{2b55} #{severity}:", "UNKNOWN" => "\u{2753} #{severity}:"
|
87
|
-
}
|
88
|
-
"\t\t\t\t#{severity_text[severity]} #{message}\n"
|
89
|
-
end
|
90
|
-
|
91
|
-
# Load vars and environment
|
92
|
-
container_path = "#{Smartcloud.config.user_home_path}/.smartcloud/apps/containers/#{appname}"
|
93
|
-
env_vars = Smartcloud::Apps::App.get_env_vars(container_path)
|
94
|
-
return unless env_vars
|
95
|
-
|
96
|
-
# Verify the user and ensure the user is correct and has access to this repository
|
97
|
-
unless env_vars['USERNAME'] == username
|
98
|
-
logger.error "Unauthorized."
|
99
|
-
return
|
100
|
-
end
|
101
|
-
|
102
|
-
# Only run this script for the master branch. You can remove this
|
103
|
-
# if block if you wish to run it for others as well.
|
104
|
-
if refname == "refs/heads/master"
|
105
|
-
logger.info "Loading Application ..."
|
106
|
-
|
107
|
-
# Note: There should be no space between + and " in version.
|
108
|
-
# Note: date will be UTC date until timezone has been changed.
|
109
|
-
version = `date +"%Y%m%d%H%M%S"`.chomp!
|
110
|
-
container_path_with_version = "#{container_path}/releases/#{version}"
|
111
|
-
|
112
|
-
unless Dir.exist? container_path_with_version
|
113
|
-
FileUtils.mkdir_p(container_path_with_version)
|
114
|
-
if system("git archive #{newrev} | tar -x -C #{container_path_with_version}")
|
115
|
-
# Start App
|
116
|
-
Smartcloud::Apps::App.start(appname)
|
117
|
-
else
|
118
|
-
logger.fatal "Could not extract new app version ... Failed."
|
119
|
-
return
|
120
|
-
end
|
121
|
-
else
|
122
|
-
logger.fatal "This version name already exists ... Failed."
|
123
|
-
return
|
124
|
-
end
|
125
|
-
else
|
126
|
-
# Allow the push to complete for all other branches normally.
|
127
|
-
exit 10
|
128
|
-
end
|
129
|
-
|
130
|
-
logger.formatter = nil
|
131
|
-
end
|
132
|
-
end
|
133
|
-
end
|
134
|
-
end
|
@@ -1,58 +0,0 @@
|
|
1
|
-
# The main Smartcloud Grids Redis driver
|
2
|
-
module Smartcloud
|
3
|
-
module Grids
|
4
|
-
class Redis < Smartcloud::Base
|
5
|
-
def initialize
|
6
|
-
end
|
7
|
-
|
8
|
-
def self.up
|
9
|
-
if Smartcloud::Docker.running?
|
10
|
-
# Creating networks
|
11
|
-
unless system("docker network inspect redis-network", [:out, :err] => File::NULL)
|
12
|
-
print "-----> Creating network redis-network ... "
|
13
|
-
if system("docker network create redis-network", out: File::NULL)
|
14
|
-
puts "done"
|
15
|
-
end
|
16
|
-
end
|
17
|
-
|
18
|
-
# Creating & Starting containers
|
19
|
-
print "-----> Creating container redis ... "
|
20
|
-
if system("docker create \
|
21
|
-
--name='redis' \
|
22
|
-
--user `id -u`:`id -g` \
|
23
|
-
--volume='#{Smartcloud.config.user_home_path}/.smartcloud/grids/grid-redis/data:/data' \
|
24
|
-
--restart='always' \
|
25
|
-
--network='redis-network' \
|
26
|
-
redis:6.0-rc3-alpine3.11 redis-server --appendonly yes", out: File::NULL)
|
27
|
-
|
28
|
-
puts "done"
|
29
|
-
print "-----> Starting container redis ... "
|
30
|
-
if system("docker start redis", out: File::NULL)
|
31
|
-
puts "done"
|
32
|
-
end
|
33
|
-
end
|
34
|
-
end
|
35
|
-
end
|
36
|
-
|
37
|
-
def self.down
|
38
|
-
if Smartcloud::Docker.running?
|
39
|
-
# Stopping & Removing containers - in reverse order
|
40
|
-
print "-----> Stopping container redis ... "
|
41
|
-
if system("docker stop 'redis'", out: File::NULL)
|
42
|
-
puts "done"
|
43
|
-
print "-----> Removing container redis ... "
|
44
|
-
if system("docker rm 'redis'", out: File::NULL)
|
45
|
-
puts "done"
|
46
|
-
end
|
47
|
-
end
|
48
|
-
|
49
|
-
# Removing networks
|
50
|
-
print "-----> Removing network redis-network ... "
|
51
|
-
if system("docker network rm redis-network", out: File::NULL)
|
52
|
-
puts "done"
|
53
|
-
end
|
54
|
-
end
|
55
|
-
end
|
56
|
-
end
|
57
|
-
end
|
58
|
-
end
|