anchor.diff:  kill -USR1 `cat /usr/local/webserver/nginx/logs/nginx.pid`
   EOF
   
  -
  -crontab -e
  -0 0 * * * /bin/bash /usr/local/webserver/nginx/cut_nginx_log.sh
  -
  -
  +RUN echo '0 0 * * * /bin/bash /usr/local/webserver/nginx/cut_nginx_log.sh' >> /var/spool/cron/root
  +
  +# ports
  +
  +EXPOSE 80 443 3306 8379 9000 9200 9300
  +
  
positive.code: # image
  FROM registry.cn-hangzhou.aliyuncs.com/pixseed/centos7_base
  
  # author
  MAINTAINER WisdomFusion <WisdomFusion@gmail.com>
  
  # repo
  
  RUN mv /etc/yum.repos.d/CentOS-Base.repo{,.backup}
  RUN wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.163.com/.help/CentOS7-Base-163.repo 
  
  RUN yum -y install epel-release
  
  # update
  
  RUN yum clean all && yum makecache && yum -y update
  
  # install compile tools and libs
  
  RUN yum -y install gcc gcc-c++ autoconf automake cmake zlib zlib-devel compat-libstdc++-33 glibc glibc-devel glib2 glib2-devel bzip2 bzip2-devel unzip zip nmap ncurses ncurses-devel sysstat ntp curl curl-devel libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel libtiff-devel gd gd-devel libxml2 libxml2-devel libXpm libXpm-devel libmcrypt libmcrypt-devel krb5 krb5-devel libidn libidn-devel openssl openssl-devel openldap openldap-devel nss_ldap openldap-clients openldap-servers pam-devel libicu libicu-devel
  
  # install tools
  
  RUN yum -y install man wget net-tools iptraf iotop vim-enhanced bash-completion
  
  # Vim settings
  
  
negative.code:   && echo "set fencs=utf-8,ucs-bom,gb18030,gbk,gb2312,cp936" >> ~/.vimrc \
    && echo "set fileformats=unix,dos" >> ~/.vimrc
  
  # copy packages to /usr/src/
  COPY packages/* /usr/src/
  
  # install libs before php and mysql
  
  WORKDIR /usr/src/
  RUN tar zxf libmcrypt-*.tar.gz
  WORKDIR libmcrypt-2.5.8/
  RUN ./configure \
    && make \
    && make install
    && /sbin/ldconfig
  WORKDIR libltdl/
  RUN ./configure --enable-ltdl-install && make && make install
  
  WORKDIR /usr/src/
  RUN tar zxf mhash-*.tar.gz
  WORKDIR mhash-0.9.9.9/
  RUN ./configure && make && make install
  
  RUN ln -s /usr/local/lib/libmcrypt.la /usr/lib/libmcrypt.la \
    && ln -s /usr/local/lib/libmcrypt.so /usr/lib/libmcrypt.so \
  