-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeployment.sh
75 lines (56 loc) · 2.06 KB
/
deployment.sh
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
# Setup Database
git clone --depth 1 --branch p1-demo [email protected]:vitrivr/cottontaildb.git
cd ./cottontaildb
./gradlew build
./gradlew distTar
cd ..
mkdir database
# Setup Cineast
git clone --depth 1 --branch p1-demo [email protected]:vitrivr/cineast.git
cd ./cineast
./gradlew build
./gradlew getExternalFiles cineast-runtime:shadowJar
cd ..
# Setup Engine
git clone --depth 1 --branch p1-demo [email protected]:vitrivr/vitrivr-engine.git
cd ./vitrivr-engine
./gradlew generateFesClient
./gradlew build
cd ..
# Setup FES
# Prequesite is python3.11 --version
sudo apt update
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt install python3.11 -y
sudo apt install python3.11-venv
git clone --depth 1 --branch p1-demo [email protected]:vitrivr/feature-extraction-server.git
cd ./feature-extraction-server
python3.11 -m venv .venv
source .venv/bin/activate
python3.11 -m pip install --upgrade pip
sudo python3.11 -m pip install -r dev_requirements.txt
sudo ./setup_dev_server.sh
echo "export PYTHONPATH=src/core:src/legacy_api:src/audio_diarization:src/blip:src/conditional_image_captioning:src/face_embedding:src/image_captioning:src/optical_character_recognition:src/simple_plugin_manager:src/vit_gpt2:src/automated_speech_recognition:src/blip2:src/detr_resnet101:src/face_recognition:src/image_embedding:src/owl_vit_base_patch32:src/tesseract:src/whisper:src/base_api:src/clip_vit_large_patch14:src/easy_ocr:src/fastapi:src/object_detection:src/pyannote:src/text_embedding:src/zero_shot_image_classification:$PYTHONPATH" >> ~/.bashrc
echo "export LOG_LEVEL=DEBUG" >> ~/.bashrc
#
mkdir nginx
cd ./nginx
sudo apt install nginx
sudo apt-get install apache2-utils
# Setup UI
# ng
git clone --depth 1 --branch p1-demo [email protected]:vitrivr/vitrivr-ng.git
cd ./vitrivr-ng
./gradlew buildAngularApp
sudo apt install npm
sudo apt install ng-common
sudo apt purge ng-common ng-latin
sudo npm install -g @angular/cli
sudo npm cache clean -f
sudo npm install -g n
sudo n stable
ng update
npm run gen-local-api
ng build
# ng-min
git clone --depth 1 --branch p1-demo [email protected]:vitrivr/vitrivr-ng-min.git