Distribute avtaler via SvarUT.
Register job for agreementservice if provided.
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
$ docker build -t avtale-distribusjon .
$ 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.