tree: f6c2598e040624be25bcc6e1a80274d7cd4a96d2 [path history] [tgz]
  1. .tarignore
  2. build-artifacts.sh
  3. build-docker.sh
  4. cleanup-dockers.sh
  5. compile-docker.sh
  6. compile-platform.sh
  7. docker-compose.yml
  8. Dockerfile.centos7
  9. Dockerfile.dist.ubuntu14.04
  10. Dockerfile.ubuntu14.04
  11. Dockerfile.ubuntu15.10
  12. Readme.md
  13. start-docker.sh
  14. stop-docker.sh
docker/Readme.md

Docker

To compile source using a docker container:

./docker/build-artifacts.sh <platform> <version_string> [source-tarball] <output-directory>
# e.g.  ./docker/build-artifacts.sh ubuntu14.04 testbuild ~/heron-release

To build docker containers for running heron daemons:

./docker/build-docker.sh <platform> <version_string> <output-directory>
# e.g. ./docker/build-docker.sh ubuntu14.04 testbuild ~/heron-release

To run docker containers for local dev work:

./docker/start-docker.sh heron:<version_string>-<platform>
# e.g. ./docker/start-docker.sh heron:testbuild-ubuntu14.04

To stop docker containers for local dev work:

./docker/stop-docker.sh

To submit/activate/kill a topology:

#To submit a topology:
        docker exec heron_executor_1 heron submit local /usr/local/heron/examples/heron-examples.jar com.twitter.heron.examples.ExclamationTopology ExclamationTopology --deploy-deactivated
#To activate a topology:
        docker exec -it heron_executor_1 heron activate local ExclamationTopology
#To kill a topology:
        docker exec -it heron_executor_1 heron kill local ExclamationTopology

To access heron ui:

  • determine the IP of your docker host
  • navigate to http://:8889 in your web browser