tor_multipath_voip/scripts/xp1
2019-03-06 16:39:39 +01:00

34 lines
630 B
Bash
Executable file

#!/bin/bash
# Create workdir
XP_FOLDER=`mktemp -d -p . xp1-XXXXXXXXXXXXXXXX`
mkdir -p $XP_FOLDER
cd $XP_FOLDER
# Create folders
mkdir -p ./{shared,log,res}
chown -R 1000 ./{shared,log,res}
# Run server
docker run \
--privileged \
--rm \
-v `pwd`/shared:/home/donar/shared \
-v `pwd`/log:/home/donar/log \
registry.gitlab.inria.fr/qdufour/donar \
xp1-server &
sleep 30
# Run client
docker run \
--privileged \
--rm \
-v `pwd`/res:/home/donar/res \
-v `pwd`/shared:/home/donar/shared \
-v `pwd`/log:/home/donar/log \
registry.gitlab.inria.fr/qdufour/donar \
xp1-client $1 $2 $3
# Kill server
kill %1