Skip to content

Commit

Permalink
Merge pull request Kong#8 from thomasleveil/master
Browse files Browse the repository at this point in the history
add Dockerfile
  • Loading branch information
Ahmad Nassri committed Apr 7, 2015
2 parents f478361 + dd33e53 commit 865ff65
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM node:0.10-onbuild

RUN npm config set mockbin:redis redis://redis:6379
EXPOSE 8080

7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ npm install mockbin

*read more on [Installation](docs/install.md)*.

### Docker

[![Docker][docker-logo]](docs/install.md#install-with-docker)

*read more on [Installation](docs/install.md#install-with-docker)*.


### Requirements

Expand Down Expand Up @@ -140,3 +146,4 @@ For more information on SemVer, please visit <http://semver.org/>.

[docker-image]: https://www.herokucdn.com/deploy/button.svg
[docker-url]: https://heroku.com/deploy?template=https://github.com/Mashape/mockbin
[docker-logo]: https://d3oypxn00j2a10.cloudfront.net/0.16.0/images/pages/brand_guidelines/small_h.png
18 changes: 18 additions & 0 deletions docs/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,21 @@ npm install mockbin
```

*read more on [Installation](docs/install.md)*.

## Install with [Docker](https://www.docker.com/)

### Building the docker image

```shell
docker build -t mockbin .
```

### Running the docker container

```shell
docker run -d --name myredis redis
docker run -d -p 80:8080 --link myredis:redis mockbin
```



0 comments on commit 865ff65

Please sign in to comment.