1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-01-20 04:59:25 +02:00

upgrade prestosql to 340

This commit is contained in:
kev 2020-08-12 16:05:06 +08:00
parent fd80119fb6
commit 60d7272d1a
4 changed files with 9 additions and 12 deletions

View File

@ -2,10 +2,10 @@
# Dockerfile for prestosql
#
FROM openjdk:8-jre-alpine
MAINTAINER kev <noreply@easypi.pro>
FROM openjdk:16-jdk-alpine
MAINTAINER EasyPi Software Foundation
ENV PRESTO_VERSION=322
ENV PRESTO_VERSION=340
ENV PRESTO_SERVER_URL=https://repo1.maven.org/maven2/io/prestosql/presto-server/${PRESTO_VERSION}/presto-server-${PRESTO_VERSION}.tar.gz
ENV PRESTO_CLI_URL=https://repo1.maven.org/maven2/io/prestosql/presto-cli/${PRESTO_VERSION}/presto-cli-${PRESTO_VERSION}-executable.jar
ENV PRESTO_HOME=/opt/presto

View File

@ -2,10 +2,10 @@
# Dockerfile for prestosql
#
FROM openjdk:8-jre-slim-buster
MAINTAINER kev <noreply@easypi.pro>
FROM openjdk:16-jdk-slim-buster
MAINTAINER EasyPi Software Foundation
ENV PRESTO_VERSION=322
ENV PRESTO_VERSION=340
ENV PRESTO_SERVER_URL=https://repo1.maven.org/maven2/io/prestosql/presto-server/${PRESTO_VERSION}/presto-server-${PRESTO_VERSION}.tar.gz
ENV PRESTO_CLI_URL=https://repo1.maven.org/maven2/io/prestosql/presto-cli/${PRESTO_VERSION}/presto-cli-${PRESTO_VERSION}-executable.jar
ENV PRESTO_HOME=/opt/presto

View File

@ -23,10 +23,6 @@ $ ansible all -a 'mkdir -p /data'
$ docker stack deploy -c docker-stack.yml prestosql
$ docker service update --replicas-max-per-node=1 prestosql_worker
$ docker service update --replicas=10 prestosql_worker
$ docker ps | grep prestosql_coordinator | awk '{print $1}'
4cc5c6c420d7

View File

@ -1,4 +1,4 @@
version: "3.7"
version: "3.8"
services:
@ -24,10 +24,11 @@ services:
- /data:/data
- prestosql_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: