smartcloud 0.6.0 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (236) hide show
  1. checksums.yaml +4 -4
  2. data/{lib/smartcloud/grids/grid-elasticsearch/.keep → CHANGELOG.rdoc} +0 -0
  3. data/README.rdoc +9 -0
  4. data/bin/smartcloud +17 -17
  5. data/lib/smart_cloud.rb +24 -0
  6. data/lib/{smartcloud → smart_cloud}/apps/app.rb +22 -22
  7. data/lib/{smartcloud → smart_cloud}/apps/rails.rb +8 -8
  8. data/lib/{smartcloud → smart_cloud}/base.rb +3 -3
  9. data/lib/smart_cloud/boot.rb +24 -0
  10. data/lib/{smartcloud → smart_cloud}/buildpacker.rb +4 -4
  11. data/lib/{smartcloud → smart_cloud}/credentials.rb +6 -23
  12. data/lib/{smartcloud → smart_cloud}/docker.rb +9 -11
  13. data/lib/{smartcloud → smart_cloud}/engine.rb +13 -13
  14. data/lib/{smartcloud → smart_cloud}/engine/Dockerfile +2 -2
  15. data/lib/{smartcloud → smart_cloud}/engine/buildpacks/rails/Dockerfile +0 -0
  16. data/lib/smart_cloud/gem_version.rb +17 -0
  17. data/lib/{smartcloud → smart_cloud}/grids/nextcloud.rb +17 -17
  18. data/lib/{smartcloud/grids/grid-minio → smart_cloud/grids/nextcloud}/.keep +0 -0
  19. data/lib/{smartcloud → smart_cloud}/grids/redmine.rb +18 -18
  20. data/lib/{smartcloud/grids/grid-mysql/docker-entrypoint-initdb.d → smart_cloud/grids/redmine}/.keep +0 -0
  21. data/lib/{smartcloud → smart_cloud}/logger.rb +4 -4
  22. data/lib/{smartcloud → smart_cloud}/machine.rb +80 -80
  23. data/lib/{smartcloud → smart_cloud}/ssh.rb +6 -6
  24. data/lib/{smartcloud/grids/grid-nextcloud → smart_cloud/templates/dotsmartcloud/apps/containers}/.keep +0 -0
  25. data/lib/{smartcloud/grids/grid-nginx → smart_cloud/templates/dotsmartcloud/apps/repositories}/.keep +0 -0
  26. data/lib/{smartcloud → smart_cloud}/templates/dotsmartcloud/bin/smartcloud.sh +0 -0
  27. data/lib/{smartcloud → smart_cloud}/templates/dotsmartcloud/config/environment.rb +5 -5
  28. data/lib/{smartcloud → smart_cloud}/templates/dotsmartcloud/config/users.yml +0 -0
  29. data/lib/{smartcloud/grids/grid-redis → smart_cloud/templates/dotsmartcloud/grids/nextcloud/html}/.keep +0 -0
  30. data/lib/{smartcloud/grids/grid-redmine → smart_cloud/templates/dotsmartcloud/grids/nextcloud/html/apps}/.keep +0 -0
  31. data/lib/{smartcloud/grids/grid-solr → smart_cloud/templates/dotsmartcloud/grids/nextcloud/html}/config/.keep +0 -0
  32. data/lib/{smartcloud/grids/grid-solr/config/lib → smart_cloud/templates/dotsmartcloud/grids/redmine/files}/.keep +0 -0
  33. data/lib/{smartcloud/grids/grid-solr/docker-entrypoint-initdb.d → smart_cloud/templates/dotsmartcloud/tmp}/.keep +0 -0
  34. data/lib/{smartcloud → smart_cloud}/user.rb +6 -6
  35. data/lib/smart_cloud/version.rb +10 -0
  36. metadata +48 -241
  37. data/README.md +0 -81
  38. data/bin/buildpacker +0 -8
  39. data/bin/prereceiver +0 -8
  40. data/lib/smartcloud.rb +0 -24
  41. data/lib/smartcloud/boot.rb +0 -30
  42. data/lib/smartcloud/grids/elasticsearch.rb +0 -90
  43. data/lib/smartcloud/grids/grid-prereceiver/Dockerfile +0 -18
  44. data/lib/smartcloud/grids/grid-prereceiver/fcgiwrap/APKBUILD +0 -49
  45. data/lib/smartcloud/grids/grid-prereceiver/fcgiwrap/fcgiwrap.confd +0 -6
  46. data/lib/smartcloud/grids/grid-prereceiver/fcgiwrap/fcgiwrap.initd +0 -43
  47. data/lib/smartcloud/grids/grid-prereceiver/fcgiwrap/fcgiwrap.pre-install +0 -7
  48. data/lib/smartcloud/grids/grid-prereceiver/fcgiwrap/packages/main/x86_64/APKINDEX.tar.gz +0 -0
  49. data/lib/smartcloud/grids/grid-prereceiver/fcgiwrap/packages/main/x86_64/fcgiwrap-1.1.1-r4.apk +0 -0
  50. data/lib/smartcloud/grids/grid-prereceiver/fcgiwrap/packages/main/x86_64/fcgiwrap-doc-1.1.1-r4.apk +0 -0
  51. data/lib/smartcloud/grids/grid-prereceiver/fcgiwrap/packages/main/x86_64/fcgiwrap-openrc-1.1.1-r4.apk +0 -0
  52. data/lib/smartcloud/grids/grid-solr/config/README.txt +0 -77
  53. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/contractions_ca.txt +0 -8
  54. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/contractions_fr.txt +0 -15
  55. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/contractions_ga.txt +0 -5
  56. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/contractions_it.txt +0 -23
  57. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/hyphenations_ga.txt +0 -5
  58. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stemdict_nl.txt +0 -6
  59. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stoptags_ja.txt +0 -420
  60. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_ar.txt +0 -125
  61. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_bg.txt +0 -193
  62. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_ca.txt +0 -220
  63. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_cz.txt +0 -172
  64. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_da.txt +0 -110
  65. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_de.txt +0 -294
  66. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_el.txt +0 -78
  67. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_en.txt +0 -54
  68. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_es.txt +0 -356
  69. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_eu.txt +0 -99
  70. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_fa.txt +0 -313
  71. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_fi.txt +0 -97
  72. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_fr.txt +0 -186
  73. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_ga.txt +0 -110
  74. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_gl.txt +0 -161
  75. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_hi.txt +0 -235
  76. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_hu.txt +0 -211
  77. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_hy.txt +0 -46
  78. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_id.txt +0 -359
  79. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_it.txt +0 -303
  80. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_ja.txt +0 -127
  81. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_lv.txt +0 -172
  82. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_nl.txt +0 -119
  83. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_no.txt +0 -194
  84. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_pt.txt +0 -253
  85. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_ro.txt +0 -233
  86. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_ru.txt +0 -243
  87. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_sv.txt +0 -133
  88. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_th.txt +0 -119
  89. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_tr.txt +0 -212
  90. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/userdict_ja.txt +0 -29
  91. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/managed-schema +0 -1007
  92. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/params.json +0 -20
  93. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/protwords.txt +0 -21
  94. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/solrconfig.xml +0 -1355
  95. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/stopwords.txt +0 -14
  96. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/synonyms.txt +0 -29
  97. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/_rest_managed.json +0 -1
  98. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/_schema_analysis_stopwords_english.json +0 -38
  99. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/_schema_analysis_synonyms_english.json +0 -11
  100. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/clustering/carrot2/README.txt +0 -11
  101. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/clustering/carrot2/kmeans-attributes.xml +0 -19
  102. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/clustering/carrot2/lingo-attributes.xml +0 -24
  103. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/clustering/carrot2/stc-attributes.xml +0 -19
  104. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/currency.xml +0 -67
  105. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/elevate.xml +0 -42
  106. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/contractions_ca.txt +0 -8
  107. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/contractions_fr.txt +0 -15
  108. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/contractions_ga.txt +0 -5
  109. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/contractions_it.txt +0 -23
  110. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/hyphenations_ga.txt +0 -5
  111. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stemdict_nl.txt +0 -6
  112. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stoptags_ja.txt +0 -420
  113. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_ar.txt +0 -125
  114. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_bg.txt +0 -193
  115. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_ca.txt +0 -220
  116. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_ckb.txt +0 -136
  117. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_cz.txt +0 -172
  118. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_da.txt +0 -110
  119. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_de.txt +0 -294
  120. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_el.txt +0 -78
  121. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_en.txt +0 -54
  122. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_es.txt +0 -356
  123. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_eu.txt +0 -99
  124. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_fa.txt +0 -313
  125. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_fi.txt +0 -97
  126. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_fr.txt +0 -186
  127. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_ga.txt +0 -110
  128. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_gl.txt +0 -161
  129. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_hi.txt +0 -235
  130. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_hu.txt +0 -211
  131. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_hy.txt +0 -46
  132. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_id.txt +0 -359
  133. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_it.txt +0 -303
  134. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_ja.txt +0 -127
  135. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_lv.txt +0 -172
  136. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_nl.txt +0 -119
  137. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_no.txt +0 -194
  138. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_pt.txt +0 -253
  139. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_ro.txt +0 -233
  140. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_ru.txt +0 -243
  141. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_sv.txt +0 -133
  142. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_th.txt +0 -119
  143. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_tr.txt +0 -212
  144. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/userdict_ja.txt +0 -29
  145. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/managed-schema +0 -1187
  146. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/mapping-FoldToASCII.txt +0 -3813
  147. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/mapping-ISOLatin1Accent.txt +0 -246
  148. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/params.json +0 -11
  149. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/protwords.txt +0 -21
  150. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/solrconfig.xml +0 -1616
  151. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/spellings.txt +0 -2
  152. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/stopwords.txt +0 -14
  153. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/synonyms.txt +0 -29
  154. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/update-script.js +0 -53
  155. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/README.txt +0 -101
  156. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/VM_global_library.vm +0 -186
  157. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/browse.vm +0 -33
  158. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/cluster.vm +0 -19
  159. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/cluster_results.vm +0 -31
  160. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/debug.vm +0 -28
  161. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/did_you_mean.vm +0 -11
  162. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/error.vm +0 -11
  163. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/facet_fields.vm +0 -24
  164. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/facet_pivot.vm +0 -12
  165. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/facet_queries.vm +0 -12
  166. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/facet_ranges.vm +0 -23
  167. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/facets.vm +0 -10
  168. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/footer.vm +0 -43
  169. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/head.vm +0 -37
  170. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/header.vm +0 -7
  171. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/hit.vm +0 -25
  172. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/hit_grouped.vm +0 -43
  173. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/hit_plain.vm +0 -25
  174. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/join_doc.vm +0 -20
  175. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/jquery.autocomplete.css +0 -48
  176. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/jquery.autocomplete.js +0 -763
  177. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/layout.vm +0 -24
  178. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/main.css +0 -231
  179. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/mime_type_lists.vm +0 -68
  180. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/pagination_bottom.vm +0 -22
  181. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/pagination_top.vm +0 -29
  182. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/product_doc.vm +0 -32
  183. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/query.vm +0 -42
  184. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/query_form.vm +0 -64
  185. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/query_group.vm +0 -43
  186. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/query_spatial.vm +0 -75
  187. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/results_list.vm +0 -22
  188. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/richtext_doc.vm +0 -153
  189. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/suggest.vm +0 -8
  190. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/tabs.vm +0 -50
  191. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/xslt/example.xsl +0 -132
  192. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/xslt/example_atom.xsl +0 -67
  193. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/xslt/example_rss.xsl +0 -66
  194. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/xslt/luke.xsl +0 -337
  195. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/xslt/updateXml.xsl +0 -70
  196. data/lib/smartcloud/grids/grid-solr/config/configsets/sunspot/conf/_rest_managed.json +0 -1
  197. data/lib/smartcloud/grids/grid-solr/config/configsets/sunspot/conf/admin-extra.html +0 -31
  198. data/lib/smartcloud/grids/grid-solr/config/configsets/sunspot/conf/currency.xml +0 -67
  199. data/lib/smartcloud/grids/grid-solr/config/configsets/sunspot/conf/elevate.xml +0 -36
  200. data/lib/smartcloud/grids/grid-solr/config/configsets/sunspot/conf/lang/stopwords_en.txt +0 -54
  201. data/lib/smartcloud/grids/grid-solr/config/configsets/sunspot/conf/mapping-ISOLatin1Accent.txt +0 -246
  202. data/lib/smartcloud/grids/grid-solr/config/configsets/sunspot/conf/protwords.txt +0 -21
  203. data/lib/smartcloud/grids/grid-solr/config/configsets/sunspot/conf/schema.xml +0 -278
  204. data/lib/smartcloud/grids/grid-solr/config/configsets/sunspot/conf/scripts.conf +0 -24
  205. data/lib/smartcloud/grids/grid-solr/config/configsets/sunspot/conf/solrconfig.xml +0 -632
  206. data/lib/smartcloud/grids/grid-solr/config/configsets/sunspot/conf/spellings.txt +0 -2
  207. data/lib/smartcloud/grids/grid-solr/config/configsets/sunspot/conf/synonyms.txt +0 -29
  208. data/lib/smartcloud/grids/grid-solr/config/solr.xml +0 -53
  209. data/lib/smartcloud/grids/grid-solr/config/zoo.cfg +0 -31
  210. data/lib/smartcloud/grids/grid-solr/sunspot/conf/schema.xml +0 -278
  211. data/lib/smartcloud/grids/grid-solr/sunspot/conf/solrconfig.xml +0 -632
  212. data/lib/smartcloud/grids/minio.rb +0 -77
  213. data/lib/smartcloud/grids/mysql.rb +0 -66
  214. data/lib/smartcloud/grids/nginx.rb +0 -137
  215. data/lib/smartcloud/grids/prereceiver.rb +0 -134
  216. data/lib/smartcloud/grids/redis.rb +0 -58
  217. data/lib/smartcloud/grids/solr.rb +0 -99
  218. data/lib/smartcloud/templates/dotsmartcloud/apps/containers/.keep +0 -0
  219. data/lib/smartcloud/templates/dotsmartcloud/apps/repositories/.keep +0 -0
  220. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-elasticsearch/data/.keep +0 -0
  221. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-elasticsearch/logs/.keep +0 -0
  222. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-minio/data/.keep +0 -0
  223. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-mysql/data/.keep +0 -0
  224. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-nextcloud/html/.keep +0 -0
  225. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-nextcloud/html/apps/.keep +0 -0
  226. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-nextcloud/html/config/.keep +0 -0
  227. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-nginx/certificates/.keep +0 -0
  228. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-nginx/fastcgi.conf +0 -11
  229. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-nginx/htpasswd/.keep +0 -0
  230. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-nginx/nginx.tmpl +0 -373
  231. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-prereceiver/pre-receive +0 -17
  232. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-redis/data/.keep +0 -0
  233. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-redmine/files/.keep +0 -0
  234. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/solr/.keep +0 -0
  235. data/lib/smartcloud/templates/dotsmartcloud/tmp/.keep +0 -0
  236. data/lib/smartcloud/version.rb +0 -15
