Skip to content

Commit

Permalink
Merge pull request #4 from ATOR-Development/docker-onioperf
Browse files Browse the repository at this point in the history
dockerfile and cronjobs configurations added
  • Loading branch information
sshforte authored Apr 8, 2024
2 parents fe1f898 + e780114 commit 7a3a921
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ cd /home/onionperf
touch /home/onionperf/measure.log
touch /home/onionperf/analyze.log

crontab -l | { cat; echo "* 2 * * * /home/onionperf/venv/bin/onionperf measure --tgen /home/onionperf/tgen/build/src/tgen --tor /home/onionperf/ator-protocol/src/app/anon --tgen-listen-port 9510 --tgen-connect-port 9520 >> /home/onionperf/measure.log 2>&1"; } | crontab -
crontab -l | { cat; echo "* 3 * * * pkill -INT onionperf 2>&1 &&"; } | crontab -
crontab -l | { cat; echo "* 4 * * * mkdir -p /home/onionperf/results/\$(date +\%Y-\%m-\%d) && /home/onionperf/venv/bin/onionperf analyze --tgen /root/onionperf-data/tgen-client/onionperf.tgen.log --torctl /root/onionperf-data/tor-client/onionperf.torctl.log -p /home/onionperf/results/\$(date +\%Y-\%m-\%d) >> /home/onionperf/analyze.log 2>&1"; } | crontab -
crontab -l | { cat; echo "55 2 * * * pkill -INT onionperf 2>&1"; } | crontab -
crontab -l | { cat; echo "56 2 * * * mkdir -p /home/onionperf/results/\$(date +\%Y-\%m-\%d) && /home/onionperf/venv/bin/onionperf analyze --tgen /root/onionperf-data/tgen-client/onionperf.tgen.log --torctl /root/onionperf-data/tor-client/onionperf.torctl.log -p /home/onionperf/results/\$(date +\%Y-\%m-\%d) >> /home/onionperf/analyze.log 2>&1"; } | crontab -
crontab -l | { cat; echo "0 3 * * * /home/onionperf/venv/bin/onionperf measure --tgen /home/onionperf/tgen/build/src/tgen --tor /home/onionperf/ator-protocol/src/app/anon --tgen-listen-port 9510 --tgen-connect-port 9520 >> /home/onionperf/measure.log 2>&1"; } | crontab -

service cron start
tail -f /home/onionperf/measure.log

0 comments on commit 7a3a921

Please sign in to comment.