代码拉取完成,页面将自动刷新
From centos:6.9
#----------------------------------------------------------------------------------------------
# update yum source -- BEG
#----------------------------------------------------------------------------------------------
RUN cd /etc/yum.repos.d/ && rm -f * \
&& curl -svo Centos-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo \
&& yum makecache && yum -y update
#----------------------------------------------------------------------------------------------
# update yum source -- END
#----------------------------------------------------------------------------------------------
#
RUN echo 'export LC_ALL="en_US.UTF-8"' >> /etc/profile
# dependency packages
#RUN yum -y install which
# install ifconfig
#RUN yum -y install net-tools.x86_64
# install service
RUN yum -y install initscripts
# install crontabs
RUN yum -y install crontabs
# install named
RUN yum -y install bind
RUN curl -svo /home/named.tar.gz http://www.test.com/named.tar.gz -x 47.93.112.38:80
RUN cd /home/ && tar zxvf named.tar.gz
RUN cd /home/ && rm -f /etc/named.conf && cp named/named.conf /etc/
RUN cd /home/ && rm -f /var/named/cache.zone && cp named/cache.zone /var/named/
RUN /usr/sbin/rndc-confgen -a -r /dev/urandom && chmod 644 /etc/rndc.key
# RFS installation
RUN curl -svo /home/rfs-5.7.4.5-R.x86_64.rpm http://www.test.com/rfs-5.7.4.5-R.x86_64.rpm -x 47.93.112.38:80
RUN rpm -ivh /home/rfs-5.7.4.5-R.x86_64.rpm
# XCACHE installation
RUN curl -svo /home/XCACHE-NGX_BGN_5.7.4.5-R.x86_64.rpm http://www.test.com/XCACHE-NGX_BGN_5.7.4.5-R.x86_64.rpm -x 47.93.112.38:80
RUN rpm -ivh /home/XCACHE-NGX_BGN_5.7.4.5-R.x86_64.rpm
CMD bash -x /usr/local/rfs/bin/rfs_init.sh > /data/proclog/log/rfs/rfs_init.log 2>&1 && service named start && service rfs start && service xcache start && tail -f /var/log/yum.log
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。