Skip to content

Commit 0896921

Browse files
authored
Merge pull request #183 from TrevorS/patch-1
Fix formatting in README.
2 parents 237ef24 + e6c5658 commit 0896921

File tree

2 files changed

+21
-19
lines changed

2 files changed

+21
-19
lines changed

CONTRIBUTORS.md

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Your name could be here!
1616
* [Hugo Chinchilla][hugochinchilla]
1717
* [Dan Selans][dselans]
1818
* [Dan Young][idleyoungman]
19+
* [Trevor Strieber][tstrieber]
1920

2021
Pre-release
2122
-----------

README.md

+20-19
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ Deploying
342342
Centurion supports a number of tasks out of the box that make working with
343343
distributed containers easy. Here are some examples:
344344

345-
###Do a rolling deployment to a fleet of Docker servers
345+
### Do a rolling deployment to a fleet of Docker servers
346346

347347
A rolling deployment will stop and start each container one at a time to make
348348
sure that the application stays available from the viewpoint of the load
@@ -352,9 +352,9 @@ the root path of the application. The healthcheck endpoint is configurable by ad
352352
`set(:status_endpoint, '/somewhere/else')` in your config. The status endpoint
353353
must respond with a valid response in the 200 status range.
354354

355-
````bash
355+
```bash
356356
$ bundle exec centurion -p radio-radio -e staging -a rolling_deploy
357-
````
357+
```
358358

359359
**Custom Health Check**:
360360
You can use a custom health check by specifying a callable object (anything that
@@ -365,7 +365,7 @@ should return a truthy value, falsey otherwise. Here's an example of a custom
365365
health check that verifies that an elasticsearch node is up and has joined the
366366
cluster.
367367

368-
````ruby
368+
```ruby
369369
def cluster_green?(target_server, port, endpoint)
370370
response = begin
371371
Excon.get("http://#{target_server.hostname}:#{port}#{endpoint}")
@@ -386,7 +386,7 @@ task :production => :common do
386386
host 'es-01.example.com'
387387
host 'es-02.example.com'
388388
end
389-
````
389+
```
390390

391391
**Rolling Deployment Settings**:
392392
You can change the following settings in your config to tune how the rolling
@@ -412,35 +412,36 @@ are the same everywhere. Settings are per-project.
412412
that are. The default is an empty array. If you have non-HTTP services that you
413413
want to check, see Custom Health Checks in the previous section.
414414

415-
###Deploy a project to a fleet of Docker servers
415+
### Deploy a project to a fleet of Docker servers
416416

417417
This will hard stop, then start containers on all the specified hosts. This
418418
is not recommended for apps where one endpoint needs to be available at all
419419
times. It is fast.
420420

421-
````bash
421+
```bash
422422
$ bundle exec centurion -p radio-radio -e staging -a deploy
423-
````
423+
```
424424

425-
###Deploy a bash console on a host
425+
### Deploy a bash console on a host
426426

427427
This will give you a command line shell with all of your existing environment
428428
passed to the container. The `CMD` from the `Dockerfile` will be replaced
429429
with `/bin/bash`. It will use the first host from the host list.
430430

431-
````bash
431+
```bash
432432
$ bundle exec centurion -p radio-radio -e staging -a deploy_console
433-
````
433+
```
434+
434435
### Repair unhealthy docker containers
435436

436437
This will preform a health check on each host using rolling deployment
437438
health check settings and redeploy to the host if a health check fails.
438439

439-
````bash
440+
```bash
440441
$ bundle exec centurion -p radio-radio -e staging -a repair
441-
````
442+
```
442443

443-
###List all the tags running on your servers for a particular project
444+
### List all the tags running on your servers for a particular project
444445

445446
Returns a nicely-formatted list of all the current tags and which machines they
446447
are running on. Gives a unique list of tags across all hosts as well. This is
@@ -451,7 +452,7 @@ goes wrong mid-deploy.
451452
$ bundle exec centurion -p radio-radio -e staging -a list:running_container_tags
452453
```
453454

454-
###List all the containers currently running for this project
455+
### List all the containers currently running for this project
455456

456457
Returns a (as yet not very nicely formatted) list of all the containers for
457458
this project on each of the servers from the config.
@@ -460,13 +461,13 @@ this project on each of the servers from the config.
460461
$ bundle exec centurion -p radio-radio -e staging -a list:running_containers
461462
```
462463

463-
###List registry images
464+
### List registry images
464465

465466
Returns a list of all the images for this project in the registry.
466467

467-
````bash
468+
```bash
468469
$ bundle exec centurion -p radio-radio -e staging -a list
469-
````
470+
```
470471

471472
### Registry
472473

@@ -609,4 +610,4 @@ patents, and ideas in that code in our products if we so choose. You also agree
609610
the code is provided as-is and you provide no warranties as to its fitness or
610611
correctness for any purpose
611612

612-
Copyright (c) 2014-2016 New Relic, Inc. All rights reserved.
613+
Copyright (c) 2014-2017 New Relic, Inc. All rights reserved.

0 commit comments

Comments
 (0)