Skip to content
This repository has been archived by the owner on Nov 5, 2020. It is now read-only.

telemark/avtale-distribusjon

Repository files navigation

Build Status js-standard-style

avtale-distribusjon

Distribute avtaler via SvarUT.

Register job for agreementservice if provided.

Setup

Change the docker.env to match your environment.

NODE_ENV=production
CALLBACK_DIRECTORY_PATH=test/directories/callback
DONE_DIRECTORY_PATH=test/directories/done
ERRORS_DIRECTORY_PATH=test/directories/errors
RETRIES_DIRECTORY_PATH=test/directories/retries
QUEUE_DIRECTORY_PATH=test/directories/queue
SVARUT_JWT_SECRET=Louie Louie, oh no, I got to go Louie Louie, oh no, I got to go
SVARUT_SERVICE_URL=https://api.svarut.no/sendForsendelse
PAPERTRAIL_HOSTNAME=avtale-distribusjon
PAPERTRAIL_HOST=logs.papertrailapp.com
PAPERTRAIL_PORT=12345

Build

$ docker build -t avtale-distribusjon .

Usage

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

This will start a container. Distribute the documents. Stop the container and remove it.

Releated

License

MIT