Skip to content

Commit

Permalink
Update Docker image in running-locally.md (#386)
Browse files Browse the repository at this point in the history
Missing the repository on the 2 docker related commands :)
  • Loading branch information
paulxuca authored and mthenw committed Mar 15, 2018
1 parent 79a04e9 commit cd14c40
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/running-locally.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@ docker run -p 4000:4000 -p 4001:4001 serverless/event-gateway -dev

Mounts the `~/.aws` folder from the host to the `/home/.aws` folder inside the container. Event Gateway can then read the credentials from within the container.
```
docker run -p 4000:4000 -p 4001:4001 -e "HOME=/home" -v ~/.aws:/home/.aws event-gateway -dev
docker run -p 4000:4000 -p 4001:4001 -e "HOME=/home" -v ~/.aws:/home/.aws serverless/event-gateway -dev
```

**Preserve state of etcd**

While testing if you restart the container running Event Gateway and want to preserve the data in etcd, you can specify a data dir with the `-embed-data-dir "/home/data"` flag specifying a destination folder. Then you can mount the folder `~/.event-gateway/data` from your host into the container at `/home/data`. Event Gateway will read the data from there.

```
docker run -p 4000:4000 -p 4001:4001 -v ~/.event-gateway/data:/home/data event-gateway -embed-data-dir "/home/data" -dev
docker run -p 4000:4000 -p 4001:4001 -v ~/.event-gateway/data:/home/data serverless/event-gateway -embed-data-dir "/home/data" -dev
```

## Operations
Expand Down

0 comments on commit cd14c40

Please sign in to comment.