@@ -1,14 +0,0 @@
1
- # Licensed to the Apache Software Foundation (ASF) under one or more
2
- # contributor license agreements. See the NOTICE file distributed with
3
- # this work for additional information regarding copyright ownership.
4
- # The ASF licenses this file to You under the Apache License, Version 2.0
5
- # (the "License"); you may not use this file except in compliance with
6
- # the License. You may obtain a copy of the License at
7
- #
8
- # http://www.apache.org/licenses/LICENSE-2.0
9
- #
10
- # Unless required by applicable law or agreed to in writing, software
11
- # distributed under the License is distributed on an "AS IS" BASIS,
12
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- # See the License for the specific language governing permissions and
14
- # limitations under the License.
@@ -1,29 +0,0 @@
1
- # The ASF licenses this file to You under the Apache License, Version 2.0
2
- # (the "License"); you may not use this file except in compliance with
3
- # the License. You may obtain a copy of the License at
4
- #
5
- # http://www.apache.org/licenses/LICENSE-2.0
6
- #
7
- # Unless required by applicable law or agreed to in writing, software
8
- # distributed under the License is distributed on an "AS IS" BASIS,
9
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10
- # See the License for the specific language governing permissions and
11
- # limitations under the License.
12
-
13
- #-----------------------------------------------------------------------
14
- #some test synonym mappings unlikely to appear in real input text
15
- aaafoo => aaabar
16
- bbbfoo => bbbfoo bbbbar
17
- cccfoo => cccbar cccbaz
18
- fooaaa,baraaa,bazaaa
19
-
20
- # Some synonym groups specific to this example
21
- GB,gib,gigabyte,gigabytes
22
- MB,mib,megabyte,megabytes
23
- Television, Televisions, TV, TVs
24
- #notice we use "gib" instead of "GiB" so any WordDelimiterGraphFilter coming
25
- #after us won't split it into two words.
26
-
27
- # Synonym mappings can be used for spelling correction too
28
- pixima => pixma
29
-
@@ -1,53 +0,0 @@
1
- /*
2
- This is a basic skeleton JavaScript update processor.
3
-
4
- In order for this to be executed, it must be properly wired into solrconfig.xml; by default it is commented out in
5
- the example solrconfig.xml and must be uncommented to be enabled.
6
-
7
- See http://wiki.apache.org/solr/ScriptUpdateProcessor for more details.
8
- */
9
-
10
- function processAdd(cmd) {
11
-
12
- doc = cmd.solrDoc; // org.apache.solr.common.SolrInputDocument
13
- id = doc.getFieldValue("id");
14
- logger.info("update-script#processAdd: id=" + id);
15
-
16
- // Set a field value:
17
- // doc.setField("foo_s", "whatever");
18
-
19
- // Get a configuration parameter:
20
- // config_param = params.get('config_param'); // "params" only exists if processor configured with <lst name="params">
21
-
22
- // Get a request parameter:
23
- // some_param = req.getParams().get("some_param")
24
-
25
- // Add a field of field names that match a pattern:
26
- // - Potentially useful to determine the fields/attributes represented in a result set, via faceting on field_name_ss
27
- // field_names = doc.getFieldNames().toArray();
28
- // for(i=0; i < field_names.length; i++) {
29
- // field_name = field_names[i];
30
- // if (/attr_.*/.test(field_name)) { doc.addField("attribute_ss", field_names[i]); }
31
- // }
32
-
33
- }
34
-
35
- function processDelete(cmd) {
36
- // no-op
37
- }
38
-
39
- function processMergeIndexes(cmd) {
40
- // no-op
41
- }
42
-
43
- function processCommit(cmd) {
44
- // no-op
45
- }
46
-
47
- function processRollback(cmd) {
48
- // no-op
49
- }
50
-
51
- function finish() {
52
- // no-op
53
- }
@@ -1,101 +0,0 @@
1
- Introduction
2
- ------------
3
- Solr Search Velocity Templates
4
-
5
- A quick demo of using Solr using http://wiki.apache.org/solr/VelocityResponseWriter
6
-
7
- You typically access these templates via:
8
- http://localhost:8983/solr/collection1/browse
9
-
10
- It's called "browse" because you can click around with your mouse
11
- without needing to type any search terms. And of course it
12
- also works as a standard search app as well.
13
-
14
- Known Limitations
15
- -----------------
16
- * The /browse and the VelocityResponseWriter component
17
- serve content directly from Solr, which usually requires
18
- Solr's HTTP API to be exposed. Advanced users could
19
- potentially access other parts of Solr directly.
20
- * There are some hard coded fields in these templates.
21
- Since these templates live under conf, they should be
22
- considered part of the overall configuration, and
23
- must be coordinated with schema.xml and solrconfig.xml
24
-
25
- Velocity Info
26
- -------------
27
- Java-based template language.
28
-
29
- It's nice in this context because change to the templates
30
- are immediately visible in browser on the next visit.
31
-
32
- Links:
33
- http://velocity.apache.org
34
- http://wiki.apache.org/velocity/
35
- http://velocity.apache.org/engine/releases/velocity-1.7/user-guide.html
36
-
37
-
38
- File List
39
- ---------
40
-
41
- System and Misc:
42
- VM_global_library.vm - Macros used other templates,
43
- exact filename is important for Velocity to see it
44
- error.vm - shows errors, if any
45
- debug.vm - includes toggle links for "explain" and "all fields"
46
- activated by debug link in footer.vm
47
- README.txt - this file
48
-
49
- Overall Page Composition:
50
- browse.vm - Main entry point into templates
51
- layout.vm - overall HTML page layout
52
- head.vm - elements in the <head> section of the HTML document
53
- header.vm - top section of page visible to users
54
- footer.vm - bottom section of page visible to users,
55
- includes debug and help links
56
- main.css - CSS style for overall pages
57
- see also jquery.autocomplete.css
58
-
59
- Query Form and Options:
60
- query_form.vm - renders query form
61
- query_group.vm - group by fields
62
- e.g.: Manufacturer or Poplularity
63
- query_spatial.vm - select box for location based Geospacial search
64
-
65
- Spelling Suggestions:
66
- did_you_mean.vm - hyperlinked spelling suggestions in results
67
- suggest.vm - dynamic spelling suggestions
68
- as you type in the search form
69
- jquery.autocomplete.js - supporting files for dynamic suggestions
70
- jquery.autocomplete.css - Most CSS is defined in main.css
71
-
72
-
73
- Search Results, General:
74
- (see also browse.vm)
75
- tabs.vm - provides navigation to advanced search options
76
- pagination_top.vm - paging and staticis at top of results
77
- pagination_bottom.vm - paging and staticis at bottom of results
78
- results_list.vm
79
- hit.vm - called for each matching doc,
80
- decides which template to use
81
- hit_grouped.vm - display results grouped by field values
82
- product_doc.vm - display a Product
83
- join_doc.vm - display a joined document
84
- richtext_doc.vm - display a complex/misc. document
85
- hit_plain.vm - basic display of all fields,
86
- edit results_list.vm to enable this
87
-
88
-
89
- Search Results, Facets & Clusters:
90
- facets.vm - calls the 4 facet and 1 cluster template
91
- facet_fields.vm - display facets based on field values
92
- e.g.: fields specified by &facet.field=
93
- facet_queries.vm - display facets based on specific facet queries
94
- e.g.: facets specified by &facet.query=
95
- facet_ranges.vm - display facets based on ranges
96
- e.g.: ranges specified by &facet.range=
97
- facet_pivot.vm - display pivot based facets
98
- e.g.: facets specified by &facet.pivot=
99
- cluster.vm - if clustering is available
100
- then call cluster_results.vm
101
- cluster_results.vm - actual rendering of clusters
@@ -1,186 +0,0 @@
1
- #**
2
- * Global macros used by other templates.
3
- * This file must be named VM_global_library.vm
4
- * in order for Velocity to find it.
5
- *#
6
-
7
- #macro(param $key)$request.params.get($key)#end
8
-
9
- #macro(url_root)/solr#end
10
-
11
- ## TODO: s/url_for_solr/url_for_core/ and s/url_root/url_for_solr/
12
- #macro(core_name)$request.core.name#end
13
- #macro(url_for_solr)#{url_root}#if($request.core.name != "")/$request.core.name#end#end
14
- #macro(url_for_home)#url_for_solr/browse#end
15
-
16
- #macro(q)&q=$!{esc.url($params.get('q'))}#end
17
-
18
- #macro(fqs $p)#foreach($fq in $p)#if($velocityCount>1)&#{end}fq=$esc.url($fq)#end#end
19
-
20
- #macro(debug)#if($request.params.get('debugQuery'))&debugQuery=true#end#end
21
-
22
- #macro(boostPrice)#if($request.params.get('bf') == 'price')&bf=price#end#end
23
-
24
- #macro(annotate)#if($request.params.get('annotateBrowse'))&annotateBrowse=true#end#end
25
-
26
- #macro(annTitle $msg)#if($annotate == true)title="$msg"#end#end
27
-
28
- #macro(spatial)#if($request.params.get('sfield'))&sfield=store#end#if($request.params.get('pt'))&pt=$request.params.get('pt')#end#if($request.params.get('d'))&d=$request.params.get('d')#end#end
29
-
30
- #macro(qOpts)#set($queryOpts = $request.params.get("queryOpts"))#if($queryOpts && $queryOpts != "")&queryOpts=$queryOpts#end#end
31
-
32
- #macro(group)#if($request.params.getBool("group") == true)&group=true#end#if($request.params.get("group.field"))#foreach($grp in $request.params.getParams('group.field'))&group.field=$grp#end#end#end
33
-
34
- #macro(sort $p)#if($p)#foreach($s in $p)&sort=$esc.url($s)#end#end#end
35
-
36
- #macro(lensNoQ)?#if($request.params.getParams('fq') and $list.size($request.params.getParams('fq')) > 0)&#fqs($request.params.getParams('fq'))#end#sort($request.params.getParams('sort'))#debug#boostPrice#annotate#spatial#qOpts#group#end
37
- #macro(lens)#lensNoQ#q#end
38
-
39
-
40
- #macro(url_for_lens)#{url_for_home}#lens#end
41
-
42
- #macro(url_for_start $start)#url_for_home#lens&start=$start#end
43
-
44
- #macro(url_for_filters $p)#url_for_home?#q#boostPrice#spatial#qOpts#if($list.size($p) > 0)&#fqs($p)#end#debug#end
45
-
46
- #macro(url_for_nested_facet_query $field)#url_for_home#lens&fq=$esc.url($field)#end
47
-
48
- ## TODO: convert to use {!raw f=$field}$value (with escaping of course)
49
- #macro(url_for_facet_filter $field $value)#url_for_home#lens&fq=#if($value!=$null)$esc.url($field):%22$esc.url($value)%22#else-$esc.url($field):[*+TO+*]#end#end
50
-
51
- #macro(url_for_facet_date_filter $field $value)#url_for_home#lens&fq=$esc.url($field):$esc.url($value)#end
52
-
53
- #macro(url_for_facet_range_filter $field $value)#url_for_home#lens&fq=$esc.url($field):$esc.url($value)#end
54
-
55
-
56
- #macro(link_to_previous_page $text)
57
- #if($page.current_page_number > 1)
58
- #set($prev_start = $page.start - $page.results_per_page)
59
- <a class="prev-page" href="#url_for_start($prev_start)">$text</a>
60
- #end
61
- #end
62
-
63
- #macro(link_to_next_page $text)
64
- #if($page.current_page_number < $page.page_count)
65
- #set($next_start = $page.start + $page.results_per_page)
66
- <a class="next-page" href="#url_for_start($next_start)">$text</a>
67
- #end
68
- #end
69
-
70
- #macro(link_to_page $page_number $text)
71
- #if($page_number == $page.current_page_number)
72
- $text
73
- #else
74
- #if($page_number <= $page.page_count)
75
- #set($page_start = $page_number * $page.results_per_page - $page.results_per_page)
76
- <a class="page" href="#url_for_start($page_start)">$text</a>
77
- #end
78
- #end
79
- #end
80
-
81
- #macro(display_facet_query $field, $display, $fieldName)
82
- #if($field.size() > 0)
83
- <span class="facet-field">$display</span>
84
- <ul>
85
- #foreach ($facet in $field)
86
- #if ($facet.value > 0)
87
- #set($facetURL = "#url_for_nested_facet_query($facet.key)")
88
- #if ($facetURL != '')
89
- <li><a href="$facetURL">$facet.key</a> ($facet.value)</li>
90
- #end
91
- #end
92
- #end
93
- </ul>
94
- #end
95
- #end
96
-
97
-
98
- #macro(display_facet_range $field, $display, $fieldName, $start, $end, $gap, $before, $after)
99
- <span class="facet-field">$display</span>
100
- <ul>
101
- #if($before && $before != "")
102
- #set($value = "[* TO " + "#format_value($start)" + "}")
103
- #set($facetURL = "#url_for_facet_range_filter($fieldName, $value)")
104
- <li><a href="$facetURL">Less than #format_value($start)</a> ($before)</li>
105
- #end
106
- #foreach ($facet in $field)
107
- #set($rangeEnd = "#range_get_to_value($facet.key, $gap)")
108
- #set($value = "[" + $facet.key + " TO " + $rangeEnd + "}")
109
- #set($facetURL = "#url_for_facet_range_filter($fieldName, $value)")
110
- #if ($facetURL != '')
111
- <li><a href="$facetURL">$facet.key - #format_value($rangeEnd)</a> ($facet.value)</li>
112
- #end
113
- #end
114
- #if($end && $end != "" && $after > 0)
115
- #set($value = "[" + "#format_value($end)" + " TO *}")
116
- #set($facetURL = "#url_for_facet_range_filter($fieldName, $value)")
117
- <li><a href="$facetURL">More than #format_value($end)</a> ($after)</li>
118
- #end
119
- </ul>
120
- #end
121
-
122
- ## $pivots is a list of facet_pivot
123
- #macro(display_facet_pivot $pivots, $display)
124
- #if($pivots.size() > 0)
125
- <span class="facet-field">$display</span>
126
- <ul>
127
- #foreach ($pivot in $pivots)
128
- #foreach ($entry in $pivot.value)
129
- <a href="#url_for_facet_filter($entry.field, $entry.value)">$entry.field::#if($entry.value!=$null)$entry.value#else<em>missing</em>#end</a> ($entry.count)
130
- <ul>
131
- #foreach($nest in $entry.pivot)
132
- <li>
133
- #if($nest.value != $null)
134
- <a href="#url_for_facet_filter($entry.field, $entry.value)&fq=$esc.url($nest.field):%22$esc.url($nest.value)%22">$nest.field::$nest.value</a>
135
- #else
136
- <a href="#url_for_facet_filter($entry.field, $entry.value)&fq=-$esc.url($nest.field):[*+TO+*]">$nest.field::<em>missing</em></a>
137
- #end
138
- ($nest.count)
139
- </li>
140
- #end
141
- </ul>
142
- #end
143
- #end
144
- </ul>
145
- #end
146
- #end
147
-
148
- #macro(field $f)
149
- #if($response.response.highlighting.get($docId).get($f).get(0))
150
- #set($pad = "")
151
- #foreach($v in $response.response.highlighting.get($docId).get($f))
152
- $pad$v##
153
- #set($pad = " ... ")
154
- #end
155
- #else
156
- #foreach($v in $doc.getFieldValues($f))
157
- $v##
158
- #end
159
- #end
160
- #end
161
-
162
- #macro(utc_date $theDate)
163
- $date.format("yyyy-MM-dd'T'HH:mm:ss'Z'",$theDate,$date.getLocale(),$date.getTimeZone().getTimeZone("UTC"))##
164
- #end
165
-
166
- #macro(format_value $val)
167
- #if(${val.class.name} == "java.util.Date")
168
- #utc_date($val)##
169
- #else
170
- $val##
171
- #end
172
- #end
173
-
174
- #macro(range_get_to_value $inval, $gapval)
175
- #if(${gapval.class.name} == "java.lang.String")
176
- #if($gapval.startsWith("+"))
177
- $inval$gapval## Typically date gaps start with +
178
- #else
179
- $inval+$gapval## If the gap does not start with a "+", we add it, such as for currency value
180
- #end
181
- #elseif(${gapval.class.name} == "java.lang.Float" || ${inval.class.name} == "java.lang.Float")
182
- $math.toDouble($math.add($inval,$gapval))##
183
- #else
184
- $math.add($inval,$gapval)##
185
- #end
186
- #end
@@ -1,33 +0,0 @@
1
- #**
2
- * Main entry point into the /browse templates
3
- *#
4
-
5
- #set($searcher = $request.searcher)
6
- #set($params = $request.params)
7
- #set($clusters = $response.response.clusters)
8
- #set($mltResults = $response.response.get("moreLikeThis"))
9
- #set($annotate = $params.get("annotateBrowse"))
10
- #parse('query_form.vm')
11
- #parse('did_you_mean.vm')
12
-
13
- <div class="navigators">
14
- #parse("facets.vm")
15
- </div>
16
-
17
- <div class="pagination">
18
- #parse("pagination_top.vm")
19
- </div>
20
-
21
- ## Show Error Message, if any
22
- <div class="error">
23
- #parse("error.vm")
24
- </div>
25
-
26
- ## Render Results, actual matching docs
27
- <div class="results">
28
- #parse("results_list.vm")
29
- </div>
30
-
31
- <div class="pagination">
32
- #parse("pagination_bottom.vm")
33
- </div>
@@ -1,19 +0,0 @@
1
- #**
2
- * Check if Clustering is Enabled and then
3
- * call cluster_results.vm
4
- *#
5
-
6
- <h2 #annTitle("Clusters generated by Carrot2 using the /clustering RequestHandler")>
7
- Clusters
8
- </h2>
9
-
10
- ## Div tag has placeholder text by default
11
- <div id="clusters">
12
- Run Solr with option -Dsolr.clustering.enabled=true to see clustered search results.
13
- </div>
14
-
15
- ## Replace the div content *if* Carrot^2 is available
16
- <script type="text/javascript">
17
- $('#clusters').load("#url_for_solr/clustering#lens",
18
- {'wt':'velocity', 'v.template':"cluster_results"});
19
- </script>
@@ -1,31 +0,0 @@
1
- #**
2
- * Actual rendering of Clusters
3
- *#
4
-
5
- ## For each cluster
6
- #foreach ($clusters in $response.response.clusters)
7
-
8
- #set($labels = $clusters.get('labels'))
9
- #set($docs = $clusters.get('docs'))
10
-
11
- ## This Cluster's Heading
12
- <h3>
13
- #foreach ($label in $labels)
14
- ## Keep the following line together to prevent
15
- ## a space appearing before each comma
16
- $label#if( $foreach.hasNext ),#end
17
- #end
18
- </h3>
19
-
20
- ## This Cluster's Documents
21
- <ol>
22
- ## For each doc in this cluster
23
- #foreach ($cluDoc in $docs)
24
- <li>
25
- <a href="#url_for_home?q=id:$cluDoc">
26
- $cluDoc</a>
27
- </li>
28
- #end
29
- </ol>
30
-
31
- #end ## end for each Cluster