555
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

linux_setup.sh 6.6KB

1年前
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314
  1. # wget https://git.bbh.org.in/chess/elxr/raw/branch/master/linux_setup.sh
  2. #STORE GIT CREDENTIALS IN CACHE
  3. sudo yum install git
  4. # git config --global --unset credential.helper
  5. git config --global credential.helper store
  6. # git config --global credential.helper 'store --file ~/.git-credentials'
  7. # echo "Enter git username: "
  8. # read gitUser
  9. # echo "username=$gitUser" >> ~/.git-credentials
  10. # echo "Enter git password: "
  11. # read gitPassword
  12. # echo "password=$gitPassword" >> ~/.git-credentials
  13. # chmod 0600 ~/.git-credentials
  14. # Install prerequisites
  15. #NODE JS 16.17.1
  16. wget https://nodejs.org/dist/v16.17.1/node-v16.17.1-linux-x64.tar.xz
  17. tar -xf node-v16.17.1-linux-x64.tar.xz
  18. # Move the extracted folder to /usr/local/lib
  19. sudo mv node-v16.17.1-linux-x64 /usr/local/lib/
  20. # Create a symbolic link to the node executable
  21. sudo ln -s /usr/local/lib/node-v16.17.1-linux-x64/bin/node /usr/local/bin/node
  22. node -v
  23. #NPM
  24. sudo yum install npm
  25. #INSTALLING NODE JS
  26. npm install -g pm2
  27. npm install -g ember-cli
  28. npm install -g loopback-cli
  29. #development A SETUP
  30. cd ~
  31. cd Desktop
  32. mkdir chess
  33. cd chess
  34. mkdir development_A
  35. cd development_A
  36. # echo "Enter instance type: eg development/production"
  37. # read instancetype
  38. # echo "Enter FolderName: eg A/B/C"
  39. # read foldername
  40. # # echo "username=$gitUser" >> ~/.git-credentials
  41. # mkdir $instancetype_$foldername
  42. # cd $instancetype_$foldername
  43. git clone http://git.bbh.org.in/chess/cihsr-config-development
  44. cd cihsr-config-development
  45. git checkout master
  46. rm -rf package-lock.json
  47. npm i --force
  48. #TO CREATE SYMLINK
  49. cd ..
  50. ln -s cihsr-config-development/ config
  51. git clone http://git.bbh.org.in/chess/cihsr-data
  52. cd cihsr-data
  53. git checkout master
  54. rm -rf package-lock.json
  55. npm i --force
  56. cd ..
  57. ln -s cihsr-data/ data
  58. git clone http://git.bbh.org.in/chess/ember-masonry-grid
  59. cd ember-masonry-grid
  60. git checkout master
  61. rm -rf package-lock.json
  62. npm i --force
  63. cd ..
  64. git clone http://git.bbh.org.in/chess/bbhverse
  65. cd bbhverse
  66. git checkout master
  67. rm -rf package-lock.json
  68. npm i --force
  69. cd ..
  70. git clone http://git.bbh.org.in/chess/clientverse
  71. cd clientverse
  72. git checkout master
  73. rm -rf package-lock.json
  74. npm i --force
  75. cd ..
  76. git clone http://git.bbh.org.in/chess/serververse
  77. cd serververse
  78. git checkout master
  79. rm -rf package-lock.json
  80. npm i --force
  81. cd ..
  82. git clone http://git.bbh.org.in/chess/elxr
  83. cd elxr
  84. git checkout master
  85. rm -rf package-lock.json
  86. npm i --force
  87. cd ..
  88. git clone http://git.bbh.org.in/chess/ember-searchable-select
  89. cd ember-searchable-select
  90. git checkout master
  91. rm -rf package-lock.json
  92. npm i --force
  93. cd ..
  94. git clone http://git.bbh.org.in/chess/loopback-component-jsonapi
  95. cd loopback-component-jsonapi
  96. git checkout master
  97. rm -rf package-lock.json
  98. npm i --force
  99. cd ..
  100. git clone http://git.bbh.org.in/chess/loopback-jsonapi-model-serializer
  101. cd loopback-jsonapi-model-serializer
  102. git checkout master
  103. rm -rf package-lock.json
  104. npm i --force
  105. npm run build
  106. cd ..
  107. git clone http://git.bbh.org.in/chess/loopback-connector-mysql
  108. cd loopback-connector-mysql
  109. git checkout master
  110. rm -rf package-lock.json
  111. npm i --force
  112. cd ..
  113. git clone http://git.bbh.org.in/chess/loopback-connector-ds
  114. cd loopback-connector-ds
  115. git checkout master
  116. rm -rf package-lock.json
  117. npm i --force
  118. cd ..
  119. git clone http://git.bbh.org.in/chess/setup
  120. cd setup
  121. git checkout master
  122. rm -rf package-lock.json
  123. npm i --force
  124. cd ..
  125. git clone http://git.bbh.org.in/chess/ember-service-worker
  126. cd ember-service-worker
  127. git checkout master
  128. rm -rf package-lock.json
  129. npm i --force
  130. cd ..
  131. git clone http://git.bbh.org.in/chess/ember-service-worker-asset-cache
  132. cd ember-service-worker-asset-cache
  133. git checkout master
  134. rm -rf package-lock.json
  135. npm i --force
  136. cd ..
  137. git clone http://git.bbh.org.in/chess/ember-service-worker-cache-fallback
  138. cd ember-service-worker-cache-fallback
  139. git checkout master
  140. rm -rf package-lock.json
  141. npm i --force
  142. cd ..
  143. git clone http://git.bbh.org.in/chess/ember-service-worker-index
  144. cd ember-service-worker-index
  145. git checkout master
  146. rm -rf package-lock.json
  147. npm i --force
  148. cd ..
  149. git clone http://git.bbh.org.in/chess/ember-sw-client-route
  150. cd ember-sw-client-route
  151. git checkout master
  152. rm -rf package-lock.json
  153. npm i --force
  154. cd ..
  155. git clone http://git.bbh.org.in/chess/global-this
  156. cd global-this
  157. git checkout master
  158. rm -rf package-lock.json
  159. npm i --force
  160. cd ..
  161. git clone http://git.bbh.org.in/chess/ember-cp-validations
  162. cd ember-cp-validations
  163. git checkout master
  164. rm -rf package-lock.json
  165. npm i --force
  166. cd ..
  167. git clone http://git.bbh.org.in/chess/loopback-connector
  168. cd loopback-connector
  169. git checkout master
  170. rm -rf package-lock.json
  171. npm i --force
  172. cd ..
  173. git clone http://git.bbh.org.in/chess/loopback
  174. cd loopback
  175. git checkout master
  176. rm -rf package-lock.json
  177. npm i --force
  178. cd ..
  179. git clone http://git.bbh.org.in/chess/loopback-datasource-juggler
  180. cd loopback-datasource-juggler
  181. git checkout master
  182. rm -rf package-lock.json
  183. npm i --force
  184. cd ..
  185. git clone http://git.bbh.org.in/chess/loopback-connector-mssql
  186. cd loopback-connector-mssql
  187. git checkout master
  188. rm -rf package-lock.json
  189. npm i --force
  190. cd ..
  191. git clone http://git.bbh.org.in/chess/loopback-filters
  192. cd loopback-filters
  193. git checkout master
  194. rm -rf package-lock.json
  195. npm i --force
  196. cd ..
  197. git clone http://git.bbh.org.in/chess/loopback-connector-sqlite3
  198. cd loopback-connector-sqlite3
  199. git checkout master
  200. rm -rf package-lock.json
  201. npm i --force
  202. cd ..
  203. git clone http://git.bbh.org.in/chess/chess-server-lib
  204. cd chess-server-lib
  205. git checkout master
  206. rm -rf package-lock.json
  207. npm i --force
  208. cd server
  209. rm -rf package-lock.json
  210. npm i --force
  211. cd ..
  212. cd ..
  213. git clone http://git.bbh.org.in/chess/cihsr-server
  214. cd cihsr-server
  215. git checkout master
  216. rm -rf package-lock.json
  217. npm i --force
  218. cd ..
  219. git clone http://git.bbh.org.in/chess/bbh_patient_portal
  220. cd bbh_patient_portal
  221. git checkout master
  222. rm -rf package-lock.json
  223. npm i --force
  224. cd ..
  225. git clone http://git.bbh.org.in/chess/project-genesis-frontend
  226. cd project-genesis-frontend
  227. git checkout master
  228. rm -rf package-lock.json
  229. npm i --force
  230. cd ..
  231. git clone http://git.bbh.org.in/chess/project-genesis-backend
  232. cd project-genesis-backend
  233. git checkout master
  234. rm -rf package-lock.json
  235. npm i --force
  236. cd ..
  237. git clone http://git.bbh.org.in/chess/processmanager
  238. cd processmanager
  239. git checkout master
  240. rm -rf package-lock.json
  241. npm i --force
  242. cd ..
  243. git clone http://git.bbh.org.in/chess/client
  244. cd client
  245. git checkout master
  246. rm -rf package-lock.json
  247. npm i --force
  248. bower install
  249. node_modules/.bin/bower install
  250. cd ..
  251. git clone http://git.bbh.org.in/chess/chess-client-lib
  252. cd chess-client-lib
  253. git checkout master
  254. rm -rf package-lock.json
  255. npm i --force
  256. cd ..
  257. git clone http://git.bbh.org.in/chess/elixir-client
  258. cd elixir-client
  259. git checkout master
  260. rm -rf package-lock.json
  261. npm i --force
  262. cd chess-client-lib
  263. rm -rf package-lock.json
  264. npm i --force
  265. cd ..