All dependencies used by the APRFramework are neatly encapsulated within a Dockerfile, meaning the only requirement for running this experiment is Docker itself. DockerHub provides the simplest mechanism to run this project, with recommendation to try this method first.
- Download Docker for your specific operating system, https://docs.docker.com/get-docker/
- Follow the installation instructions for Docker if needed, and, check that Docker installed correctly
- Create your own config.yml file, using https://github.com/fentonreid/APRFramework/blob/main/config.yml as reference
- Open a terminal tab in the same directory as this configuration file
- Run the command found at step 6 to start the APRFramework. Replacing ${pwd} with the absolute path to the directory you are in
- docker run -v ${pwd}/config.yml:/APRFramework/config.yml -v ${pwd}/output/:/output/ fentonreid/aprframework:latest
- Once the APRFramework has finished, the desired output for each bug will be saved in the /output directory
- Make sure to remove the locally downloaded container once you are finished, as this file is \ around 2.58GB in size
- To do this, type 'docker images' in your terminal and locate the 'IMAGE ID' of the 'fentonreid/aprframework' container
- You can remove this image locally by typing: 'docker rmi -f $IMAGE ID', replacing $IMAGE ID, with your specific value
An alternative method for creating the required Docker container is also possible, where you can build the container yourself with the given Dockerfile, the steps are outlined below.
- Repeat the steps for the 'Using DockerHub' section up to and including step 2
- Git clone my repository to a directory of your choosing, using the following command in a command line window, 'https://github.com/fentonreid/APRFramework'
- Edit the original config.yml file to the desired configuration
- Open a terminal tab in the same directory as this GitHub repository
- Run the Docker build command: 'docker build -t aprframework .'
- The container may take some time to create, please be patient
- Once the container is created, run the command found at step 8 to start the APRFramework. Replacing ${pwd} with the absolute path to the directory you are in
- docker run -v ${pwd}/output/:/output/ aprframework
- Once the APRFramework has finished outputting and the container is no longer required, please cleanup the container, following steps 8-10 of 'Using DockerHub'
- Once the APRFramework has finished, the desired output for each bug will be saved in the /output directory
- Make sure to remove the locally downloaded container once you are finished, as this file is \ around 2.58GB in size
- To do this, type 'docker images' in your terminal and locate the 'IMAGE ID' of the 'fentonreid/aprframework' container
- You can remove this image locally by typing: 'docker rmi -f $IMAGE ID', replacing $IMAGE ID, with your specific value