diff --git a/prestodb/Dockerfile.alpine b/prestodb/Dockerfile.alpine index f95f70e..2392ef9 100644 --- a/prestodb/Dockerfile.alpine +++ b/prestodb/Dockerfile.alpine @@ -2,10 +2,10 @@ # Dockerfile for prestodb # -FROM openjdk:8-jre-alpine -MAINTAINER kev +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 diff --git a/prestodb/Dockerfile.debian b/prestodb/Dockerfile.debian index b6c30d9..ec6d5c0 100644 --- a/prestodb/Dockerfile.debian +++ b/prestodb/Dockerfile.debian @@ -2,10 +2,10 @@ # Dockerfile for prestodb # -FROM openjdk:8-jre-slim-buster -MAINTAINER kev +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 diff --git a/prestodb/README.md b/prestodb/README.md index 406b58c..86a0a01 100644 --- a/prestodb/README.md +++ b/prestodb/README.md @@ -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 diff --git a/prestodb/docker-stack.yml b/prestodb/docker-stack.yml index 87030f2..99b2844 100644 --- a/prestodb/docker-stack.yml +++ b/prestodb/docker-stack.yml @@ -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: