1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-25 00:08:49 +00:00

add presto

This commit is contained in:
kev 2018-08-21 17:02:50 +08:00
parent 8520d1e6e4
commit 82c64de017
25 changed files with 115 additions and 0 deletions

@ -48,6 +48,7 @@ A collection of delicious docker recipes.
- [x] kafka-arm
- [x] kafka-manager
- [x] presto
- [x] superset-arm
- [x] zookeeper-arm

24
presto/Dockerfile Normal file

@ -0,0 +1,24 @@
#
# Dockerfile for presto
#
FROM java:8-jre-alpine
MAINTAINER kev <noreply@easypi.pro>
ENV PRESTO_VERSION 0.208
ENV PRESTO_URL https://repo1.maven.org/maven2/com/facebook/presto/presto-server/$PRESTO_VERSION/presto-server-$PRESTO_VERSION.tar.gz
ENV PRESTO_HOME /opt/presto
WORKDIR $PRESTO_HOME
RUN set -xe \
&& apk add --no-cache curl tar \
&& curl -sSL $PRESTO_URL | tar xz --strip 1 \
&& apk del curl tar
VOLUME /var/presto/data
EXPOSE 8080 8081
ENTRYPOINT ["./bin/launcher"]
CMD ["run"]

4
presto/README.md Normal file

@ -0,0 +1,4 @@
presto
======
https://prestodb.io/

@ -0,0 +1 @@
connector.name=jmx

@ -0,0 +1 @@
connector.name=tpcds

@ -0,0 +1 @@
connector.name=tpch

@ -0,0 +1,7 @@
coordinator=true
node-scheduler.include-coordinator=false
http-server.http.port=8080
query.max-memory=50GB
query.max-memory-per-node=1GB
discovery-server.enabled=true
discovery.uri=http://coordinator:8080

@ -0,0 +1,9 @@
-server
-Xmx16G
-XX:+UseG1GC
-XX:G1HeapRegionSize=32M
-XX:+UseGCOverheadLimit
-XX:+ExplicitGCInvokesConcurrent
-XX:+HeapDumpOnOutOfMemoryError
-XX:+ExitOnOutOfMemoryError
-XX:OnOutOfMemoryError=kill -9 %p

@ -0,0 +1 @@
com.facebook.presto=INFO

@ -0,0 +1,3 @@
node.environment=production
node.id=coordinator
node.data-dir=/var/presto/data

@ -0,0 +1 @@
connector.name=jmx

@ -0,0 +1 @@
connector.name=tpcds

@ -0,0 +1 @@
connector.name=tpch

@ -0,0 +1,7 @@
coordinator=true
node-scheduler.include-coordinator=true
http-server.http.port=8080
query.max-memory=5GB
query.max-memory-per-node=1GB
discovery-server.enabled=true
discovery.uri=http://coordinator:8080

@ -0,0 +1,9 @@
-server
-Xmx16G
-XX:+UseG1GC
-XX:G1HeapRegionSize=32M
-XX:+UseGCOverheadLimit
-XX:+ExplicitGCInvokesConcurrent
-XX:+HeapDumpOnOutOfMemoryError
-XX:+ExitOnOutOfMemoryError
-XX:OnOutOfMemoryError=kill -9 %p

@ -0,0 +1 @@
com.facebook.presto=INFO

@ -0,0 +1,3 @@
node.environment=production
node.id=coordinator
node.data-dir=/var/presto/data

@ -0,0 +1 @@
connector.name=jmx

@ -0,0 +1 @@
connector.name=tpcds

@ -0,0 +1 @@
connector.name=tpch

@ -0,0 +1,5 @@
coordinator=false
http-server.http.port=8080
query.max-memory=50GB
query.max-memory-per-node=1GB
discovery.uri=http://coordinator:8080

@ -0,0 +1,9 @@
-server
-Xmx16G
-XX:+UseG1GC
-XX:G1HeapRegionSize=32M
-XX:+UseGCOverheadLimit
-XX:+ExplicitGCInvokesConcurrent
-XX:+HeapDumpOnOutOfMemoryError
-XX:+ExitOnOutOfMemoryError
-XX:OnOutOfMemoryError=kill -9 %p

@ -0,0 +1 @@
com.facebook.presto=INFO

@ -0,0 +1,3 @@
node.environment=production
node.id=worker
node.data-dir=/var/presto/data

19
presto/docker-compose.yml Normal file

@ -0,0 +1,19 @@
coordinator:
image: vimagick/presto
ports:
- "8080:8080"
volumes:
- ./conf/coordinator:/opt/presto/etc
- ./data/coordinator:/var/lib/presto
restart: always
worker:
image: vimagick/presto
ports:
- "8081:8081"
volumes:
- ./conf/worker:/opt/presto/etc
- ./data/worker:/var/lib/presto
links:
- coordinator
restart: always