Commit 63f93811 authored by daidekun's avatar daidekun

update redis

parent c91ac85e
FROM redis
MAINTAINER kalvin "dekun.dai@quantgroup.cn"
FROM 192.168.4.36/baseimg/centos:12251535
# #替换源
WORKDIR /etc/apt/
RUN mv sources.list /tmp
MAINTAINER kalvin.dai <dekun.dai@quantgroup.cn>
RUN echo deb http://mirrors.163.com/debian/ stretch main non-free contrib >> sources.list \
&& echo deb http://mirrors.163.com/debian/ stretch-updates main non-free contrib >> sources.list \
&& echo deb http://mirrors.163.com/debian/ stretch-backports main non-free contrib >> sources.list \
&& echo deb-src http://mirrors.163.com/debian/ stretch main non-free contrib >> sources.list \
&& echo deb-src http://mirrors.163.com/debian/ stretch-updates main non-free contrib >> sources.list \
&& echo deb-src http://mirrors.163.com/debian/ stretch-backports main non-free contrib >> sources.list \
&& echo deb http://mirrors.163.com/debian-security/ stretch/updates main non-free contrib >> sources.list \
&& echo deb-src http://mirrors.163.com/debian-security/ stretch/updates main non-free contrib >> sources.list
# Install redis
RUN yum install epel-release -y && \
yum update -y && \
yum install redis -y && \
yum clean all
#安装必要工具
RUN apt-get update \
&& apt-get install -y vim \
&& apt-get install -y telnet \
&& apt-get install -y openssh-server \
&& /etc/init.d/ssh start
# User
USER root
WORKDIR /home/quant_group/redis
\ No newline at end of file
# Copy config redis
WORKDIR /home/quant_group/redis/conf
ADD etc/*conf /home/quant_group/redis/conf/
VOLUME ["/var/lib/redis"]
ENV HOME /var/lib/redis
WORKDIR /var/lib/redis
EXPOSE 6379 6380 6381 6382 6383
COPY docker-entrypoint.sh .
RUN chmod +x ./docker-entrypoint.sh
CMD ./docker-entrypoint.sh
\ No newline at end of file
#bin/bash
redis-server /home/quant_group/redis/conf/redis1.conf
redis-server /home/quant_group/redis/conf/redis2.conf
redis-server /home/quant_group/redis/conf/redis3.conf
redis-server /home/quant_group/redis/conf/redis4.conf
redis-server /home/quant_group/redis/conf/redis5.conf
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment