Advertisement
Guest User

Untitled

a guest
Aug 30th, 2016
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.39 KB | None | 0 0
  1. OPENSPECIMEN DEPLOYMENT
  2. root password: openspecimen_test
  3. mysql root password: Openspecimen_test1
  4. Users: dak3004 (cwid and password, no LDAP auth)
  5.  
  6. https://openspecimen.atlassian.net/wiki/pages/viewpage.action?pageId=1115955
  7.  
  8. Software installed:
  9. JDK 1.8
  10. Tomcat/Apache
  11. MySQL 5.7
  12. Gradle
  13. git
  14. node.js
  15. npm
  16. bower
  17. grunt
  18. vim
  19.  
  20. How to install:
  21. THIS ASSUMES THAT sudo dnf update && sudo dnf upgrade WERE PERFORMED PRIOR
  22. Java: sudo dnf install java javaws
  23. Javac: rpm -ivh jdk-<version>-linux-x64.rpm
  24. Tomcat: sudo dnf install tomcat
  25. MySQL: http://www.if-not-true-then-false.com/2010/install-mysql-on-fedora-centos-red-hat-rhel/
  26. Gradle: sudo dnf install gradle
  27. git: already installed, otherwise sudo dnf install git
  28. Node.js: sudo dnf install nodejs
  29. npm: sudo dnf install npm
  30. bower: sudo npm install -g bower
  31. grunt: sudo npm install -g grunt
  32. vim: sudo dnf install vim
  33.  
  34. NEXT: Set JAVA_HOME environment variable
  35. vim $HOME/.bash_profile
  36. add export JAVA_HOME="/usr/bin/java/latest" to the end of the file
  37. add :/usr/bin/java to $PATH
  38. unknown how to edit /etc/profile to add this path
  39. NEXT: Set TOMCAT_HOME environment variable
  40. vim $HOME/.bash_profile
  41. add export TOMCAT_HOME="/usr/share/tomcat/"
  42. add :/usr/share/tomcat to $PATH
  43.  
  44. NEXT: set up mysql database
  45. mysql -u root -p
  46. enter password
  47. create database openspecimen_test_db;
  48. create user 'os_admin'@'localhost' identified by 'OS_admint1'
  49. GRANT ALTER, ALTER ROUTINE, CREATE, CREATE ROUTINE, CREATE VIEW, DELETE, DROP, EXECUTE, INDEX, INSERT, LOCK TABLES, SELECT, TRIGGER, UPDATE ON openspecimen_test_db.* TO 'os_admin'@'localhost'
  50. This can be found by following the link in the confluence article
  51. https://openspecimen.atlassian.net/wiki/display/CAT/Database+Configuration
  52. FLUSH PRIVILEGES;
  53. Make sure that INNODB is the default storage engine
  54. sudo vim /etc/my.cnf
  55. add line "default-storage-engine=INNODB"
  56. systemctl restart mysqld
  57. make DB backup
  58. mysqldump -u root -p --routines db_name > db_backup.sql
  59. enter password
  60. This saves it into the pwd, move it where necessary for backups
  61.  
  62. NEXT: clone the git repo
  63. clone git repo
  64. git clone https://github.com/krishagni/openspecimen.git
  65. place this in some directory
  66. Set this as $OS_HOME in .bash_profile (e.g. $HOME/openspecimen)
  67.  
  68. NEXT: Prepare to deploy OpenSpecimen
  69. Edit build.properties with the proper information
  70. app_home = /usr/share/tomcat/
  71. app_data_dir = <app_data_dir>
  72. app_log_conf =
  73. datasource_jndi = java:/comp/env/jdbc/openspecimen
  74. deployment_type = fresh
  75.  
  76. database_type = mysql
  77. database_host = localhost
  78. database_port = 3306
  79. database_name = openspecimen_test_db
  80. database_username = os_admin
  81. database_password = OS_admin1
  82.  
  83. show_sql = false
  84.  
  85. plugin_dir = <path-to-directory-containing-plugin-jars>
  86.  
  87. navigate into www/ directory in $OS_HOME
  88. sudo npm uninstall grunt-contrib-imagemin
  89. sudo npm cache clean
  90. sudo npm i --save-dev grunt-contrib-imagemin
  91. sudo npm install gifsicle@1.0.3
  92. npm install
  93. bower install
  94. grunt build
  95. change directory to parent (cd ..)
  96. sudo gradle deploy
  97.  
  98. NEXT: Edit TOMCAT Conf
  99. <Resource name="jdbc/openspecimen" auth="Container" type="javax.sql.DataSource"
  100. maxActive="100" maxIdle="30" maxWait="10000"
  101. username="os_admin" password="OS_admin1" driverClassName="com.mysql.jdbc.Driver"
  102. url="jdbc:mysql://localhost:3306>/openspecimen_test_db" />
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement