-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbiotestmine_on_mac
85 lines (56 loc) · 1.71 KB
/
biotestmine_on_mac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
== POSTGRES ==
download and install (correct version for you os) of postgres
see https://postgresapp.com/
and
http://postgresguide.com/
echo /Applications/Postgres.app/Contents/Versions/latest/bin | sudo tee /etc/paths.d/postgresapp
psql
sergio=# create user modmine with password 'modmine';
sergio=# create database biotestmine;
sergio=# grant all privileges on database biotestmine to modmine;
sergio=# create database "items-biotestmine";
CREATE DATABASE
sergio=# grant all privileges on database "items-biotestmine" to modmine;
GRANT
sergio=# alter user modmine with createdb;
ALTER ROLE
now you can
sergio$ psql -U modmine -d biotestmine
== SOLR ==
curl -O http://archive.apache.org/dist/lucene/solr/7.2.1/solr-7.2.1.zip
follow
https://github.com/intermine/biotestmine/wiki
== BUILD ==
git clone https://github.com/intermine/biotestmine
export GRADLE_OPTS="-Dorg.gradle.daemon=false"
on mac:
sed -i '' 's/DATA\_DIR/\/Users\/sergio\/data/g' project.xml
rather than
sed -i 's/DATA\_DIR/\/Users\/sergio\/data/g' project.xml
TODO: correct doc
https://intermine.readthedocs.io/en/latest/get-started/tutorial/
curl -O https://raw.githubusercontent.com/intermine/intermine-scripts/master/project_build
chmod +x project_build
./project_build -b -v localhost ~/biotestmine-dump
-- if no PERL: --
sudo perl -e shell -MCPAN
then
install XML::Parser
install XML::Parser::PerlSAX
exit
== TOMCAT ==
in tomcat dir edit files as describe in docs
nano conf/tomcat-users.xml
nano conf/context.xml
nano conf/server.xml
nano bin/startup.sh
then
./bin/startup.sh
== WEBAPP ==
-- only once
createdb -U modmine userprofile-biotestmine
./gradlew buildUserDB
-- first time
./gradlew cargoDeployRemote
-- after
./gradlew cargoReDeployRemote