mirror of
https://github.com/datahub-project/datahub.git
synced 2025-08-31 12:52:13 +00:00

* Make docker files easier to use during development. During development it quite nice to have docker work with locally built code. This allows you to launch all services very quickly, with your changes, and optionally with debugging support. Changes made to docker files: - Removed all redundant docker-compose files. We now have 1 giant file, and smaller files to use as overrides. - Remove redundant README files that provided little information. - Rename docker/<dir> to match the service name in the docker-compose file for clarity. - Move environment variables to .env files. We only provide dev / the default environment for quickstart. - Add debug options to docker files using multistage build to build minimal images with the idea that built files will be mounted instead. - Add a docker/dev.sh script + compose file to easily use the dev override images (separate tag; images never published; uses debug docker files; mounts binaries to image). - Added docs/docker documentation for this.
46 lines
1.7 KiB
YAML
46 lines
1.7 KiB
YAML
# Default overrides for running local development.
|
|
|
|
# Images here are made as "development" images by following the general pattern of defining a multistage build with
|
|
# separate prod/dev steps; using APP_ENV to specify which to use. The dev steps should avoid building and instead assume
|
|
# that binaries and scripts will be mounted to the image, as also set up by this file. Also see see this excellent
|
|
# thread https://github.com/docker/cli/issues/1134.
|
|
|
|
# To make a JVM app debuggable via IntelliJ, go to its env file and add JVM debug flags, and then add the JVM debug
|
|
# port to this file.
|
|
---
|
|
# TODO mount + debug docker file for frontend
|
|
version: '3.8'
|
|
services:
|
|
datahub-gms:
|
|
image: linkedin/datahub-gms:debug
|
|
build:
|
|
context: datahub-gms
|
|
dockerfile: Dockerfile
|
|
args:
|
|
APP_ENV: dev
|
|
volumes:
|
|
- ./datahub-gms/start.sh:/datahub/datahub-gms/scripts/start.sh
|
|
- ../gms/war/build/libs/:/datahub/datahub-gms/bin
|
|
|
|
datahub-mae-consumer:
|
|
image: linkedin/datahub-mae-consumer:debug
|
|
build:
|
|
context: datahub-mae-consumer
|
|
dockerfile: Dockerfile
|
|
args:
|
|
APP_ENV: dev
|
|
volumes:
|
|
- ./datahub-mae-consumer/start.sh:/datahub/datahub-mae-consumer/scripts/start.sh
|
|
- ../metadata-jobs/mae-consumer-job/build/libs/:/datahub/datahub-mae-consumer/bin/
|
|
|
|
datahub-mce-consumer:
|
|
image: linkedin/datahub-mce-consumer:debug
|
|
build:
|
|
context: datahub-mce-consumer
|
|
dockerfile: Dockerfile
|
|
args:
|
|
APP_ENV: dev
|
|
volumes:
|
|
- ./datahub-mce-consumer/start.sh:/datahub/datahub-mce-consumer/scripts/start.sh
|
|
- ../metadata-jobs/mce-consumer-job/build/libs/:/datahub/datahub-mce-consumer/bin
|