-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup
37 lines (30 loc) · 1 KB
/
setup
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
# Setup script for VyPR and VyPRServer
# Kept at http://cern.ch/vypr/setup
echo "Setting up VyPR..."
echo "Assuming the working directory is the service root directory."
echo "Pulling VyPR core..."
# pull VyPR
git clone https://github.com/pyvypr/VyPR.git
cd VyPR
# install requirements
pip install -r requirements.txt
# go back to the root directory to pull VyPRAnalysis
cd ../
# pull the analysis library
git clone https://github.com/pyvypr/VyPRAnalysis.git
echo "Pulling VyPR Server..."
# pull VyPRServer
git clone https://github.com/pyvypr/VyPRServer.git
echo "Setting up server environment..."
# set up server
cd VyPRServer
virtualenv venv --python=python2.7
source venv/bin/activate
# install requirements
pip install -r requirements.txt
# set up verdict database
touch verdicts.db
sqlite3 verdicts.db < verdict-schema.sql
# pull VyPR for the verdict server to use
git clone https://github.com/pyvypr/VyPR.git
echo "Setup complete. See http://cern.ch/vypr/writing-queries.html for instructions on what to do next."