Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using Docker #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
FROM debian

MAINTAINER [email protected]

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"]
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down