<commit_before>FROM openjdk:8

MAINTAINER <NAME> <EMAIL>

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 -Prest.model.compatibility=ignore \
    && cp datahub-frontend/build/distributions/datahub-frontend.zip ../datahub-frontend.zip \
    && cd .. && rm -rf datahub-src && unzip datahub-frontend.zip

RUN wget https://github.com/vishnubob/wait-for-it/blob/master/wait-for-it.sh

EXPOSE 9001

CMD ["./wait-for-it.sh", "$DATAHUB_GMS_HOST:$DATAHUB_GMS_PORT"]

CMD ["datahub-frontend/bin/playBinary", "-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"]<commit_msg>Fix docker build for datahub-frontend by adding JAVA_OPTS environment variable<commit_after>FROM openjdk:8

MAINTAINER <NAME> <EMAIL>

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 -Prest.model.compatibility=ignore \
    && cp datahub-frontend/build/distributions/datahub-frontend.zip ../datahub-frontend.zip \
    && cd .. && rm -rf datahub-src && unzip datahub-frontend.zip

RUN wget https://github.com/vishnubob/wait-for-it/blob/master/wait-for-it.sh

EXPOSE 9001

CMD ["./wait-for-it.sh", "$DATAHUB_GMS_HOST:$DATAHUB_GMS_PORT"]

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"]
{'fraction_non_alphanumeric': 0.15391791044776118, 'fraction_numerical': 0.018656716417910446, 'mean_word_length': 3.8972602739726026, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4522552', 'n_tokens_mistral': 854, 'n_tokens_neox': 810, 'n_words': 122}