Make sure you have docker (https://docs.docker.com/engine/install/) and docker-compose (https://docs.docker.com/compose/install/linux/) installed.
On the root directory of the replication package, Follow the steps below and execute the commands:
-
Set up containers docker-compose up -d
-
Go into the shell of log2cov container docker exec -it log2cov /bin/bash
- In log2cov's shell, do cd / mongorestore --uri "mongodb://mongo:27017/" ./db_backup
mongorestore --uri "mongodb://mongo:27017/" --db salt_unit_initial ./db_backup/salt_unit_initial mongorestore --uri "mongodb://mongo:27017/" --db salt_unit_after ./db_backup/salt_unit_after mongorestore --uri "mongodb://mongo:27017/" --db salt_integration ./db_backup/salt_integration mongorestore --uri "mongodb://mongo:27017/" --db nova_unit_initial ./db_backup/nova_unit_initial mongorestore --uri "mongodb://mongo:27017/" --db nova_unit_after ./db_backup/nova_unit_after mongorestore --uri "mongodb://mongo:27017/" --db nova_functional ./db_backup/nova_functional mongorestore --uri "mongodb://mongo:27017/" --db homeassistant_unit_initial ./db_backup/homeassistant_unit_initial mongorestore --uri "mongodb://mongo:27017/" --db homeassistant_unit_after ./db_backup/homeassistant_unit_after mongorestore --uri "mongodb://mongo:27017/" --db ground_truth ./db_backup/ground_truth
-
To get exploratory evaluation result. In log2cov's shell, do cd /log2cov python3 exploratory_evaluation_result.py
-
To get RQ1 result. In log2cov's shell, do cd /log2cov python3 rq1_result.py
-
To get RQ2 result. In log2cov's shell, do cd /log2cov python3 rq2_result.py
- cd /log2cov
- python3 main.py
mongodump --uri "mongodb://mongo:27017/" --db salt --out ./ mongorestore --uri "mongodb://mongo:27017/" --db salt_docker ./salt
- cd /log2cov
- python3 slice.py
- python3 main.py