mirror of
https://github.com/datahub-project/datahub.git
synced 2025-08-21 23:58:06 +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.
27 lines
900 B
Docker
27 lines
900 B
Docker
FROM openjdk:8 as builder
|
|
|
|
RUN apt-get update && apt-get install -y wget \
|
|
&& wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb \
|
|
&& dpkg -i google-chrome-stable_current_amd64.deb; apt-get -fy install
|
|
|
|
ENV CI=true
|
|
|
|
COPY . datahub-src
|
|
RUN cd datahub-src && ./gradlew :datahub-frontend:dist \
|
|
&& cp datahub-frontend/build/distributions/datahub-frontend.zip ../datahub-frontend.zip \
|
|
&& cd .. && rm -rf datahub-src && unzip datahub-frontend.zip
|
|
|
|
FROM openjdk:8-jre-alpine
|
|
|
|
COPY --from=builder /datahub-frontend /datahub-frontend/
|
|
EXPOSE 9001
|
|
|
|
ENV JAVA_OPTS=" \
|
|
-Xms512m \
|
|
-Xmx1024m \
|
|
-Dhttp.port=9001 \
|
|
-Dconfig.file=datahub-frontend/conf/application.conf \
|
|
-Djava.security.auth.login.config=datahub-frontend/conf/jaas.conf \
|
|
-Dlogback.configurationFile=datahub-frontend/conf/logback.xml \
|
|
-Dlogback.debug=true"
|
|
CMD ["datahub-frontend/bin/playBinary"] |