scripts: small patch on scripts

Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
This commit is contained in:
Vincenzo Palazzo 2024-04-19 12:55:34 -04:00
parent 09352467fb
commit d0d0d4b6a5
Signed by: vincenzopalazzo
GPG Key ID: 8B6DC2B870B80D5F
3 changed files with 12 additions and 5 deletions

View File

@ -1,5 +1,13 @@
#!/bin/bash
echo $(pwd)
cd attackathon/warnet
python3 -m venv .venv # Use alternative venv manager if desired
source .venv/bin/activate
pip install -e .
cd .. && cd ..
./attackathon/scripts/credentials.sh
if [ ! -d "attackathon" ]; then
echo "Error: attackathon repo not found, script should be run from directory containing it."
exit 1

View File

@ -19,8 +19,12 @@ current_directory=$(pwd)
sim_files="$current_directory/attackathon/data/$network_name"
cd warnet
python3 -m venv .venv # Use alternative venv manager if desired
source .venv/bin/activate
pip install --upgrade pip
pip install -e .
echo "💣 Bringing up warnet 💣"
warcli network start "$sim_files/$network_name.graphml" --force

View File

@ -17,11 +17,6 @@ fi
cd warnet
if [ -n "$(git status --porcelain)" ]; then
echo "There are uncommitted changes in warnet, please stash them!"
exit 1
fi
# Check whether running docker desktop or minikube.
docker_info=$(docker info)
if grep -q "Operating System:.*Desktop" <<< "$docker_info"; then