Skip to content

Local Execution with Docker

rmotta.net:~# edited this page Apr 2, 2024 · 3 revisions

If you prefer to run UnchainedText locally using Docker, follow these steps:

Requirements

Ensure you have Docker installed on your machine.

Folder Structure Setup

Create the necessary folder structure for the project to understand the paths:

folder
  ├── data
  │   ├── pdf
  │   │   └── file_to_convert.pdf
  │   └── raw

Pull Docker Image

Pull the UnchainedText Docker image from Docker Hub:

docker pull rmottanet/unchainedtext

Execution

Run the Docker container with the following command:

docker run -it -e INPUT_FOLDER=/app/data/pdf -e OUTPUT_FOLDER=/app/data/raw -v $(pwd)/data/pdf:/app/data/pdf -v $(pwd)/data/raw:/app/data/raw rmottanet/unchainedtext

This will convert the PDF files located in /data/pdf and save the extracted text files in /data/raw.


These instructions guide for users to run UnchainedText locally using Docker, including setting up the required folder structure and executing the Docker commands. Let me know if you need further assistance or additional sections for the Wiki.

Clone this wiki locally