mirror of
https://github.com/datahub-project/datahub.git
synced 2025-07-24 10:00:07 +00:00

* fix(security): commons-text in frontend * refactor(restli): set threads based on cpu cores feat(mce-consumers): hit local restli endpoint * testing docker build * Add retry configuration options for entity client * Kafka debugging * fix(kafka-setup): parallelize topic creation * Adjust docker build * Docker build updates * WIP * fix(lint): metadata-ingestion lint * fix(gradle-docker): fix docker frontend dep * fix(elastic): fix race condition between gms and mae for index creation * Revert "fix(elastic): fix race condition between gms and mae for index creation" This reverts commit 9629d12c3bdb3c0dab87604d409ca4c642c9c6d3. * fix(test): fix datahub frontend test for clean/test cycle * fix(test): datahub-frontend missing assets in test * fix(security): set protobuf lib datahub-upgrade & mce/mae-consumer * gitingore update * fix(docker): remove platform on docker base image, set by buildx * refactor(kafka-producer): update kafka producer tracking/logging * updates per PR feedback * Add documentation around mce standalone consumer Kafka consumer concurrency to follow thread count for restli & sql connection pool Co-authored-by: leifker <dleifker@gmail.com> Co-authored-by: Pedro Silva <pedro@acryl.io>
38 lines
1.4 KiB
Docker
38 lines
1.4 KiB
Docker
# Defining environment
|
|
ARG APP_ENV=prod
|
|
|
|
FROM alpine:3 AS base
|
|
|
|
RUN addgroup -S datahub && adduser -S datahub -G datahub
|
|
|
|
# Upgrade Alpine and base packages
|
|
RUN apk --no-cache --update-cache --available upgrade \
|
|
&& apk --no-cache add curl \
|
|
&& apk --no-cache add openjdk11-jre --repository=http://dl-cdn.alpinelinux.org/alpine/edge/community
|
|
|
|
FROM base as prod-install
|
|
|
|
COPY ./datahub-frontend.zip /
|
|
RUN unzip datahub-frontend.zip && rm datahub-frontend.zip
|
|
COPY ./docker/monitoring/client-prometheus-config.yaml /datahub-frontend/
|
|
RUN wget https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases/download/v1.18.0/opentelemetry-javaagent.jar -O opentelemetry-javaagent.jar \
|
|
&& wget https://repo1.maven.org/maven2/io/prometheus/jmx/jmx_prometheus_javaagent/0.16.1/jmx_prometheus_javaagent-0.16.1.jar -O jmx_prometheus_javaagent.jar
|
|
RUN chown -R datahub:datahub /datahub-frontend && chmod 755 /datahub-frontend
|
|
|
|
FROM base as dev-install
|
|
# Dummy stage for development. Assumes code is built on your machine and mounted to this image.
|
|
# See this excellent thread https://github.com/docker/cli/issues/1134
|
|
VOLUME [ "/datahub-frontend" ]
|
|
|
|
FROM ${APP_ENV}-install as final
|
|
USER datahub
|
|
|
|
ARG SERVER_PORT=9002
|
|
ENV SERVER_PORT=$SERVER_PORT
|
|
RUN echo $SERVER_PORT
|
|
EXPOSE $SERVER_PORT
|
|
|
|
HEALTHCHECK --start-period=2m --retries=4 CMD curl --fail http://localhost:$SERVER_PORT/admin || exit 1
|
|
COPY ./docker/datahub-frontend/start.sh /
|
|
CMD ./start.sh
|