forked from olovm/cora-eclipse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
runAll.sh
executable file
·38 lines (33 loc) · 1.17 KB
/
runAll.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
#! /bin/bash
USER=$(id -u -n)
USERID=$(id -u)
DOCKERGROUPID=$1
ECLIPSEBRANCH=$2
NOCACHE=$3
if [ ! $ECLIPSEBRANCH ]; then
ECLIPSEBRANCH='master'
fi
echo
echo "running runAll.sh..."
echo running all using:
echo userName: $USER
echo userId: $USERID
echo dockerGroupId: $DOCKERGROUPID
echo cora-eclipse branch: $ECLIPSEBRANCH
if [ ! $USER ]; then
echo you must specify the userName to be used when building eclipse202309forcora2
elif [ ! $USERID ]; then
echo you must specify the userid to be used when building eclipse202309forcora2, use: id -u youruserid
elif [ ! $DOCKERGROUPID ] && [ ! -d ./eclipseForCora ]; then
echo you must specify the dockergroupid to be used when building eclipse202309forcora2, use: getent group docker
else
if [ ! -d ./eclipse202309forcora2 ]; then
./cora-eclipse/buildEclipseForCora.sh $USER $USERID $DOCKERGROUPID $NOCACHE
./cora-eclipse/setupDirectoriesAndScriptsForEclipseForCora.sh $USER
docker network create eclipseForCoraNet
docker network create eclipseForAlvinNet
docker network create eclipseForDivaNet
fi
# ./eclipseForCora/startEclipseForCora.sh $USER
./eclipse202309forcora2/startEclipseForCoraTempSetup.sh $USER $ECLIPSEBRANCH
fi