2019-06-16 10:59:02 +02:00
|
|
|
#
|
2019-10-21 05:36:26 +02:00
|
|
|
# Dockerfile for prestodb
|
2019-06-16 10:59:02 +02:00
|
|
|
#
|
|
|
|
|
2020-08-17 08:49:50 +02:00
|
|
|
FROM openjdk:11-jdk-alpine
|
|
|
|
MAINTAINER EasyPi Software Foundation
|
2019-06-16 10:59:02 +02:00
|
|
|
|
2020-08-19 09:27:40 +02:00
|
|
|
ENV PRESTO_VERSION=0.239.1
|
2019-06-16 10:59:02 +02:00
|
|
|
ENV PRESTO_SERVER_URL=https://repo1.maven.org/maven2/com/facebook/presto/presto-server/${PRESTO_VERSION}/presto-server-${PRESTO_VERSION}.tar.gz
|
|
|
|
ENV PRESTO_CLI_URL=https://repo1.maven.org/maven2/com/facebook/presto/presto-cli/${PRESTO_VERSION}/presto-cli-${PRESTO_VERSION}-executable.jar
|
|
|
|
ENV PRESTO_HOME=/opt/presto
|
|
|
|
ENV PATH=${PRESTO_HOME}/bin:${PATH}
|
|
|
|
|
|
|
|
WORKDIR $PRESTO_HOME
|
|
|
|
|
|
|
|
RUN set -xe \
|
2019-10-21 16:02:39 +02:00
|
|
|
&& apk add --no-cache curl less python tar \
|
2019-06-16 10:59:02 +02:00
|
|
|
&& curl -sSL $PRESTO_SERVER_URL | tar xz --strip 1 \
|
|
|
|
&& curl -sSL $PRESTO_CLI_URL > ./bin/presto \
|
|
|
|
&& chmod +x ./bin/presto \
|
|
|
|
&& apk del curl tar
|
|
|
|
|
|
|
|
VOLUME /data
|
|
|
|
|
|
|
|
EXPOSE 8080
|
|
|
|
|
|
|
|
ENTRYPOINT ["launcher"]
|
|
|
|
CMD ["run"]
|