Public Repository

Last pushed: 3 days ago
Short Description
Short description is empty for this repo.
Full Description

DOCKERFILE

FROM iovietnam/centos:7
MAINTAINER IO Vietnam JSC info@iovietnam.com

ENV CACHE_FLAG 0
ENV REDIS_VERSION 3.0.7
RUN yum update -y

RUN yum install -y make gcc wget ruby
RUN wget http://download.redis.io/releases/redis-$REDIS_VERSION.tar.gz
RUN tar -xvzf redis-$REDIS_VERSION.tar.gz
RUN mv redis-$REDIS_VERSION redis

WORKDIR /redis
RUN make
RUN gem install redis
ADD conf/redis.conf redis.conf

WORKDIR /
ADD run.sh run.sh
RUN chmod +x run.sh

ENV REDIS_NODE_PORT=6379
EXPOSE 6379

ENTRYPOINT ["/run.sh"]

run.sh

#!/bin/bash
/redis/src/redis-server /redis/redis.conf --port $REDIS_NODE_PORT
echo "Started Redis Cluster $REDIS_VERSION at port $REDIS_NODE_PORT"

echo "Starting SSH Deamon"
/usr/sbin/sshd -D

conf/redis.conf

cluster-enabled yes
cluster-config-file nodes.conf
cluster-node-timeout 5000
appendonly yes
daemonize yes
bind 0.0.0.0

Docker Pull Command
Owner
iovietnam

Comments (0)