-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathweb-tool-docker.sh
executable file
·47 lines (28 loc) · 1.3 KB
/
web-tool-docker.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
#!/usr/bin/env bash
# This script sets up docker container and container services for web tool.
# TODO: write some instructions about the architecture of the containers configured for web tool
printf "\033[0;31m Building and running container for analysis environment \033[0m \n"
# We first build Analysis environment
docker build -f Dockerfile_vypr -t vypr .
#
## We run it in detached mode
docker run -d -p 9002:9002 vypr
# Visualisation tool works by first setting up verdict server in docker container and visualization tool runs on host machine
# Synchronizing container with the host's timezone
TZ=`date +%Z`
if [ $TZ == 'CEST' ] ; then
TZ='CET'
fi
echo $TZ
docker build -f server/Dockerfile -t verdict .
docker run -d -p 9003:9003 -e TZ=$TZ verdict
bash ./client-script.sh
printf "\033[0;31m IMPORTANT INSTRUCTIONS: \033[0m \n"
printf "\033[0;31m Container for analysis environment completed. \033[0m \n"
printf "\033[0;31m Use http://localhost:9002/ on your browser for analysis environment \033[0m \n"
#
printf "\n\n"
printf "\033[0;31m Container Services for visualization completed. \033[0m \n"
printf "\033[0;31m Use http://localhost:9001/ on your browser for Visualization environment \033[0m \n"
docker build -q -f Dockerfile_jupyter -t vyprjupyter .
docker run -p 9005:9005 vyprjupyter