-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker_install_3rd_party.sh
executable file
·47 lines (35 loc) · 1.2 KB
/
docker_install_3rd_party.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
#! /usr/bin/env sh
###########################################################
# Data
## NLTK
python3 << EOPYTHON
import nltk
nltk.download("stopwords")
nltk.download("punkt")
EOPYTHON
###########################################################
# 3rd party
## weka
cd /data/tmp
# the SSL certificate has expired, thus we need to turn off the check with '-k'
# see: https://curl.haxx.se/docs/sslcerts.html
curl -k https://netix.dl.sourceforge.net/project/weka/weka-3-8/3.8.3/weka-3-8-3.zip -O
unzip weka-3-8-3.zip
cp weka-3-8-3/weka.jar /data/spojitr_install/3rd/
## spojit
cd /data/tmp
git clone https://github.com/michaelrath-work/spojit.git
cd spojit
python3 setup.py bdist_wheel
cp -v dist/spojit-*.whl /data/spojitr_install/3rd
pip3 install /data/spojitr_install/3rd/spojit-*.whl
## weka run helper
cd /data/tmp
git clone https://github.com/michaelrath-work/weka-run-helper.git
cp -v weka-run-helper/run_weka.py /data/spojitr_install/3rd
###########################################################
# Setup git
echo ".spojitr/" >> /root/.gitignore_global
git config --global user.email "user@spojitr.com"
git config --global user.name "Spojitr User"
git config --global core.excludesfile /root/.gitignore_global