Skip to content

Commit 4379922

Browse files
Add docker usage
1 parent a7db1f8 commit 4379922

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

.dockerignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.git
2+
.gitignore

Dockerfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
FROM python
2+
3+
WORKDIR /pcap2curl
4+
5+
COPY . .
6+
7+
RUN pip install .
8+
RUN chmod +x pcap2curl.py
9+
RUN echo "export PATH=/pcap2curl:\"$PATH\"" >> ~/.bashrc

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,11 @@ Little effort is made to verify that the requests are valid. This is intended to
99

1010
DISCLAIMER: I am not a Python coder. I do not like Python. I have to use it once in a while because I love [Scapy](http://www.secdev.org/projects/scapy/).
1111

12+
## Usage with docker
13+
```sh
14+
docker build . -t pcap2curl
15+
docker run -v /host/path/to/capture.pcap:/capture.pcap pcap2curl bash
16+
pcap2curl.py /capture.pcap
17+
```
18+
1219
CREDIT: Stackoverflow

0 commit comments

Comments
 (0)