forked from olovm/cora-eclipse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
startEclipseForCoraWayland.sh
executable file
·73 lines (68 loc) · 2.15 KB
/
startEclipseForCoraWayland.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
#! /bin/bash
SCRIPT=$(readlink -f "$0")
BASEDIR=$(dirname $SCRIPT)
echo basedir: $BASEDIR
USER=$(id -u -n)
echo
echo starting eclipse using:
echo userName: $USER
echo
echo "Testing for container runtimes...."
CONTAINERRUNTIME=podman;
DOCKER_EXISTS=$(command -v docker)
echo "Docker size: "${#DOCKER_EXISTS}
if [ ${#DOCKER_EXISTS} -gt 0 ]; then
CONTAINERRUNTIME=docker;
fi
echo "Container runtime will be "${CONTAINERRUNTIME}
if [ ! $USER ]; then
echo "You must specify the userName used when starting eclipse202309forcora2"
else
#${CONTAINERRUNTIME} run --rm -ti --privileged --ipc=host --env="QT_X11_NO_MITSHM=1" -e DISPLAY=$DISPLAY \
cd eclipse202309forcora2
#docker-compose run -e DISPLAY=$DISPLAY\
#${CONTAINERRUNTIME} run --rm -ti --privileged --net=host --ipc=host --env="QT_X11_NO_MITSHM=1" -e DISPLAY=$DISPLAY \
${CONTAINERRUNTIME} run --rm -ti --privileged --ipc=host \
--env="QT_X11_NO_MITSHM=1"\
-e DISPLAY=$DISPLAY \
-e XDG_RUNTIME_DIR=/tmp \
-e WAYLAND_DISPLAY=$WAYLAND_DISPLAY \
-v $XDG_RUNTIME_DIR/$WAYLAND_DISPLAY:/tmp/$WAYLAND_DISPLAY \
-v /var/run/docker.sock:/var/run/docker.sock\
-v /tmp/.X11-unix:/tmp/.X11-unix\
-v /mnt/depot/cora/eclipse202309forcora2/workspace:/home/$USER/workspace\
-v /mnt/depot/cora/eclipse202309forcora2/eclipse:/home/$USER/eclipse\
-v /mnt/depot/cora/eclipse202309forcora2/.eclipse:/home/$USER/.eclipse\
-v /mnt/depot/cora/eclipse202309forcora2/.saros:/home/$USER/.saros\
-v /mnt/depot/cora/m2:/home/$USER/.m2\
-v /mnt/depot/cora/eclipseP2:/home/$USER/.p2\
-v /mnt/depot/cora/.gitconfig:/home/$USER/.gitconfig\
-e user=$USER\
-e HOSTBASEDIR=$BASEDIR\
-p 39876:9876\
-p 38080:8080\
-p 38180:8180\
-p 38280:8280\
-p 38380:8380\
-p 38081:8081\
-p 38181:8181\
-p 38281:8281\
-p 38381:8381\
-p 38082:8082\
-p 38182:8182\
-p 38282:8282\
-p 38382:8382\
-p 38090:8090\
-p 38091:8091\
-p 38092:8092\
--network=eclipseForCoraNet\
--name eclipse202309forcora2\
eclipse202309forcora2 $2
cd ../
fi
#5432 postgresql (exposed directly from that container)
#9876 karma
#8080 tomcat
#8090 fitnesse
#8983 solr (exposed directly from that container)
# -p 8080:8080 -p 9876:9876 -p 8090:8090 -p 8983:8983 -p 5432:5432\