enable to build image on any of centos6, centos7, or ubuntu