Skip to content
This repository has been archived by the owner on Feb 7, 2024. It is now read-only.

Commit

Permalink
Merge pull request #64 from remyLemeunier/fix_doc
Browse files Browse the repository at this point in the history
Update docs
  • Loading branch information
obiesmans authored Sep 6, 2017
2 parents ed9ca03 + 3da1487 commit 556acff
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 7 deletions.
23 changes: 17 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,35 +1,42 @@
# contactkey [![Build Status](https://travis-ci.org/remyLemeunier/contactkey.svg?branch=master)](https://travis-ci.org/remyLemeunier/contactkey)

Contactkey is a Go command and its aim is to deploy services on different environments.
Contactkey is a Go command-line tool that orchestrate deployments on complex environments.

## Deployment Flow
![this](https://docs.google.com/drawings/d/1N7mgky_Dq3KWrT_gRxR4iwxGjCDY6rbgc455mJgEMtA/pub?w=594&h=1155)
# Deployers, Sources, Repository Manager, Hooks, Lock System
# Deployers, Sources, Binaries, Hooks, Lock System
### Deployers
* GGN
* kubernetes (to do)
### Version Control System
* Kubernetes (to do)

### Sources (upstream application code)
* Stash
* Github (to do)
### Repository Manager

### Binaries (container images)
* Nexus

### Hooks
* Slack
* ExecCommand
* NewRelic
* MailSender (to do)

### Lock System
* FileLock
* etcd (to do)
* Etcd (to do)
* Redis (to do)


## Commands
```bash
cck deploy environment service Deploy the service in an environment
cck diff environment service Diff between what's currently deployed and what's going to be deployed (Sources)
cck list environment service List versions of the service in an environment
cck rollback environment service Rollback the service in an environment
```


## Global configuration file for the cck command.
The configuration file is located at ~/.contackey/config.yml
```yaml
Expand Down Expand Up @@ -71,6 +78,10 @@ hooks: # Define various hooks used in service manifest.
url: https://api.newrelic.com
apiKey: "<your_api_key>"

metrics:
prometheus: # Push internal metrics to a prometheus gateway
url: http://demo.robustperception.io:9091

lockSystem: # Define a lock system in order to avoid multiple command launch. (Not mandatory)
fileLock: # Currently we only have the lock by file.
filePath: /tmp # Path where the is going to be written.
Expand Down
8 changes: 7 additions & 1 deletion examples/config.sample.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,16 @@ binaries:
url: 127.0.0.1
repository: repository
group: group

hooks:
slack:
url: 127.0.0.1
token: token

metrics:
prometheus:
url: http://demo.robustperception.io:9091

lockSystem:
fileLock:
filePath: /tmp
filePath: /tmp

0 comments on commit 556acff

Please sign in to comment.