datahub/docker/ingestion/docker-compose.dev.yml
John Plaisted 5f9d967451
fix: ingestion docker image (#2027)
The environment was not set correctly, so it could not fire kafka events. It (mce-cli) always worked when running outside of docker.

I also added a dev ingestion docker image / script which may be much faster if you've already built locally.

Tested:
1. Cleaned docker volumes and started datahub. Verified it is empty.
2. Built with gradle.
3. Ran ./docker/ingestion/ingestion-dev.sh. Verified data shows in DataHub.
4. Ran step 1 again.
5. Ran ./docker/ingestion/ingestion.sh. Verified data shows in DataHub.
2020-12-02 17:40:12 -08:00

18 lines
456 B
YAML

---
version: '3.5'
services:
ingestion:
image: datahub-ingestion:debug
env_file: env/docker.env
build:
context: .
dockerfile: Dockerfile
args:
APP_ENV: dev
volumes:
- ../../metadata-ingestion-examples/mce-cli/build/libs/:/datahub/ingestion/bin
- ../../metadata-ingestion-examples/mce-cli/example-bootstrap.json:/datahub/ingestion/example-bootstrap.json
networks:
default:
name: datahub_network