Commit 23e35b7d by fwkz

Adding Docker

parent f075e3db
FROM python:2.7 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 RUN pip install -r requirements.txt
COPY rsf.py /rsf CMD ["python", "rsf.py"]
COPY run_linter.sh /rsf \ No newline at end of file
COPY run_tests.sh /rsf
COPY tox.ini /rsf
COPY ./routersploit /rsf/routersploit
CMD /rsf/rsf.py
# Makefile that aggregates common chores before commit # Makefile that aggregates common chores before commit
.PHONY: all clean lint lint-modules test build update run help
MODULE='' MODULE=''
all: lint test all: lint test
...@@ -18,6 +20,15 @@ lint-modules: ...@@ -18,6 +20,15 @@ lint-modules:
test: clean test: clean
./run_tests.sh $(MODULE) ./run_tests.sh $(MODULE)
build:
docker build -t routersploit:latest -f Dockerfile .
update:
./run_docker.sh git pull
run:
./run_docker.sh
help: help:
@echo " clean" @echo " clean"
@echo " Remove python artifacts." @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