Skip to content

telemark/robot-convert-docx-to-pdf

Repository files navigation

Build Status js-standard-style

robot-convert-docx-to-pdf

Converts docx to pdf.

  • Picks file from queue directory
  • Converts every file in documents to pdf
  • Saves new file in done

Setup

Update docker.env with correct settings

DONE_DIRECTORY_PATH=test/directories/done
ERRORS_DIRECTORY_PATH=test/directories/errors
QUEUE_DIRECTORY_PATH=test/directories/queue
TEMP_DIRECTORY_PATH=test/directories/temp
PAPERTRAIL_HOSTNAME=convert-docx-to-pdf
PAPERTRAIL_HOST=logs.papertrailapp.com
PAPERTRAIL_PORT=12345

Build

$ docker build -t convert-robot .

Usage

$ docker run --env-file=docker.env --volume=/test/directories/queue:/src/test/directories/queue --rm convert-robot

This will start a container. Do the job. Stop the container and remove it.

License

MIT