1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-20 22:08:39 +00:00

rename presto

This commit is contained in:
kev 2019-06-16 16:24:14 +08:00
parent c9363589bc
commit 0da1368096
26 changed files with 37 additions and 30 deletions

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

@ -1,24 +0,0 @@
#
# Dockerfile for presto-server
#
FROM java:8-jre-alpine
MAINTAINER kev <noreply@easypi.pro>
ENV PRESTO_VERSION=0.221
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"]

28
presto/Dockerfile Normal file

@ -0,0 +1,28 @@
#
# Dockerfile for presto
#
FROM java:8-jre-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"]

@ -3,5 +3,6 @@ node-scheduler.include-coordinator=false
http-server.http.port=8080
query.max-memory=50GB
query.max-memory-per-node=1GB
query.max-total-memory-per-node=2GB
discovery-server.enabled=true
discovery.uri=http://127.0.0.1:8080

@ -3,5 +3,6 @@ node-scheduler.include-coordinator=true
http-server.http.port=8080
query.max-memory=5GB
query.max-memory-per-node=1GB
query.max-total-memory-per-node=2GB
discovery-server.enabled=true
discovery.uri=http://127.0.0.1:8080

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

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

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