From b95db09b96d6a901004fdf3ccccc98e297c9102d Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Fri, 16 Sep 2022 15:43:58 +0200 Subject: Create a prepare script --- README.md | 27 ++++++--------------------- 1 file changed, 6 insertions(+), 21 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 7697dee..f49f574 100644 --- a/README.md +++ b/README.md @@ -5,42 +5,27 @@ locally thanks to network namespaces and traffic control (tc). ## Prepare your environment -Get the repository and its submodules: +Get the repository: ```bash git clone https://git.deuxfleurs.fr/Deuxfleurs/mknet.git cd mknet -git submodule update --init ``` -Compile benchmark tools: +Run our configuration script: ```bash -( cd benchmarks/warp && go build ) -( cd benchmarks/s3concurrent && go build ) -( cd benchmarks/s3lat && go build ) +./prepare.py ``` -Switch to root as it is required by our tool, -and setup your python environment. +Now, you are ready to launch an experiment: ```bash sudo -i -pip3 install --user . -( cd scenarios && pip3 install --user -r requirements.txt ) -``` - -Sometimes, it is required to add manually your local python lib folder to the environment: - -```bash -export PYTHONPATH=$PYTHONPATH:$HOME/.local/lib/python3.10/site-packages/ +source .venv/bin/activate +./mknet scenario ./topo/50ms.yml ./scenarios/garage-s3lat garage-v0.8 ``` -You can check that everything has been installed by running in a python REPL: - -``` -import garage_admin_sdk -``` ## Topologies -- cgit v1.2.3