Skip to content

Commit

Permalink
feat(docker): added docker support
Browse files Browse the repository at this point in the history
  • Loading branch information
FGRibreau committed Sep 15, 2015
1 parent 1524a10 commit 100e36b
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
20 changes: 20 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
##
# NAME : redsmin/proxy
# VERSION : latest
# DOCKER-VERSION : 1.5+
# DESCRIPTION : Sends emails using a JSON message sent through RabbitMQ and a template.
# DEPENDENCIES : node:0.12-onbuild
# TO_BUILD : docker build --pull=true --no-cache --rm -t redsmin/proxy:latest .
# TO_SHIP : docker push redsmin/proxy:latest
# TO_RUN : docker run -it --rm --name redsmin --link redis:redis -e REDSMIN_KEY=YOUR_REDMIN_KEY -e REDIS_URI="redis://redis:6379" redsmin-proxy
##

FROM node:0.12-onbuild

MAINTAINER Francois-Guillaume Ribreau <[email protected]>

RUN npm install redsmin -g

ENV REDSMIN_KEY="" REDIS_URI=redis://redis:6379 REDIS_AUTH=""

CMD REDSMIN_KEY=$REDSMIN_KEY REDIS_URI=$REDIS_URI REDIS_AUTH=$REDIS_AUTH redsmin
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,23 @@ Advanced configuration:
- `REDSMIN_HOSTNAME`: where redsmin proxy should connect, default `ssl.redsmin.com`
- `DEBUG`: debug mode, default `false`


#### How to start Redsmin proxy

- Docker:

Let first say you've started a Redis container:

```bash
docker run --name my-redis --rm redis
```

You can now start the redsmin-proxy container with:

```bash
docker run -it --rm --name redsmin --link my-redis:local-redis -e REDSMIN_KEY=YOUR_KEY -e REDIS_URI="redis://local-redis:6379" redsmin-proxy
```

- MacOS, Debian/Ubuntu:

```bash
Expand All @@ -42,8 +57,10 @@ REDIS_URI="redis://127.0.0.1:6379" REDSMIN_KEY="redsmin-token" redsmin
set REDIS_URI="redis://127.0.0.1:6379"
set REDSMIN_KEY="redsmin-token"
redsmin

```


#### How to start Redsmin proxy with a password protected redis

- MacOS, Debian/Ubuntu:
Expand Down

0 comments on commit 100e36b

Please sign in to comment.