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

telemark/avtale-status

Repository files navigation

Build Status js-standard-style

avtale-status

  • Checks the status for agreements.
  • Generate job for updating.
  • Post statusupdate to log

Setup

Change the docker.env to match your environment.

NODE_ENV=production
DONE_DIRECTORY_PATH=test/directories/done
JOBS_DIRECTORY_PATH=test/directories/jobs
AGREEMENTS_JWT_SECRET=Louie Louie, oh no, I got to go Louie Louie, oh no, I got to go
AGREEMENTS_LOG_SEARCH_URL=https://log.service.no/agreements/search
AGREEMENTS_LOG_UPDATE_URL=https://log.service.no/agreements
SVARUT_JWT_SECRET=Louie Louie, oh no, I got to go Louie Louie, oh no, I got to go
SVARUT_SERVICE_URL=https://svarut.service.no
STATS_SERVICE_JWT=Louie Louie, oh no, I got to go Louie Louie, oh no, I got to go
STATS_SERVICE_URL=https://stats.service.io
PAPERTRAIL_HOSTNAME=avtale-robot
PAPERTRAIL_HOST=logs.papertrailapp.com
PAPERTRAIL_PORT=12345

Build

$ docker build -t avtale-status .

Usage

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

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

Releated

License

MIT