tree: e30f0e8de0873012eb9b7a3f4c21382d73603b08 [path history] [tgz]
  1. config/
  2. data/
  3. dist/
  4. downloads/
  5. patches/
  6. scripts/
  7. .dockerignore
  8. .env
  9. docker-compose.atlas-backend.yml
  10. docker-compose.atlas-base.yml
  11. docker-compose.atlas-build.yml
  12. docker-compose.atlas-common.yml
  13. docker-compose.atlas-hadoop.yml
  14. docker-compose.atlas-hbase.yml
  15. docker-compose.atlas-hive.yml
  16. docker-compose.atlas.yml
  17. Dockerfile
  18. Dockerfile.atlas
  19. Dockerfile.atlas-base
  20. Dockerfile.atlas-build
  21. Dockerfile.atlas-db
  22. Dockerfile.atlas-hadoop
  23. Dockerfile.atlas-hbase
  24. Dockerfile.atlas-hive
  25. Dockerfile.atlas-kafka
  26. Dockerfile.atlas-solr
  27. Dockerfile.atlas-zk
  28. download-archives.sh
  29. README.md
dev-support/atlas-docker/README.md

Overview

Docker files in this folder create docker images and run them to build Apache Atlas, deploy Apache Atlas and dependent services in containers.

Usage

  1. Ensure that you have recent version of Docker installed from docker.io (as of this writing: Engine 20.10.5, Compose 1.28.5). Make sure to configure docker with at least 6gb of memory.

  2. Set this folder as your working directory.

  3. Update environment variables in .env file, if necessary

  4. Execute following command to download necessary archives to setup Atlas/HDFS/HBase/Kafka services:

    chmod +x download-archives.sh
    ./download-archives.sh
    
  5. Execute following commands to set environment variables to build Apache Atlas docker containers:

export DOCKER_BUILDKIT=1
export COMPOSE_DOCKER_CLI_BUILD=1
  1. Build and deploy Apache Atlas in containers using docker compose

    6.1. Build atlas-base image with the following command: docker compose -f docker-compose.atlas-base.yml build

    6.2. Ensure that the ${HOME}/.m2 directory exists and execute following command to build Apache Atlas: mkdir -p ${HOME}/.m2 docker compose -f docker-compose.atlas-build.yml up

    Time taken to complete the build might vary (upto an hour), depending on status of ${HOME}/.m2 directory cache.

    6.3. To install and start Atlas using Postgres as backend store, execute following commands: export ATLAS_BACKEND=postgres docker compose -f docker-compose.atlas.yml up -d --wait

    6.4. To install and start Atlas using HBase as backend store, execute following commands: export ATLAS_BACKEND=hbase docker compose -f docker-compose.atlas.yml -f docker-compose.atlas-hadoop.yml up -d --wait

    Apache Atlas will be installed at /opt/atlas/, and logs are at /var/logs/atlas directory.

  2. Atlas Admin can be accessed at http://localhost:21000 (admin/atlasR0cks!)