-
Notifications
You must be signed in to change notification settings - Fork 0
/
installation-verification.sh
37 lines (30 loc) · 1.12 KB
/
installation-verification.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
#!/bin/bash
#######################################
# Bash script to verify that the installation script (vantage6.sh) was successful.
# Run with 'sudo -E bash installation-verification.sh'
# Written by Frank and Anja from IKNL
#######################################
REPORT=vantage6-installation-verification-report.txt
touch $REPORT
## Installed packages ##
echo '## Check installed packages ##' > $REPORT
# conda is not available by default in subshells
source ~/miniconda/etc/profile.d/conda.sh
conda activate vantage6
pip list >> $REPORT
docker info >> $REPORT
## Conda ##
echo '## Check that conda is functional ##' >> $REPORT
conda list >> $REPORT
## vantage6 ##
echo '## Check that vantage6 is functional ##' >> $REPORT
vnode list >> $REPORT
vnode files --name starter_head_and_neck --environment application >> $REPORT
## Docker ##
echo '## Check that docker is running ##' >> $REPORT
if [ "$(systemctl is-active docker)" = "active" ]
then echo '[OK] docker is running' >> $REPORT
else echo '[ERR] docker is not running...' >> $REPORT
fi
echo '## Run docker hello-world (without sudo) ##' >> $REPORT
docker run hello-world >> $REPORT