From cfa5096132ca7829580705744a98c905d6a333fc Mon Sep 17 00:00:00 2001 From: Green Mind Date: Wed, 18 Jul 2018 11:49:59 -0300 Subject: [PATCH] Using Docker --- Dockerfile | 31 +++++++++++++++++++++++++++++++ README.md | 17 +++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..1d304eb --- /dev/null +++ b/Dockerfile @@ -0,0 +1,31 @@ +FROM debian + +MAINTAINER greenmind.sec@gmail.com + +RUN apt-get update -y + +RUN apt-get install php-curl -y + +RUN apt-get install php-cli -y + +RUN apt-get install curl -y + +RUN apt-get install libcurl3 -y + +RUN apt-get install php -y + +RUN apt-get install git -y + +WORKDIR /root + +RUN git clone https://github.com/googleinurl/SCANNER-INURLBR + +WORKDIR /root/SCANNER-INURLBR + +RUN chmod +x inurlbr.php + +RUN ln -s /root/SCANNER-INURLBR/inurlbr.php /bin/inurlbr + +ENTRYPOINT ["/root/SCANNER-INURLBR/inurlbr.php"] + +CMD ["--help"] diff --git a/README.md b/README.md index f797023..b3df9f8 100644 --- a/README.md +++ b/README.md @@ -584,6 +584,23 @@ To get a list of all options and switches use: php inurlbr.php --help ``` +- Using Docker +---- + +Create image using Docker +``` +sudo docker build -t inurlbr:0.1 . +``` + +Using image +``` +sudo docker run -it --rm inurl-docker:0.1 -h +``` + +Sharing volumes +``` +sudo docker run -it --rm -v /SCANNER-INURLBR/output/:$(pwd) inurl-docker:0.1 -h +``` * Demos: [http://youtube.com/c/INURLBrasil](https://www.youtube.com/playlist?list=PLV1376pVwcCmcoCmq_Z4O0ra4BqjmhIaR) * Tutoriais: [http://blog.inurl.com.br/search/label/INURLBR](http://blog.inurl.com.br/search/label/INURLBR)