-
Notifications
You must be signed in to change notification settings - Fork 17
/
dockerstart.sh
executable file
·85 lines (69 loc) · 1.61 KB
/
dockerstart.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
73
74
75
76
77
78
79
80
81
82
83
84
#!/bin/bash
# this script is only needed to launch the server in an docker container
# outside docker please use bin/conlluedit.sh
filename=$1
shift
if [ "$1" != "" ]; then
echo " ** cannot run validator within docker"
echo " ** please run it on the edited file ($1) outside docker"
#ivalidator="--validator $1"
fi
shift
if [ "$1" != "" ]; then
iuiconfig="--uiconfig $1"
fi
shift
if [ "$1" != "" ]; then
iupos="--UPOS $1"
fi
shift
if [ "$1" != "" ]; then
ixpos="--XPOS $1"
fi
shift
if [ "$1" != "" ]; then
ideprels="--deprels $1"
fi
shift
if [ "$1" != "" ]; then
ifeats="--features $1"
fi
shift
if [ "$1" != "" ]; then
ilang="--language $1"
fi
shift
if [ "$1" != "" ]; then
iunused="--include_unused"
fi
shift
if [ "$1" != "" ]; then
ishortcuts="--shortcuts $1"
fi
shift
if [ "$1" != "" ]; then
isaveafter="--saveAfter $1"
fi
shift
if [ "$1" != "" ]; then
icompare="--compare $1"
fi
shift
echo "options given:"
echo " uiconfig $iuiconfig"
echo " validator $ivalidator"
echo " upos $iupos"
echo " xpos $ixpos"
echo " deprels $ideprels"
echo " features $ifeats"
echo " language $ilang"
echo " include_unused $iunused"
echo " shortcuts $ishortcuts"
echo " saveafter $isaveafter"
echo " compare $icompare"
echo " filename $filename"
java -Xmx4g -cp /usr/src/ConlluEditor/ConlluEditor.jar \
com.orange.labs.editor.ConlluEditor \
--rootdir /usr/src/ConlluEditor \
$iuiconfig $ivalidator $iupos $ixpos $ideprels $ifeats $ilang $iunused $ishortcuts $isaveafter $icompare \
${filename} 5555