Skip to content

Commit 293178a

Browse files
authored
Merge pull request #413 from devgateway/feature/OCE-341/installation-document
feature/OCE-341/installation-document
2 parents ed44dee + f3f0f53 commit 293178a

2 files changed

Lines changed: 103 additions & 0 deletions

File tree

forms/forms.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
JAVA_OPTS="-Dspring.profiles.active=default -Djava.awt.headless=true -Xmx4096M -Dwicket.configuration=deployment -Dderby.optimizer.optimizeJoinOrder=false -Dspringfox.documentation.swagger.v2.host=website.url"

installation.md

Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
# Installation Document OC-Explorer
2+
3+
## VPS (virtual server) requirements
4+
5+
- CPU: 4 cores
6+
- Memory: 16GB
7+
- Disk: 128GB SSD
8+
9+
## Software Prerequisites
10+
11+
- Operating system: Ubuntu Server x64 16.04 LTS or upper
12+
- MongoDB 3.4 (will be installed below)
13+
14+
## Install dependencies
15+
16+
### Install MongoDB
17+
18+
Please refer to this comprehensive documentation page about how to install MongoDB on Ubuntu
19+
https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/
20+
21+
quick list of commands that worked for us:
22+
23+
```
24+
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 0C49F3730359A14518585931BC711F9BA15703C6
25+
echo "deb [ arch=amd64,arm64 ] http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.4.list
26+
sudo apt update
27+
sudo apt install mongodb-org
28+
sudo systemctl enable mongod
29+
sudo systemctl start mongod
30+
```
31+
32+
33+
## Install OpenJDK 8.0
34+
35+
`$ sudo apt install openjdk-8-jdk`
36+
37+
## Create user oce
38+
39+
`$ sudo useradd -m oce`
40+
41+
## Create the Derby db with users
42+
43+
### Create install dir
44+
45+
```
46+
$ sudo mkdir /derby
47+
$ sudo chown -R oce:oce /derby
48+
```
49+
50+
### Unzip provided derby database backup
51+
52+
```
53+
$ sudo apt install p7zip
54+
$ wget http://url-to-derby-download-provided-by-dg-team
55+
$ 7zr x -o/derby oce-derby-*.7z
56+
```
57+
58+
## Download and compile the open source code from github.com
59+
60+
### Install Maven
61+
62+
`$ sudo apt install maven`
63+
64+
### Get the source code
65+
66+
67+
```
68+
$ su - oce
69+
$ git clone https://github.com/devgateway/oc-explorer.git
70+
```
71+
72+
### Compile the code
73+
74+
```
75+
$ cd oc-explorer
76+
$ git checkout master
77+
$ mvn -Dmaven.javadoc.skip=true -Dmaven.test.skip=true install
78+
```
79+
80+
### Copy artifact and config to startup locatinon
81+
82+
```
83+
$ cd ~
84+
$ cp forms/target/forms-*-SNAPSHOT.jar oce.jar
85+
$ cp forms/forms.conf oce.conf
86+
```
87+
88+
### Edit configuration file oce.conf
89+
90+
- Replace {website.url} with your website's URL
91+
92+
### Make symlink to enable startup as service
93+
94+
```
95+
$ sudo ln -s /home/oce/oce.jar /etc/init.d/oce
96+
$ sudo update-rc.d oce defaults
97+
```
98+
99+
100+
## Start the server
101+
102+
`$ sudo service oce start`

0 commit comments

Comments
 (0)