anchor.diff:  ENV DEFAULT_DIR /var/local
   
   # change .bashrc
  -RUN echo -e "if [ ! -d "/var/local/incubator-doris/thirdparty/installed" ]; then\n\tmkdir /var/local/incubator-doris/thirdparty/installed\n\tcp -rf /var/local/thirdparty/installed/*  /var/local/incubator-doris/thirdparty/installed/\n\texport JAVA_HOME=/var/local/incubator-doris/thirdparty/installed/jdk1.8.0_131\n\tln -s /var/local/incubator-doris/thirdparty/installed/bin/thrift /usr/bin/thrift\n\tln -s /var/local/incubator-doris/thirdparty/installed/jdk1.8.0_131/bin/java /usr/bin/java \nfi" >> /root/.bashrc
  +RUN echo -e "if [ ! -d "/var/local/incubator-doris/thirdparty/installed" ]; then\n\tmkdir /var/local/incubator-doris/thirdparty/installed\n\tcp -rf /var/local/thirdparty/installed/*  /var/local/incubator-doris/thirdparty/installed/\n\tln -s /var/local/incubator-doris/thirdparty/installed/bin/thrift /usr/bin/thrift \nfi" >> /root/.bashrc
   
   ARG GCC_VERSION=7.3.0
   ARG GCC_URL=https://mirrors.ustc.edu.cn/gnu/gcc/gcc-${GCC_VERSION}
   
   # install dependencies and build gcc 
  -RUN yum install -y bzip2 wget gcc-c++ libstdc++-static byacc flex automake libtool binutils-devel bison ncurses-devel make mlocate unzip patch which vim-common redhat-lsb-core zip \
  +RUN yum install -y bzip2 wget git gcc-c++ libstdc++-static byacc flex automake libtool binutils-devel bison ncurses-devel make mlocate unzip patch which vim-common redhat-lsb-core zip \
     && updatedb \
  +  && yum -y clean all \
  +  && rm -rf /var/cache/yum \
     && mkdir -p  /var/local/gcc \
     && curl -fsSL -o /tmp/gcc.tar.gz  ${GCC_URL}/gcc-${GCC_VERSION}.tar.gz \
     && tar -xzf /tmp/gcc.tar.gz -C /var/local/gcc --strip-components=1 \
  
positive.code:     && make install \
      && rm -rf /tmp/cmake.tar.gz \
      && rm -rf /tmp/cmake
  
  # install maven 3.6.0
  ARG MAVEN_VERSION=3.6.0
  
negative.code:   && ./contrib/download_prerequisites \
    && ./configure --disable-multilib --enable-languages=c,c++ --prefix=/usr \
    && make -j$[$(nproc)/4+1] && make install \
    && rm -rf /var/local/gcc \
    && rm -f /tmp/gcc.tar.gz
   
  # build cmake
  