1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-02-07 13:43:53 +02:00

fix presto

This commit is contained in:
kev 2018-08-21 18:03:35 +08:00
parent 82c64de017
commit 04da8883c4
11 changed files with 9 additions and 9 deletions

View File

@ -12,13 +12,13 @@ ENV PRESTO_HOME /opt/presto
WORKDIR $PRESTO_HOME
RUN set -xe \
&& apk add --no-cache curl tar \
&& apk add --no-cache curl python tar \
&& curl -sSL $PRESTO_URL | tar xz --strip 1 \
&& apk del curl tar
VOLUME /var/presto/data
EXPOSE 8080 8081
EXPOSE 8080
ENTRYPOINT ["./bin/launcher"]
CMD ["run"]

View File

@ -4,4 +4,4 @@ http-server.http.port=8080
query.max-memory=50GB
query.max-memory-per-node=1GB
discovery-server.enabled=true
discovery.uri=http://coordinator:8080
discovery.uri=http://127.0.0.1:8080

View File

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

View File

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

View File

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