A tool to mine IaC-based repositories.
Project description
radon-repository-miner
A Python package for mining Infrastructure-as-Code software repositories.
How to install
From PyPI:
pip install repository-miner
From source code:
git clone https://github.com/radon-h2020/radon-repository-miner.git
cd radon-repository-miner
pip install -r requirements.txt
pip install .
How to test
pip install pytest
unzip test_data.zip -d .
pytest
How to build Docker container
docker build --tag repo-miner:latest .
How to run Docker container
First create or define a directory to mount inside the Docker container to access the results once generated.
For the sake of the example let's use /tmp/
.
Mine
Using the github
argument:
docker run -v /tmp:/app -e GITHUB_ACCESS_TOKEN=$GITHUB_ACCESS_TOKEN repo-miner:test repo-miner mine github ansible adriagalin/ansible.motd . --verbose
Using the github
argument:
docker run -v /tmp:/app -e GITLAB_ACCESS_TOKEN=$GITHUB_ACCESS_TOKEN repo-miner:test repo-miner mine github ansible adriagalin/ansible.motd . --verbose
Extract metrics
docker run -v /tmp:/app repo-miner:test repo-miner extract-metrics https://github.com/<owner>/<repository>.git /tmp/failure_prone_files.json ansible all release . --verbose
CHANGELOG
See the CHANGELOG for information about the release history.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for repository_miner-0.7.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 644356baaf36fc0a531f9336bc49c8589249ec8e454d9ef5dde6f86122b839eb |
|
MD5 | 5e53b5911476fc5de9386d7c0e54a92c |
|
BLAKE2b-256 | e7b093df019326f5cd4cac8b5191eaf56945b1432c7de51c9b8603466a92e5c0 |