mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-12-27 23:46:33 +01:00
split presto to prestodb+prestosql
This commit is contained in:
30
prestosql/Dockerfile.debian
Normal file
30
prestosql/Dockerfile.debian
Normal file
@@ -0,0 +1,30 @@
|
||||
#
|
||||
# Dockerfile for presto-ce
|
||||
#
|
||||
|
||||
FROM openjdk:8-jre-slim-buster
|
||||
MAINTAINER kev <noreply@easypi.pro>
|
||||
|
||||
ENV PRESTO_VERSION=322
|
||||
ENV PRESTO_SERVER_URL=https://repo1.maven.org/maven2/io/prestosql/presto-server/${PRESTO_VERSION}/presto-server-${PRESTO_VERSION}.tar.gz
|
||||
ENV PRESTO_CLI_URL=https://repo1.maven.org/maven2/io/prestosql/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 \
|
||||
&& apt-get update \
|
||||
&& apt-get install -y curl less python \
|
||||
&& curl -sSL $PRESTO_SERVER_URL | tar xz --strip 1 \
|
||||
&& curl -sSL $PRESTO_CLI_URL > ./bin/presto \
|
||||
&& chmod +x ./bin/presto \
|
||||
&& apt-get remove -y curl \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
VOLUME /data
|
||||
|
||||
EXPOSE 8080
|
||||
|
||||
ENTRYPOINT ["launcher"]
|
||||
CMD ["run"]
|
||||
Reference in New Issue
Block a user