1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-11-24 08:52:15 +02:00

update prestodb

This commit is contained in:
kev 2020-08-17 14:49:50 +08:00
parent e519ae74f5
commit 9ef01fb803
4 changed files with 9 additions and 12 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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: