bee-san / pyWhat

🐸 Identify anything. pyWhat easily lets you identify emails, IP addresses, and more. Feed it a .pcap file or some text and it'll tell you what it is! 🧙‍♀️
MIT License
6.58k stars 349 forks source link

Add Docker support #242

Closed mavnt closed 2 years ago

mavnt commented 2 years ago

⚠ Pull Requests not made with this template will be automatically closed 🔥

Prerequisites

Why do we need this pull request?

This PR adds Docker support so that one can choose to use pyWhat in Docker instead of installing it. A GH action should probably be added to automatically push to Docker Hub and the README.md file should be updated.

What GitHub issues does this fix?

None.

Copy / paste of output

Please copy and paste the output of PyWhat with your new addition using an example that tests this addition below:

$ docker run --rm mavnt/pywhat "0x52908400098527886E0F7030069857D2E4169EE7"
...
Matched on: 0x52908400098527886E0F7030069857D2E4169EE7
Name: Ethereum (ETH) Wallet Address
Link:  https://etherscan.io/address/0x52908400098527886E0F7030069857D2E4169EE7
...
$ cat file.txt
0x52908400098527886E0F7030069857D2E4169EE7
$ docker run --rm -v $(pwd):/workdir mavnt/pywhat:latest file.txt
...
Matched on: 0x52908400098527886E0F7030069857D2E4169EE7
Name: Ethereum (ETH) Wallet Address
Link:  https://etherscan.io/address/0x52908400098527886E0F7030069857D2E4169EE7
...
bee-san commented 2 years ago

Nice! I should push this to Dockerhub :D

codecov-commenter commented 2 years ago

Codecov Report

Merging #242 (6fdad3d) into main (1e843aa) will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #242   +/-   ##
=======================================
  Coverage   92.60%   92.60%           
=======================================
  Files          15       15           
  Lines        1217     1217           
=======================================
  Hits         1127     1127           
  Misses         90       90           

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 1e843aa...6fdad3d. Read the comment docs.