2019-09-02 23:21:01 -07:00
|
|
|
FROM openjdk:8
|
|
|
|
|
|
|
|
MAINTAINER Kerem Sahin ksahin@linkedin.com
|
|
|
|
|
2019-09-03 00:46:12 -07:00
|
|
|
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
|
|
|
|
|
2019-09-02 23:21:01 -07:00
|
|
|
COPY . datahub-src
|
2019-09-04 20:30:37 -07:00
|
|
|
RUN cd datahub-src && ./gradlew :datahub-frontend:dist \
|
2019-09-02 23:21:01 -07:00
|
|
|
&& cp datahub-frontend/build/distributions/datahub-frontend.zip ../datahub-frontend.zip \
|
|
|
|
&& cd .. && rm -rf datahub-src && unzip datahub-frontend.zip
|
|
|
|
|
|
|
|
EXPOSE 9001
|
|
|
|
|
2019-09-03 10:38:13 -07:00
|
|
|
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"]
|