mirror of
https://github.com/vimagick/dockerfiles
synced 2024-06-30 18:51:24 +00:00
add presto
This commit is contained in:
parent
8520d1e6e4
commit
82c64de017
@ -48,6 +48,7 @@ A collection of delicious docker recipes.
|
|||||||
|
|
||||||
- [x] kafka-arm
|
- [x] kafka-arm
|
||||||
- [x] kafka-manager
|
- [x] kafka-manager
|
||||||
|
- [x] presto
|
||||||
- [x] superset-arm
|
- [x] superset-arm
|
||||||
- [x] zookeeper-arm
|
- [x] zookeeper-arm
|
||||||
|
|
||||||
|
24
presto/Dockerfile
Normal file
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
4
presto/README.md
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
presto
|
||||||
|
======
|
||||||
|
|
||||||
|
https://prestodb.io/
|
1
presto/conf/coordinator/catalog/jmx.properties
Normal file
1
presto/conf/coordinator/catalog/jmx.properties
Normal file
@ -0,0 +1 @@
|
|||||||
|
connector.name=jmx
|
1
presto/conf/coordinator/catalog/tpcds.properties
Normal file
1
presto/conf/coordinator/catalog/tpcds.properties
Normal file
@ -0,0 +1 @@
|
|||||||
|
connector.name=tpcds
|
1
presto/conf/coordinator/catalog/tpch.properties
Normal file
1
presto/conf/coordinator/catalog/tpch.properties
Normal file
@ -0,0 +1 @@
|
|||||||
|
connector.name=tpch
|
7
presto/conf/coordinator/config.properties
Normal file
7
presto/conf/coordinator/config.properties
Normal file
@ -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
|
9
presto/conf/coordinator/jvm.config
Normal file
9
presto/conf/coordinator/jvm.config
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
-server
|
||||||
|
-Xmx16G
|
||||||
|
-XX:+UseG1GC
|
||||||
|
-XX:G1HeapRegionSize=32M
|
||||||
|
-XX:+UseGCOverheadLimit
|
||||||
|
-XX:+ExplicitGCInvokesConcurrent
|
||||||
|
-XX:+HeapDumpOnOutOfMemoryError
|
||||||
|
-XX:+ExitOnOutOfMemoryError
|
||||||
|
-XX:OnOutOfMemoryError=kill -9 %p
|
1
presto/conf/coordinator/log.properties
Normal file
1
presto/conf/coordinator/log.properties
Normal file
@ -0,0 +1 @@
|
|||||||
|
com.facebook.presto=INFO
|
3
presto/conf/coordinator/node.properties
Normal file
3
presto/conf/coordinator/node.properties
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
node.environment=production
|
||||||
|
node.id=coordinator
|
||||||
|
node.data-dir=/var/presto/data
|
1
presto/conf/standalone/catalog/jmx.properties
Normal file
1
presto/conf/standalone/catalog/jmx.properties
Normal file
@ -0,0 +1 @@
|
|||||||
|
connector.name=jmx
|
1
presto/conf/standalone/catalog/tpcds.properties
Normal file
1
presto/conf/standalone/catalog/tpcds.properties
Normal file
@ -0,0 +1 @@
|
|||||||
|
connector.name=tpcds
|
1
presto/conf/standalone/catalog/tpch.properties
Normal file
1
presto/conf/standalone/catalog/tpch.properties
Normal file
@ -0,0 +1 @@
|
|||||||
|
connector.name=tpch
|
7
presto/conf/standalone/config.properties
Normal file
7
presto/conf/standalone/config.properties
Normal file
@ -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
|
9
presto/conf/standalone/jvm.config
Normal file
9
presto/conf/standalone/jvm.config
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
-server
|
||||||
|
-Xmx16G
|
||||||
|
-XX:+UseG1GC
|
||||||
|
-XX:G1HeapRegionSize=32M
|
||||||
|
-XX:+UseGCOverheadLimit
|
||||||
|
-XX:+ExplicitGCInvokesConcurrent
|
||||||
|
-XX:+HeapDumpOnOutOfMemoryError
|
||||||
|
-XX:+ExitOnOutOfMemoryError
|
||||||
|
-XX:OnOutOfMemoryError=kill -9 %p
|
1
presto/conf/standalone/log.properties
Normal file
1
presto/conf/standalone/log.properties
Normal file
@ -0,0 +1 @@
|
|||||||
|
com.facebook.presto=INFO
|
3
presto/conf/standalone/node.properties
Normal file
3
presto/conf/standalone/node.properties
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
node.environment=production
|
||||||
|
node.id=coordinator
|
||||||
|
node.data-dir=/var/presto/data
|
1
presto/conf/worker/catalog/jmx.properties
Normal file
1
presto/conf/worker/catalog/jmx.properties
Normal file
@ -0,0 +1 @@
|
|||||||
|
connector.name=jmx
|
1
presto/conf/worker/catalog/tpcds.properties
Normal file
1
presto/conf/worker/catalog/tpcds.properties
Normal file
@ -0,0 +1 @@
|
|||||||
|
connector.name=tpcds
|
1
presto/conf/worker/catalog/tpch.properties
Normal file
1
presto/conf/worker/catalog/tpch.properties
Normal file
@ -0,0 +1 @@
|
|||||||
|
connector.name=tpch
|
5
presto/conf/worker/config.properties
Normal file
5
presto/conf/worker/config.properties
Normal file
@ -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
|
9
presto/conf/worker/jvm.config
Normal file
9
presto/conf/worker/jvm.config
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
-server
|
||||||
|
-Xmx16G
|
||||||
|
-XX:+UseG1GC
|
||||||
|
-XX:G1HeapRegionSize=32M
|
||||||
|
-XX:+UseGCOverheadLimit
|
||||||
|
-XX:+ExplicitGCInvokesConcurrent
|
||||||
|
-XX:+HeapDumpOnOutOfMemoryError
|
||||||
|
-XX:+ExitOnOutOfMemoryError
|
||||||
|
-XX:OnOutOfMemoryError=kill -9 %p
|
1
presto/conf/worker/log.properties
Normal file
1
presto/conf/worker/log.properties
Normal file
@ -0,0 +1 @@
|
|||||||
|
com.facebook.presto=INFO
|
3
presto/conf/worker/node.properties
Normal file
3
presto/conf/worker/node.properties
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
node.environment=production
|
||||||
|
node.id=worker
|
||||||
|
node.data-dir=/var/presto/data
|
19
presto/docker-compose.yml
Normal file
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
|
Loading…
Reference in New Issue
Block a user