obheda12 / GitDorker

A Python program to scrape secrets from GitHub through usage of a large repository of dorks.
2.31k stars 420 forks source link

Provide a Dockerfile? #6

Closed jdbohrman closed 4 years ago

jdbohrman commented 4 years ago

It would be really nice to have the ability to run this via Docker with the ability to just pass in the env variables. Would this be something you'd like to see contributed?

obheda12 commented 4 years ago

That's a good point and I would, my only concern would be should it create any performance issues. Thoughts?

menum724 commented 4 years ago

Like power in the battery..... I see these new Duracell Optimum now. Sounds cool. But really don't want to take up too much of your time. I see there's raw code by CI/CB platform. Or repositories in and on Github. Now I do subscribe to this thread.

On Thu, Oct 15, 2020, 7:49 AM Omar Bheda notifications@github.com wrote:

That's a good point and I would, my only concern would be should it create any performance issues. Thoughts?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/obheda12/GitDorker/issues/6#issuecomment-709377392, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADTLNIDU7OFRWA75SJE2LP3SK4DV3ANCNFSM4SRL47VA .

....... So I think my workflow is better somehow. I will look into how and what I post. Ie

obheda12 commented 4 years ago

Sorry menum im not sure I follow?

menum724 commented 4 years ago

I just want to know. And this seems like a good startup project. Clue me in if you don't mind. I found a few repositories to merge in the forum.

On Thu, Oct 15, 2020, 8:57 PM Omar Bheda notifications@github.com wrote:

Sorry menum im not sure I follow?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/obheda12/GitDorker/issues/6#issuecomment-709716425, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADTLNIF24KW5YRZHKJNSIH3SK7ADZANCNFSM4SRL47VA .

..... And delete this post on the thread if admin.

tommy-muehle commented 4 years ago

Hi,

I'm currently using this Dockerfile successfully (and without noticeable performance decreases):

FROM python:3.8-slim

COPY requirements.txt .
RUN pip install --user -r requirements.txt

WORKDIR /code

COPY ./GitDorker.py .
ENTRYPOINT [ "python", "GitDorker.py" ]

via

$ docker build -t gitdorker:latest .

and

$ docker run --rm -v $PWD:/code gitdorker:latest -h

One note, I had to change the requirements file to this:

termcolor
tqdm
requests

@obheda12 Let me know if you're interested in a PR for this.

obheda12 commented 4 years ago

Hi tommy, thank you I would be please go ahead and I will accept it after reviewing

obheda12 commented 4 years ago

The docker file has been provided

menum724 commented 4 years ago

Thanks Re: I am

On Mon, Nov 2, 2020, 6:31 PM Omar Bheda notifications@github.com wrote:

The docker file has been provided

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/obheda12/GitDorker/issues/6#issuecomment-720872470, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADTLNIABXFIMCEEAEHXEX4LSN5TOVANCNFSM4SRL47VA .