red-deployer

module
v0.0.0-...-cab34a4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 12, 2022 License: MIT

README

dp-deployer

Event handler for Digital Publishing CI

Configuration

Environment variable Default Description
CONSUMER_QUEUE The name of the SQS queue to consume from
CONSUMER_QUEUE_URL The url of the SQS queue to consume from
DEPLOYMENT_ROOT The path to download deployment bundles
NOMAD_CA_CERT The path to the CA cert file
NOMAD_ENDPOINT http://localhost:4646 The endpoint of the Nomad API
NOMAD_TLS_SKIP_VERIFY false When using TLS to nomad, skip checking certs (bool)
NOMAD_TOKEN The ACL token used to authorise HTTP requests
PRIVATE_KEY Private key for decrypting secrets
PRODUCER_QUEUE The name of the SQS queue to produce to
VERIFICATION_KEY Public key for verifying SQS messages
AWS_REGION eu-west-1 The AWS region used
VAULT_ADDR https://127.0.0.1:8200 Vault endpoint URL
HEALTHCHECK_INTERVAL 10s The time between calling healthcheck endpoints for check subsystems
HEALTHCHECK_CRITICAL_TIMEOUT 60s The time taken for the health changes from warning state to critical due to subsystem check failures
BIND_ADDR :24300 The listen address to bind to
DEPLOYMENT_TIMEOUT 20m The max time to wait for a deployment to complete
CONSUMER_QUEUE_NEW The name of the new SQS queue to consume from
CONSUMER_QUEUE_URL_NEW The url of the new SQS queue to consume from

The application also expects your AWS credentials to be configured.

Healthcheck

The /health endpoint returns the current status of the service. Dependent services are health checked on an interval defined by the HEALTHCHECK_INTERVAL environment variable.

On a development machine a request to the health check endpoint can be made by:

curl localhost:24300/health

Licence

Copyright © 2019, Office for National Statistics (https://www.ons.gov.uk)

Released under MIT license, see LICENSE for details.

Directories

Path Synopsis
cmd
Package engine provides functionality for creating and running an engine.
Package engine provides functionality for creating and running an engine.
handler
deployment
Package deployment provides functionality for planning and running deployment jobs.
Package deployment provides functionality for planning and running deployment jobs.
Package queue provides functionality for creating and running an engine.
Package queue provides functionality for creating and running an engine.
Package ssqs provides a super simple AWS SQS consumer.
Package ssqs provides a super simple AWS SQS consumer.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL