-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstartscript.sh
28 lines (21 loc) · 1 KB
/
startscript.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
#!/bin/bash
# start front-end in background
python3 -m http.server &
# copy config files from mounted volumes to the place where they are expected
cp /data/config.json /home/grewmatch/grew_match/corpora/config.json
cp /data/lang.json /home/grewmatch/grew_match_back/corpora/lang.json
# compile treebank for use with grew
# this command writes data into into the volume /data which must be copied to the container
# necessary, because if the compiled data exists, no compilation is done, but the meta data will be read from /home/grewmatch/grew_match/meta
#grew compile -grew_match_server /home/grewmatch/grew_match/meta -i /home/grewmatch/grew_match_back/corpora/lang.json
echo "compiling..."
grew compile -grew_match_server /data -i /home/grewmatch/grew_match_back/corpora/lang.json
echo "installing..."
cp /data/*UD_*@* /home/grewmatch/grew_match/meta
# initialise opam environmant variables
eval $(opam env)
# go where the makefiles are
pushd /home/grewmatch/grew_match_back
# run back-end
make clean
make test.opt