-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathstart_container.sh
More file actions
67 lines (59 loc) · 1.99 KB
/
Copy pathstart_container.sh
File metadata and controls
67 lines (59 loc) · 1.99 KB
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
#!/bin/bash
#----------------------------------
# Important Settings
#----------------------------------
# Enter a valid eMail address that allows to contact the responsible colleague for this webservice
if [ -z "$ABI_SERVICES_CONTACT_MAIL" ]
then
contact_email="abi-services@informatik.uni-tuebingen.de"
else
contact_email="$ABI_SERVICES_CONTACT_MAIL"
fi
# Enter a valid URL that leads to the appropriate imprint page
if [ -z "$ABI_SERVICES_IMPRINT_URL" ]
then
imprint_url="https://www-abi.informatik.uni-tuebingen.de/imprint"
else
imprint_url="$ABI_SERVICES_IMPRINT_URL"
fi
# Enter a valid URL that leads to the appropriate GDPR declaration page
if [ -z "$ABI_SERVICES_GDPR_URL" ]
then
gdpr_url="https://www-abi.informatik.uni-tuebingen.de/gdpr"
else
gdpr_url="$ABI_SERVICES_GDPR_URL"
fi
# Here you can set an upper limit for the number of sequences allowed to be submitted
if [ -z "$ABI_SERVICES_MULTILOC2_MAX_SEQ" ]
then
multiloc2_max_seq="20"
else
multiloc2_max_seq="$ABI_SERVICES_MULTILOC2_MAX_SEQ"
fi
# Here you can specify th host port that is bound to port 80 from the container
if [ -z "$ABI_SERVICES_MULTILOC2_PORT" ]
then
multiloc2_port="28020"
else
multiloc2_port="$ABI_SERVICES_MULTILOC2_PORT"
fi
#----------------------------------
# Start MultiLoc2 Daemon Container
#----------------------------------
if [ -z "$INTERPROSCAN_LOCAL" ]
then
docker run --rm -it -d -p $multiloc2_port:80 \
-e ML_CONTACT_EMAIL="$contact_email" \
-e ML_IMPRINT_URL="$imprint_url" \
-e ML_GDPR_URL="$gdpr_url" \
-e ML_MAX_SEQ="$multiloc2_max_seq" \
--name abi_webservice_multiloc2 multiloc2
else
docker run --rm -it -d -p $multiloc2_port:80 \
-e ML_CONTACT_EMAIL="$contact_email" \
-e ML_IMPRINT_URL="$imprint_url" \
-e ML_GDPR_URL="$gdpr_url" \
-e ML_MAX_SEQ="$multiloc2_max_seq" \
-v $INTERPROSCAN_LOCAL:/interproscan \
--name abi_webservice_multiloc2 multiloc2
fi