Skip to content

Latest commit

 

History

History
71 lines (52 loc) · 2.47 KB

README.md

File metadata and controls

71 lines (52 loc) · 2.47 KB

docker-presto-cluster CircleCI GitHub tag (latest by date) GitHub

docker-presto-cluster is a simple tool for launching multiple node Presto cluster on docker container. The image is synched with the master branch of presto repository. Therefore you can try the latest presto for developing purpose easily.

Images

Role Image Pulls Tags
coordinator lewuathe/presto-coordinator Docker Pulls tags
worker lewuathe/presto-worker Docker Pulls tags

Build Image

$ make build

Local Image

You may want to build the Presto with your own build package for the development of Presto itself.

$ make local

Launch presto

Presto cluster can be launched by using docker-compose. Images built previously is used for the cluster.

$ make run

docker-compose.yml

Images are uploaded in DockerHub. These images are build with the corresponding version of Presto. Image tagged with 306 uses Presto 306. You can launch multiple node docker presto cluster with below yaml file. command is required to pass node id information which must be unique in a cluster.

version: '3'

services:
  coordinator:
    image: lewuathe/presto-coordinator:309
    ports:
      - "8080:8080"
    container_name: "coordinator"
    command: coordinator
  worker0:
    image: lewuathe/presto-worker:309
    container_name: "worker0"
    ports:
      - "8081:8081"
    command: worker0
  worker1:
    image: lewuathe/presto-worker:309
    container_name: "worker1"
    ports:
      - "8082:8081"
    command: worker1

Run

$ docker-compose up -d

LICENSE

Apache v2 License