tree: 321598648e8db0803921000ca6077714f4147813 [path history] [tgz]
  1. bin/
  2. config/
  3. docker-build-and-push.sh
  4. docker-build.sh
  5. docker-push.sh
  6. Dockerfile
  7. README.md
docker/images/pinot-thirdeye/README.md

docker-pinot-thirdeye

This is a docker image of Apache Thirdeye.

How to build a docker image

There is a docker build script which will build a given Git repo/branch and tag the image.

Usage:

./docker-build.sh [Docker Tag] [Git Branch] [Pinot Git URL]

This script will check out Pinot Repo [Pinot Git URL] on branch [Git Branch] and build the docker image for that.

The docker image is tagged as [Docker Tag].

Docker Tag: Name and tag your docker image. Default is thirdeye:latest.

Git Branch: The Pinot branch to build. Default is master.

Pinot Git URL: The Pinot Git Repo to build, users can set it to their own fork. Please note that, the URL is https:// based, not git://. Default is the Apache Repo: https://github.com/apache/pinot.git.

  • Example of building and tagging a snapshot on your own fork:
./docker-build.sh thirdeye:latest master https://github.com/apache/pinot.git

How to publish a docker image

Script docker-push.sh publishes a given docker image to your docker registry.

In order to push to your own repo, the image needs to be explicitly tagged with the repo name.

docker tag thirdeye:latest apachepinot/thirdeye:latest
./docker-push.sh apachepinot/thirdeye:latest

Script docker-build-and-push.sh builds and publishes this docker image to your docker registry after build.

./docker-build-and-push.sh apachepinot/thirdeye:latest master https://github.com/apache/pinot.git

How to Run it

The entry point of docker image is start-thirdeye.sh script.

  • Create an isolated bridge network in docker.
docker network create -d bridge pinot-demo
  • Start Pinot Batch Quickstart
docker run \
    --network=pinot-demo \
    --name pinot-quickstart \
    -p 9000:9000 \
    -d apachepinot/pinot:latest QuickStart \
    -type batch
  • Start ThirdEye companion
docker run \
    --network=pinot-demo \
    --name  thirdeye-backend \
    -p 1426:1426 \
    -p 1427:1427 \
    -d apachepinot/thirdeye:latest pinot-quickstart