Public | Automated Build

Last pushed: 19 days ago
Short Description
Pulls jobs from queue, saves as .json
Full Description


robot-queue-pull

Retrieves all jobs from queue

Setup

Update docker.env

NODE_ENV=production
JWT_SECRET=Louie Louie, oh no, I got to go Louie Louie, oh no, I got to go
JOBS_DIRECTORY_PATH=test/directories/jobs
COPIES_DIRECTORY_PATH=test/directories/copies
#CALLBACK_URL=https://example.com/api/callback - only use if needed
#AUTH_USERNAME=username - only use if needed
#AUTH_PASSWORD=password - only use if needed
QUEUE_NEXT_URL=https://example.com/api/queue/next
#QUEUE_DELETE_URL=https://example.com/api/queue - only use if needed
PAPERTRAIL_HOSTNAME=robot-queue-pull
PAPERTRAIL_HOST=logs.papertrailapp.com
PAPERTRAIL_PORT=12345

Callback

If you don't need a callback service just remove CALLBACK_URL from config.

Auth

If you don't need to authenticate with username and password, remove AUTH_USERNAME and AUTH_PASSWORD from config

Build

$ docker build -t robot-queue-pull .

Usage

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

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

License

MIT

Docker Pull Command
Owner
telemark
Source Repository