Skip to content

Commit

Permalink
Merge pull request #961 from Mr-Gag/master
Browse files Browse the repository at this point in the history
Support Docker
  • Loading branch information
asolino authored Nov 12, 2020
2 parents d7039ed + c95160d commit d1ced94
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM python:2-alpine as compile
WORKDIR /opt
RUN apk add --no-cache git gcc openssl-dev libffi-dev musl-dev
RUN pip install virtualenv
RUN virtualenv -p python venv
ENV PATH="/opt/venv/bin:$PATH"
RUN git clone --depth 1 https://github.com/SecureAuthCorp/impacket.git
RUN pip install impacket/

FROM python:2-alpine
COPY --from=compile /opt/venv /opt/venv
ENV PATH="/opt/venv/bin:$PATH"
ENTRYPOINT ["/bin/sh"]
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,19 @@ If you want to run the library test cases you need to do mainly three things:
Once that's done, you can run `tox` and wait for the results. If all goes well, all test cases should pass.
You will also have a coverage HTML report located at `impacket/tests/htlmcov/index.html`

Support Docker
---------------

Build Image Impacket
To create image

`docker build -t "impacket:latest" .`


Using Impacket

`docker run -it --rm "impacket:latest"`

Licensing
=========

Expand Down

0 comments on commit d1ced94

Please sign in to comment.