Skip to content

Commit a677a6c

Browse files
committed
proposed changes by @abidart for #912
1 parent 5725637 commit a677a6c

File tree

2 files changed

+74
-9
lines changed

2 files changed

+74
-9
lines changed

doc/sphinx-guides/source/developers/dev-environment.rst

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,20 +62,36 @@ Please see also the :doc:`/developers/tools` page, which lists additional tools
6262
Setting up your dev environment
6363
-------------------------------
6464

65+
Dataverse Repository
66+
~~~~~~~~~~~~~~~~~~~~
67+
68+
Using NetBeans:
69+
70+
Go to Team >> Clone and add the repository info.
71+
72+
Alternative method using Terminal:
73+
74+
- ``git clone https://github.com/IQSS/dataverse.git``
75+
76+
- ``cd dataverse``
77+
78+
- ``mvn package``
79+
80+
6581
Installing and Running Solr
6682
~~~~~~~~~~~~~~~~~~~~~~~~~~~
6783

6884
A Dataverse-specific ``schema.xml`` configuration file (described below) is required.
6985

70-
Download solr-4.6.0.tgz from http://archive.apache.org/dist/lucene/solr/4.6.0/solr-4.6.0.tgz to any directory you like but in the example below, we have downloaded the tarball to a directory called "solr" in our home directory. For now we are using the "example" template but we are replacing ``schema.xml`` with our own.
86+
Download solr-4.6.0.tgz from http://archive.apache.org/dist/lucene/solr/4.6.0/solr-4.6.0.tgz to any directory you like but in the example below, we have downloaded the tarball to a directory called "solr" in our home directory. For now we are using the "example" template but we are replacing ``schema.xml`` with our own. We will also assume that the clone on the Dataverse repository was retrieved using NetBeans and that it is saved in the path ~/NetBeansProjects.
7187

7288
- ``cd ~/solr``
7389
- ``tar xvfz solr-4.6.0.tgz``
7490
- ``cd solr-4.6.0/example``
7591
- ``cp ~/NetBeansProjects/dataverse/conf/solr/4.6.0/schema.xml solr/collection1/conf/schema.xml``
7692
- ``java -jar start.jar``
7793

78-
Please note: If you prefer, once the proper ``schema.xml`` file is in place, you can simply double-click "start.jar" rather that running ``java -jar start.jar`` from the command line. Figuring out how to stop Solr after double-clicking it is an exercise for the reader.
94+
Please note: If you prefer, once the proper ``schema.xml`` file is in place, you can simply double-click "start.jar" rather that running ``java -jar start.jar`` from the command line. Figuring out how to stop Solr after double-clicking is an exercise for the reader.
7995

8096
Once Solr is up and running you should be able to see a "Solr Admin" dashboard at http://localhost:8983/solr
8197

@@ -86,7 +102,7 @@ Run installer
86102

87103
Once you install Glassfish 4 and PostgreSQL, you need to configure the environment for the Dataverse app - configure the database connection, set some options, etc. We have a new installer script that should do it all for you:
88104

89-
``cd scripts/installer``
105+
``cd ~/dataverse/scripts/installer``
90106

91107
``./install``
92108

Lines changed: 55 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,58 @@
1-
======
2-
Ubuntu
3-
======
1+
==============
2+
Ubuntu (14.04)
3+
==============
4+
5+
Requirements
6+
------------
7+
8+
Java 7
9+
~~~~~~
10+
11+
- ``sudo apt-get install openjdk-7-jdk openjdk-7-jre``
12+
13+
14+
Maven
15+
~~~~~
16+
17+
- ``sudo apt-get install maven``
418

5-
Java
6-
----
719

820
Glassfish
9-
---------
21+
~~~~~~~~~
22+
23+
- ``wget http://download.java.net/glassfish/4.1/release/glassfish-4.1.zip``
24+
25+
- ``unzip glassfish-4.1*zip``
26+
27+
28+
PostgreSQL
29+
~~~~~~~~~~
30+
31+
- ``sudo apt-get install postgresql postgresql-contrib``
32+
33+
34+
jq
35+
~~
36+
37+
- ``sudo apt-get install jq``
38+
39+
40+
Curl
41+
~~~~
42+
43+
- ``sudo apt-get install curl``
44+
45+
46+
Recommendations
47+
---------------
48+
49+
NetBeans
50+
~~~~~~~~
51+
52+
- ``wget http://download.netbeans.org/netbeans/8.0/final/bundles/netbeans-8.0-linux.sh``
53+
54+
- ``chmod +x netbeans-8.0-linux.sh``
55+
56+
- ``./netbeans-8.0-linux.sh``
57+
58+
In the Welcome Page of the Installer open the Customize Menu and make sure to NOT install the Glassfish 4.0 module

0 commit comments

Comments
 (0)