diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..aa20614 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,23 @@ +FROM fadawar/docker-pyqt5 + +RUN apt update +RUN apt install python3 python3-pip -y +RUN apt install libgl1-mesa-glx -y +RUN apt install git -y + +COPY . /repator +WORKDIR /repator + +RUN pip3 install -r requirements.txt + +RUN apt-get update \ + && DEBIAN_FRONTEND=noninteractive apt-get install -y locales \ + && sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen \ + && dpkg-reconfigure --frontend=noninteractive locales \ + && update-locale LANG=en_US.UTF-8 +ENV LANG en_US.UTF-8 +ENV LC_ALL en_US.UTF-8 + +RUN chown qtuser: . -R +RUN chmod +x /repator/repator.py +ENTRYPOINT ["/repator/repator.py"] diff --git a/README.md b/README.md index e21d1cb..2538f32 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ Repator is a helper tool designed to automatize the process of report writing, initially for pentesters, but it was developped such that it will be easily customizable for different reporting usage. -## Install +## Normal install ### Repator git clone https://github.com/lnv42/repator @@ -11,15 +11,25 @@ Repator is a helper tool designed to automatize the process of report writing, i cd repator pip3 install -r requirements.txt -## Update +### Update cd repator git pull pip3 install -r requirements.txt -## Start +### Start cd repator ./repator.py or cd repator python3 repator.py + +## Docker install + +```bash +# To build the repator container +docker build . --tag repator + +# To run the repator +docker run -it -v /tmp/.X11-unix:/tmp/.X11-unix -v /PATH/TO/YOUR/PROJECTS:/tmp/projects -e DISPLAY=$DISPLAY -u qtuser repator +``` diff --git a/repator.py b/repator.py index b5c4f1e..cda37fa 100755 --- a/repator.py +++ b/repator.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # coding=utf-8 diff --git a/requirements.txt b/requirements.txt index 59b62d9..b51c2f2 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ -pyqt5>=5.7 +pyqt5>=5.9.0 -e git+https://github.com/lnv42/tinydb@master#egg=tinydb -e git+https://github.com/lnv42/python-docx@master#egg=python-docx fire