This repository has been archived by the owner on Feb 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild_eae.sh
64 lines (56 loc) · 1.84 KB
/
build_eae.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
#!/usr/bin/env bash
## Cleanup before build
rm -f id_rsa*
rm -f interfaceEAE/id_rsa*
rm -f jupyter/id_rsa.pub
## We generate the same key for all containers
ssh-keygen -t rsa -N "" -f id_rsa
## We copy to the directories
if [ ! -d ssh ]; then
mkdir ssh
fi
rm -rf ssh/*
mv id_rsa* ssh/
cp interfaceEAE/lsf.cluster.* workerExample
cp jupyter/irkernel_install.r workerExample
cp interfaceEAE/lsf.cluster.* workerSparkExample
docker-compose build
echo -e "To start the eAE please run 'bash start_eae.sh'\nAlternatively, if you do not want to run tranSMART at the same time, please run 'bash start_eae_without_transmart.sh'\n"
## We build the images
#docker build interfaceEAE/
#docker build jupyter/
#docker build workerExample/
#
## NB -it to be replaced by -d
### InterfaceEAE start
#docker run -it \
# -h interfaceEAE \
# --link mongo_mongo_1 \
# --net mongo_default \
# -v ~/.id_rsa.pub:/root/.ssh/.id_rsa.pub
# -p 22222:22 \
# -p 8443:8443 \
# -p 16322:16322 \
# -p 16323:16323 \
# -p 16324:16324 \
# -p 16325:16325 \
# --add-host worker1:$WorkerIP \
# aoehmichen/interfaceEAE:latest -bash None
#
#docker run -it \
# -h worker1 \
# -p 22222:22 \
# -p 16322:16322 \
# -p 16323:16323 \
# -p 16324:16324 \
# -p 16325:16325 \
# --add-host interfaceEAE:146.169.33.20 \
# xxxxxxxx -bash
#
#docker run -it \
# -h interfaceEAE \
# -v ./id_rsa.pub:/home/eae/.ssh/id_rsa.pub \
# -v ./interfaceEAE/Config.groovy:/home/eae/.grails/transmartConfig/Config.groovy \
# -v ./id_rsa:/home/eae/.ssh/id_rsa \
# -v ./interfaceEAE/lsb.hosts :/opt/openlava-3.3/etc/lsb.hosts \
# aoehmichen/interfaceEAE:latest