2
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-12-27 15:41:38 +01:00

rename presto to presto-server

This commit is contained in:
kev
2018-08-21 18:06:54 +08:00
parent 04da8883c4
commit bbe4f5166a
26 changed files with 26 additions and 26 deletions

24
presto-server/Dockerfile Normal file
View File

@@ -0,0 +1,24 @@
#
# Dockerfile for presto-server
#
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-server
WORKDIR $PRESTO_HOME
RUN set -xe \
&& apk add --no-cache curl python tar \
&& curl -sSL $PRESTO_URL | tar xz --strip 1 \
&& apk del curl tar
VOLUME /data
EXPOSE 8080
ENTRYPOINT ["./bin/launcher"]
CMD ["run"]

4
presto-server/README.md Normal file
View File

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

View File

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

View File

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

View File

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

View 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://127.0.0.1:8080

View 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

View File

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

View File

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

View File

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

View File

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

View File

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

View 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://127.0.0.1:8080

View 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

View File

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

View File

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

View File

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

View File

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

View File

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

View 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

View 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

View File

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

View File

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

View File

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