2019-06-16 10:24:14 +02:00
|
|
|
#
|
|
|
|
# Dockerfile for presto
|
|
|
|
#
|
|
|
|
|
2019-09-28 07:06:26 +02:00
|
|
|
FROM openjdk:8-jre-slim-buster
|
2019-06-16 10:24:14 +02:00
|
|
|
MAINTAINER kev <noreply@easypi.pro>
|
|
|
|
|
2019-09-28 07:06:26 +02:00
|
|
|
ENV PRESTO_VERSION=0.226
|
2019-06-16 10:24:14 +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-06-16 10:59:02 +02:00
|
|
|
&& apt-get update \
|
|
|
|
&& apt-get install -y curl less python \
|
2019-06-16 10:24:14 +02:00
|
|
|
&& curl -sSL $PRESTO_SERVER_URL | tar xz --strip 1 \
|
|
|
|
&& curl -sSL $PRESTO_CLI_URL > ./bin/presto \
|
|
|
|
&& chmod +x ./bin/presto \
|
2019-06-16 10:59:02 +02:00
|
|
|
&& apt-get remove -y curl \
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
2019-06-16 10:24:14 +02:00
|
|
|
|
|
|
|
VOLUME /data
|
|
|
|
|
|
|
|
EXPOSE 8080
|
|
|
|
|
|
|
|
ENTRYPOINT ["launcher"]
|
|
|
|
CMD ["run"]
|