mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-12-23 01:39:27 +02:00
update prestodb
This commit is contained in:
parent
e519ae74f5
commit
9ef01fb803
@ -2,10 +2,10 @@
|
||||
# Dockerfile for prestodb
|
||||
#
|
||||
|
||||
FROM openjdk:8-jre-alpine
|
||||
MAINTAINER kev <noreply@easypi.pro>
|
||||
FROM openjdk:11-jdk-alpine
|
||||
MAINTAINER EasyPi Software Foundation
|
||||
|
||||
ENV PRESTO_VERSION=0.227
|
||||
ENV PRESTO_VERSION=0.237.2
|
||||
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
|
||||
|
@ -2,10 +2,10 @@
|
||||
# Dockerfile for prestodb
|
||||
#
|
||||
|
||||
FROM openjdk:8-jre-slim-buster
|
||||
MAINTAINER kev <noreply@easypi.pro>
|
||||
FROM openjdk:11-jdk-slim-buster
|
||||
MAINTAINER EasyPi Software Foundation
|
||||
|
||||
ENV PRESTO_VERSION=0.227
|
||||
ENV PRESTO_VERSION=0.237.2
|
||||
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
|
||||
|
@ -25,10 +25,6 @@ $ ansible all -a 'mkdir -p /data'
|
||||
|
||||
$ docker stack deploy -c docker-stack.yml prestodb
|
||||
|
||||
$ docker service update --replicas-max-per-node=1 prestodb_worker
|
||||
|
||||
$ docker service update --replicas=10 prestodb_worker
|
||||
|
||||
$ docker ps | grep prestodb_coordinator | awk '{print $1}'
|
||||
4cc5c6c420d7
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
version: "3.7"
|
||||
version: "3.8"
|
||||
|
||||
services:
|
||||
|
||||
@ -24,10 +24,11 @@ services:
|
||||
- /data:/data
|
||||
- prestodb_worker_conf:/opt/presto/etc
|
||||
deploy:
|
||||
replicas: 0
|
||||
replicas: 3
|
||||
placement:
|
||||
constraints:
|
||||
- node.role == worker
|
||||
max_replicas_per_node: 1
|
||||
restart_policy:
|
||||
condition: on-failure
|
||||
depends_on:
|
||||
|
Loading…
Reference in New Issue
Block a user