datahub/docker/ingestion/Dockerfile
John Plaisted 821bce7d69
feat: Port mce-cli to Java. (#1871)
Port mce-cli to Java.

Also moved off the avro format event file to json instead. Much nicer to use :)
2020-09-25 14:05:29 -07:00

8 lines
394 B
Docker

FROM openjdk:8 as builder
COPY . datahub-src
RUN cd datahub-src && ./gradlew :metadata-ingestion-examples:mce-cli:build
FROM openjdk:8-jre-alpine
COPY --from=builder datahub-src/metadata-ingestion-examples/mce-cli/build/libs/mce-cli.jar ./
COPY --from=builder datahub-src/metadata-ingestion-examples/mce-cli/example-bootstrap.json ./
CMD java -jar mce-cli.jar -m produce example-bootstrap.json