mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-05-21 22:33:23 +02:00
fix presto
This commit is contained in:
parent
82c64de017
commit
04da8883c4
@ -12,13 +12,13 @@ ENV PRESTO_HOME /opt/presto
|
|||||||
WORKDIR $PRESTO_HOME
|
WORKDIR $PRESTO_HOME
|
||||||
|
|
||||||
RUN set -xe \
|
RUN set -xe \
|
||||||
&& apk add --no-cache curl tar \
|
&& apk add --no-cache curl python tar \
|
||||||
&& curl -sSL $PRESTO_URL | tar xz --strip 1 \
|
&& curl -sSL $PRESTO_URL | tar xz --strip 1 \
|
||||||
&& apk del curl tar
|
&& apk del curl tar
|
||||||
|
|
||||||
VOLUME /var/presto/data
|
VOLUME /var/presto/data
|
||||||
|
|
||||||
EXPOSE 8080 8081
|
EXPOSE 8080
|
||||||
|
|
||||||
ENTRYPOINT ["./bin/launcher"]
|
ENTRYPOINT ["./bin/launcher"]
|
||||||
CMD ["run"]
|
CMD ["run"]
|
||||||
|
@ -4,4 +4,4 @@ http-server.http.port=8080
|
|||||||
query.max-memory=50GB
|
query.max-memory=50GB
|
||||||
query.max-memory-per-node=1GB
|
query.max-memory-per-node=1GB
|
||||||
discovery-server.enabled=true
|
discovery-server.enabled=true
|
||||||
discovery.uri=http://coordinator:8080
|
discovery.uri=http://127.0.0.1:8080
|
||||||
|
@ -4,4 +4,4 @@ http-server.http.port=8080
|
|||||||
query.max-memory=5GB
|
query.max-memory=5GB
|
||||||
query.max-memory-per-node=1GB
|
query.max-memory-per-node=1GB
|
||||||
discovery-server.enabled=true
|
discovery-server.enabled=true
|
||||||
discovery.uri=http://coordinator:8080
|
discovery.uri=http://127.0.0.1:8080
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
node.environment=production
|
node.environment=production
|
||||||
node.id=worker
|
node.id=worker1
|
||||||
node.data-dir=/var/presto/data
|
node.data-dir=/var/presto/data
|
@ -7,13 +7,13 @@ coordinator:
|
|||||||
- ./data/coordinator:/var/lib/presto
|
- ./data/coordinator:/var/lib/presto
|
||||||
restart: always
|
restart: always
|
||||||
|
|
||||||
worker:
|
worker1:
|
||||||
image: vimagick/presto
|
image: vimagick/presto
|
||||||
ports:
|
ports:
|
||||||
- "8081:8081"
|
- "8081:8080"
|
||||||
volumes:
|
volumes:
|
||||||
- ./conf/worker:/opt/presto/etc
|
- ./conf/worker1:/opt/presto/etc
|
||||||
- ./data/worker:/var/lib/presto
|
- ./data/worker1:/var/lib/presto
|
||||||
links:
|
links:
|
||||||
- coordinator
|
- coordinator
|
||||||
restart: always
|
restart: always
|
||||||
|
Loading…
x
Reference in New Issue
Block a user