编译用Docker
先以./core/docker/Dockerfile 为基础,创建一个基于centos的编译环境,dockerfile如下:
FROM centos:centos7.4.1708
ADD zulu-repo-1.0.0-1.noarch.rpm /zulu-repo-1.0.0-1.noarch.rpm
ENV JAVA_HOME /usr/lib/jvm/zulu11
RUN \set -xeu && \rpm -ivh /zulu-repo-1.0.0-1.noarch.rpm
# yum update -y && yum -y -q install /zulu-repo-1.0.0-1.noarch.rpm # rm -rf /var/cache/yum && \RUN yum -y install zulu11-jdk
RUN yum -y install python3 less
#RUN alternatives --set python /usr/bin/python3 RUN groupadd trino --gid 1000 &&a