This is a template made on LaTex to report the processes made to pentest a software or infrastructure (or even hardware).
To build the CV, you need to have a LaTeX distribution installed on your system and pdflatex or latexmk. You can then build the CV by running the following command:
latexmk -pdf template.tex
# or
pdflatex main.tex- Build Your Docker Image
First, you need to build the Docker image from your Dockerfile. Navigate to the directory containing your Dockerfile and run:
docker build -t latex_env .This command builds a Docker image with the tag latex_env from the Dockerfile in the current directory. The dot . at the end specifies the build context as the current directory.
- Run Your Docker Container
After building the image, you can run a container from it. You'll want to mount the directory containing your LaTeX project (for example, cv.tex and related files) to a directory inside the container so that you can access and compile your LaTeX project from within the container.
docker run -it --rm -v /path/to/your/latex/project:/project latex_envReplace /path/to/your/latex/project with the absolute path to the directory on your host machine that contains your LaTeX project. This command mounts it to /project inside the container. The -it option allows you to interact with the container, and --rm automatically removes the container when you exit.
- Compile Your LaTeX Project
Once inside the container, navigate to the mounted directory:
cd /projectThen, you can compile your LaTeX project using pdflatex:
latexmk -pdf template.tex
# or
pdflatex main.texThis command will generate the output files (e.g., cv.pdf) in your project directory, which is mounted from your host, so you can access them even after the container is removed.
- Exit the Container
When you're done, you can exit the container by typing exit. The container will stop, and due to the --rm flag, it will also be automatically removed.