-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.sh
executable file
·34 lines (25 loc) · 919 Bytes
/
build.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
#!/bin/bash
PATH_KIEKER='/home/serafim/Desktop/kieker-lang-pack-python'
PATH_SPYDER='/home/serafim/Desktop/spyder'
PATH_COLLECTOR='/home/serafim/Desktop/collector-1.15-SNAPSHOT/bin/collector'
PATH_CONFIG='/home/serafim/Desktop/collector-1.15-SNAPSHOT/bin/config.txt'
cd $PATH_KIEKER
python3 -m build
pip install dist/kieker-monitoring-for-python-0.0.1.tar.gz
if [[ $1 == -nc ]]
then
gnome-terminal -- bash -c "nc -l 65432 | hexdump -C > ~/Desktop/out.txt" #nc -l 65432 | hexdump -C
cd $PATH_SPYDER
python3 bootstrap.py
elif [[ $1 == -kieker ]]
then
gnome-terminal -- bash -c "${PATH_COLLECTOR} -c ${PATH_CONFIG}"
echo "wait 45 seconds to let collector initialize properly"
sleep 15s
cd $PATH_SPYDER
python3 bootstrap.py
else
echo "Wrong command. Supported commands: [-nc],[-kieker]"
echo "[-nc] debug using netcat"
echo "[-kieker] debug using collector"
fi