WIP scripting
This commit is contained in:
parent
ed42636739
commit
b3b8225d65
4 changed files with 18 additions and 3 deletions
|
@ -17,4 +17,7 @@ USER 1000
|
|||
ENV HOME /home/donar
|
||||
COPY --from=builder /home/donar-build/out/donar /usr/local/bin
|
||||
COPY --from=builder /home/donar-build/out/measlat /usr/local/bin
|
||||
COPY --from=builder /home/donar-build/out/udpecho /usr/local/bin
|
||||
COPY --from=builder /home/donar-build/scripts/xp1-client /usr/local/bin
|
||||
COPY --from=builder /home/donar-build/scripts/xp1-server /usr/local/bin
|
||||
COPY ./torrc_simple /etc/torrc
|
||||
|
|
|
@ -19,3 +19,7 @@ Uncheck all the checkboxes.
|
|||
sudo docker build -t registry.gitlab.inria.fr/qdufour/donar .
|
||||
sudo docker push registry.gitlab.inria.fr/qdufour/donar
|
||||
```
|
||||
|
||||
```
|
||||
sudo docker run -t -i -v `pwd`/xp1:/home/donar/res registry.gitlab.inria.fr/qdufour/donar xp1-server
|
||||
```
|
||||
|
|
|
@ -1,4 +1,7 @@
|
|||
#!/bin/bash
|
||||
tor -f /etc/torrc &
|
||||
donar -a naive -c /shared/onion_services.pub -r 9000 &
|
||||
measlat 127.13.3.7 9000 100 100 50
|
||||
sleep 2
|
||||
mkdir -p ./shared
|
||||
donar -a naive -c ./shared/onion_services.pub -r 9000 &
|
||||
measlat -h 127.13.3.7 -p 9000 # Used to wait for connections
|
||||
measlat -h 127.13.3.7 -p 9000 -c $1 -i $2 -s $3 > `mktemp -p ./res res-XXXXXXXXXXXXXXXX.txt`
|
||||
|
|
|
@ -1,2 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
tor -f /etc/torrc &
|
||||
sleep 2
|
||||
mkdir -p ./shared
|
||||
cd ./shared
|
||||
donar -a naive -s -e 9000 &
|
||||
udpecho -p 9000
|
||||
|
|
Loading…
Reference in a new issue