Browse Source

redis commander

pull/4/head
Johannes Schickling 10 years ago
parent
commit
e7476de6d5
  1. 1
      README.md
  2. 1
      beanstalkd-console/README.md
  3. 10
      redis-commander/Dockerfile
  4. 11
      redis-commander/README.md
  5. 17
      redis-commander/install.sh

1
README.md

@ -14,6 +14,7 @@ Collection of lightweight and ready-to-use docker images
* **[NodeJS](https://github.com/schickling/dockerfiles/tree/master/nodejs)** - Minimal NodeJS + NPM image * **[NodeJS](https://github.com/schickling/dockerfiles/tree/master/nodejs)** - Minimal NodeJS + NPM image
* **[Octave](https://github.com/schickling/dockerfiles/tree/master/octave)** - Lightweight ocatve development environment * **[Octave](https://github.com/schickling/dockerfiles/tree/master/octave)** - Lightweight ocatve development environment
* **[OpenCV](https://github.com/schickling/dockerfiles/tree/master/opencv)** - Lightweight ready-to use OpenCV image * **[OpenCV](https://github.com/schickling/dockerfiles/tree/master/opencv)** - Lightweight ready-to use OpenCV image
* **[Redis-Commander](https://github.com/schickling/dockerfiles/tree/master/redis-commander)** - Redis management tool
* **[Rust](https://github.com/schickling/dockerfiles/tree/master/rust)** - Lightweight nightly Rust build including Cargo and GDB * **[Rust](https://github.com/schickling/dockerfiles/tree/master/rust)** - Lightweight nightly Rust build including Cargo and GDB
## FAQ ## FAQ

1
beanstalkd-console/README.md

@ -9,3 +9,4 @@ $ docker run -d -p 11300:11300 --name beanstalkd schickling/beanstalkd
$ docker run -d -p 2080:2080 --link beanstalkd:beanstalkd schickling/beanstalkd-console $ docker run -d -p 2080:2080 --link beanstalkd:beanstalkd schickling/beanstalkd-console
``` ```
`beanstalkd-console` automatically works when the Beanstalkd docker container is linked as `beanstalkd` since it populates the `BEANSTALK_SERVERS` environment variable with `$BEANSTALKD_PORT_11300_TCP_ADDR:11300`.

10
redis-commander/Dockerfile

@ -0,0 +1,10 @@
FROM debian:jessie
MAINTAINER Johannes Schickling "schickling.j@gmail.com"
ENV DEBIAN_FRONTEND noninteractive
ADD install.sh install.sh
RUN chmod +x install.sh && ./install.sh && rm install.sh
EXPOSE 8081
CMD bash -c 'redis-commander --redis-host $REDIS_PORT_6379_TCP_ADDR'

11
redis-commander/README.md

@ -0,0 +1,11 @@
# redis-commander
Redis management tool
## Usage
```sh
$ docker run --d --link redis:redis -p 8081:8081 schickling/redis-commander
```
`redis-commander` automatically works when the Redis docker container is linked as `redis` since it uses the `$REDIS_PORT_6379_TCP_ADDR` environment variable.

17
redis-commander/install.sh

@ -0,0 +1,17 @@
#! /bin/bash
# exit if a command fails
set -e
# install node & npm
apt-get update && apt-get install -y nodejs npm
# alias as node
ln -sf /usr/bin/nodejs /usr/bin/node
# install redis commander
npm install -g redis-commander
# cleanup package manager
apt-get autoclean && apt-get clean
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
Loading…
Cancel
Save