Skip to content

AudienseCo/monorail

Repository files navigation

monorail

Setup

Docker

We use docker-compose to run monorail. There are two services:

  • monorail: this is the main service
  • monorail-test: this service runs the tests

You must set up the following environment variables:

You can set them in the file .env in order to be automatically used by docker-compose. The file should look like

GH_SECRET=yourSecret
GH_TOKEN=yourToken
SLACK_URL=https://hooks.slack.com/services/yourToken
AWS_ACCESS_KEY_ID=your_access_key_id
AWS_SECRET_ACCESS_KEY=your_secret_access_key
AWS_DEFAULT_REGION=your_aws_default_region
AWS_SESSION_TOKEN=your_temporal_token

To run the monorail service execute:

docker-compose up monorail

To run the tests execute:

docker-compose run monorail-test

Remember that if you change the code, you have to build the images again:

docker-compose build

You can access the service using cURL or your favourite HTTP client to make requests.

Example to get a deployment preview:

curl http://localhost:8484/slack-preview-release

Example to launch a deployment:

curl http://localhost:8484/deploy?showPreview=true

Native

TBC

Releases

No releases published

Packages

No packages published

Languages