redis 增加ruby环境
This commit is contained in:
parent
1c422052da
commit
6c1a3397fc
@ -34,10 +34,11 @@ RUN cd / && wget http://download.redis.io/releases/redis-$REDIS_VERSION.tar.gz \
|
|||||||
&& cp /redis-$REDIS_VERSION/redis.conf /usr/local/bin/ \
|
&& cp /redis-$REDIS_VERSION/redis.conf /usr/local/bin/ \
|
||||||
&& cd /
|
&& cd /
|
||||||
|
|
||||||
RUN mkdir /redis /redis/conf /redis/logs
|
RUN mkdir /redis /redis/conf /redis/logs /redis/data
|
||||||
|
|
||||||
RUN sed -i 's/logfile ""/logfile "\/redis\/logs\/redis.log"/' /usr/local/bin/redis.conf && \
|
RUN sed -i 's/logfile ""/logfile "\/redis\/logs\/redis.log"/' /usr/local/bin/redis.conf && \
|
||||||
sed -i 's/bind 127.0.0.1/#bind 127.0.0.1/' /usr/local/bin/redis.conf
|
sed -i 's/bind 127.0.0.1/#bind 127.0.0.1/' /usr/local/bin/redis.conf && \
|
||||||
|
sed -i 's/dir .\//dir \/redis\/data\//' /usr/local/bin/redis.conf
|
||||||
|
|
||||||
RUN echo "ZONE=Asia/Shanghai" > /etc/sysconfig/clock && \
|
RUN echo "ZONE=Asia/Shanghai" > /etc/sysconfig/clock && \
|
||||||
rm -rf /etc/localtime && \
|
rm -rf /etc/localtime && \
|
||||||
|
|||||||
@ -21,6 +21,7 @@ docker run -d \
|
|||||||
-p 6379:6379 \
|
-p 6379:6379 \
|
||||||
-v /data/redis/conf:/redis/conf \
|
-v /data/redis/conf:/redis/conf \
|
||||||
-v /data/redis/logs:/redis/logs \
|
-v /data/redis/logs:/redis/logs \
|
||||||
|
-v /data/redis/data:/redis/data \
|
||||||
-e PASSWORD=123456 \
|
-e PASSWORD=123456 \
|
||||||
--name redis-4.0.10 \
|
--name redis-4.0.10 \
|
||||||
ccr.ccs.tencentyun.com/yy-dk/redis:4.0.10
|
ccr.ccs.tencentyun.com/yy-dk/redis:4.0.10
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user