- Checks the status for agreements.
- Generate job for updating.
- Post statusupdate to log
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
$ docker build -t avtale-status .
$ 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.