-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrun.sh
executable file
·75 lines (50 loc) · 2.08 KB
/
run.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
74
75
# Bash MacOS
#import android-platforms:
git clone https://github.com/Sable/android-platforms.git dockeranalyze/android-platforms
#Copy the android platform on the other docker container, because not success to create a shared volume.
rm -rf dockerTandoori/android-platforms
cp -R dockeranalyze/android-platforms dockerTandoori/android-platforms
#copy the .jar on the dockercontainer because busy.
cp paprika-web/target/Paprika-web.jar dockerweb/
cp paprika-analyze/target/Paprika-analyze.jar dockeranalyze/
cp paprika-tandoori/target/Paprika-Tandoori.jar dockerTandoori/
#copy the json on each container.
cp info.json dockerweb/
cp info.json dockerTandoori/
cp info.json dockeranalyze/
#run this command if spirals-somca do not exist on docker-machine ls
##docker-machine create --driver generic --generic-ip-address=spirals-somca --generic-ssh-key ~/.ssh/id_rsa --generic-ssh-user=gwillefe spirals-somca
#Connect to the spirals-somca VM
docker-machine env spirals-somca
eval $(docker-machine env spirals-somca)
#Delete parasite?
#docker system prune -f
#Create all empty directory:
mkdir dockerweb/application
mkdir dockerTandoori/input
mkdir dockerTandoori/output
#Container for Paprika web
docker build -t paprika-web dockerweb
#Container for analyze with a file.apk
docker build -t paprika-analyze dockeranalyze
#Container for analyze with a Github link.
docker build -t paprika-tandoori dockerTandoori
#Apply many things on the docker-machine:
#Launch and create the container neo4j
docker-compose up -d neoj
#
sleep 5
#Launch Paprika web
docker-compose up -d web
#Thing for me:
#docker-machine ssh spirals-somca
#sudo docker run -it paprika-web /bin/sh
#ls -a
#--verbose
#docker system prune delete all not-used things
#if problem you can use --verbose : exemple: docker-compose --verbose up neo4j
#you can also docker rm/rmi containers/images
#for stop a container: docker stop neo4j-paprika
#for start a container:docker start neo4j-paprika
#For get the id adress of a container:
#docker inspect --format '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' neo4j-paprika