mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-12-04 10:34:49 +02:00
update presto
This commit is contained in:
parent
9cc61b304e
commit
114d2d3052
@ -2,7 +2,7 @@
|
||||
# Dockerfile for presto
|
||||
#
|
||||
|
||||
FROM openjdk:13-alpine
|
||||
FROM openjdk:8-jre-slim
|
||||
MAINTAINER kev <noreply@easypi.pro>
|
||||
|
||||
ENV PRESTO_VERSION=0.221
|
||||
@ -14,11 +14,13 @@ ENV PATH=${PRESTO_HOME}/bin:${PATH}
|
||||
WORKDIR $PRESTO_HOME
|
||||
|
||||
RUN set -xe \
|
||||
&& apk add --no-cache curl python tar \
|
||||
&& 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 \
|
||||
&& apk del curl tar
|
||||
&& apt-get remove -y curl \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
VOLUME /data
|
||||
|
||||
|
28
presto/Dockerfile.alpine
Normal file
28
presto/Dockerfile.alpine
Normal file
@ -0,0 +1,28 @@
|
||||
#
|
||||
# Dockerfile for presto
|
||||
#
|
||||
|
||||
FROM openjdk:13-alpine
|
||||
MAINTAINER kev <noreply@easypi.pro>
|
||||
|
||||
ENV PRESTO_VERSION=0.221
|
||||
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 \
|
||||
&& apk add --no-cache curl python tar \
|
||||
&& 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"]
|
@ -1,4 +1,27 @@
|
||||
presto
|
||||
======
|
||||
|
||||
https://prestodb.io/
|
||||
[Presto][1] is a distributed SQL query engine designed to query large data sets
|
||||
distributed over one or more heterogeneous data sources.
|
||||
|
||||
## docker-compose.yaml
|
||||
|
||||
```yaml
|
||||
presto:
|
||||
image: vimagick/presto
|
||||
ports:
|
||||
- "8080:8080"
|
||||
volumes:
|
||||
- ./conf/standalone:/opt/presto/etc
|
||||
- ./data/standalone:/data
|
||||
restart: unless-stopped
|
||||
```
|
||||
|
||||
## up and running
|
||||
|
||||
```bash
|
||||
$ docker-comopse up -d
|
||||
$ curl http://localhost:8080/
|
||||
```
|
||||
|
||||
[1]: https://prestodb.io/
|
||||
|
Loading…
Reference in New Issue
Block a user