Commit 23e35b7d by fwkz

Adding Docker

parent f075e3db
FROM python:2.7
WORKDIR /rsf
WORKDIR /routersploit
COPY requirements.txt /rsf
RUN git clone https://github.com/reverse-shell/routersploit/ .
RUN pip install -r requirements.txt
COPY rsf.py /rsf
COPY run_linter.sh /rsf
COPY run_tests.sh /rsf
COPY tox.ini /rsf
COPY ./routersploit /rsf/routersploit
CMD /rsf/rsf.py
CMD ["python", "rsf.py"]
\ No newline at end of file
# Makefile that aggregates common chores before commit
.PHONY: all clean lint lint-modules test build update run help
MODULE=''
all: lint test
......@@ -18,6 +20,15 @@ lint-modules:
test: clean
./run_tests.sh $(MODULE)
build:
docker build -t routersploit:latest -f Dockerfile .
update:
./run_docker.sh git pull
run:
./run_docker.sh
help:
@echo " clean"
@echo " Remove python artifacts."
......
#!/usr/bin/env bash
if [ -z $1 ] ; then
docker run -it --net host --rm routersploit
else
docker run -it --net host --rm routersploit $@
fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment