https://github.com/audienseco/monorail
Audiense CI/CD tool
https://github.com/audienseco/monorail
Last synced: 2 months ago
JSON representation
Audiense CI/CD tool
- Host: GitHub
- URL: https://github.com/audienseco/monorail
- Owner: AudienseCo
- License: mit
- Created: 2016-04-11T10:08:06.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2025-02-24T16:33:00.000Z (4 months ago)
- Last Synced: 2025-02-24T17:42:37.973Z (4 months ago)
- Language: JavaScript
- Homepage:
- Size: 612 KB
- Stars: 5
- Watchers: 17
- Forks: 0
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# monorail
.png)
## Setup
### Docker
We use [docker-compose](https://docs.docker.com/compose/overview/) to run monorail.
There are two services:- monorail: this is the main service
- monorail-test: this service runs the testsYou must set up the following environment variables:
- `GH_SECRET`: https://developer.github.com/v3/guides/basics-of-authentication/
- `GH_TOKEN`: https://help.github.com/en/articles/creating-a-personal-access-token-for-the-command-line
- `SLACK_URL`: https://api.slack.com/incoming-webhooks
- `AWS_ACCESS_KEY_ID`: https://docs.aws.amazon.com/amazonswf/latest/awsrbflowguide/set-up-creds.html
- `AWS_SECRET_ACCESS_KEY`: https://docs.aws.amazon.com/amazonswf/latest/awsrbflowguide/set-up-creds.html
- `AWS_DEFAULT_REGION`: https://docs.aws.amazon.com/cli/latest/reference/configure/list.html
- `AWS_SESSION_TOKEN`: https://docs.aws.amazon.com/cli/latest/reference/sts/get-session-token.htmlYou 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:
```shell
curl http://localhost:8484/slack-preview-release
```Example to launch a deployment:
```shell
curl http://localhost:8484/deploy?showPreview=true
```### Native
TBC