Skip to content

Commit

Permalink
Add bash to code blocks to allow coloring in markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
iknite committed Dec 10, 2018
1 parent 9c421e6 commit 44c066a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions docs/advanced_usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ created around hashicorp's [raft](https://github.com/hashicorp/raft) implementat
To have identified the leader beforehand, we launch a server and then some
disposable followers.

```
```bash
go run main.go start \
-k my-key \
-p $(mktemp -d /var/tmp/demo.XXX) \
Expand All @@ -28,7 +28,7 @@ go run main.go start \
```

### Starting two followers
```
```bash
CLUSTER_SIZE=2
for i in $(seq 1 $CLUSTER_SIZE); do
go run main.go start \
Expand Down Expand Up @@ -61,21 +61,21 @@ it. Finally `monitors` agents are check internal consitency.
To use a demo public log-storage QED provides a small helper wich uses a in-memory
structure to store signed snapshots.

```
```bash
go run tests/e2e/gossip/test_service.go
```

### Publisher

```
```bash
# this variables will be used in all the publiser, auditor and monitor examples.
export masterEndpoint="127.0.0.1:9100"
export publisherEndpoint="http://127.0.0.1:8888"
export alertsEndpoint="http://127.0.0.1:8888"
export qedEndpoint="http://127.0.0.1:8080"
```

```
```bash
go run main.go agent \
--alertsUrls $alertsEndpoint \
publisher \
Expand All @@ -88,7 +88,7 @@ go run main.go agent \
```

### auditor
```
```bash
go run main.go agent \
--alertsUrls $alertsEndpoint \
auditor \
Expand All @@ -102,7 +102,7 @@ go run main.go agent \
```

### monitor
```
```bash
go run main.go agent \
--alertsUrls $alertsEndpoint \
monitor \
Expand Down

0 comments on commit 44c066a

Please sign in to comment.