<commit_before>FROM centos:7

ARG SNOWOWL_RPM_PACKAGE
ARG BUILD_TIMESTAMP
ARG VERSION
ARG GIT_REVISION

# Install java-11-openjdk as a pre requirement
RUN rpmkeys --import file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 && \
    yum update --setopt=tsflags=nodocs -y -q -e 0 && \
    yum install --setopt=tsflags=nodocs -y -q -e 0 java-11-openjdk && \
    yum clean all

# Set JAVA_HOME environment variable
ENV JAVA_HOME /etc/alternatives/jre

# Install Snow Owl rpm package
WORKDIR /usr/share
COPY ${SNOWOWL_RPM_PACKAGE} ${SNOWOWL_RPM_PACKAGE}
RUN rpm --install ${SNOWOWL_RPM_PACKAGE} && rm -f ${SNOWOWL_RPM_PACKAGE}
COPY config/snowowl.yml /etc/snowowl/snowowl.yml
RUN chown snowowl:snowowl /etc/snowowl/snowowl.yml

# Openshift overrides USER and uses ones with randomly uid>1024 and gid=0
RUN chgrp 0 /usr/share/snowowl/bin/snowowl.sh && \
    chmod g=u /etc/passwd && \<commit_msg>[releng] Fix config path in Dockerfile<commit_after>FROM centos:7

ARG SNOWOWL_RPM_PACKAGE
ARG BUILD_TIMESTAMP
ARG VERSION
ARG GIT_REVISION

# Install java-11-openjdk as a pre requirement
RUN rpmkeys --import file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 && \
    yum update --setopt=tsflags=nodocs -y -q -e 0 && \
    yum install --setopt=tsflags=nodocs -y -q -e 0 java-11-openjdk && \
    yum clean all

# Set JAVA_HOME environment variable
ENV JAVA_HOME /etc/alternatives/jre

# Install Snow Owl rpm package
WORKDIR /usr/share
COPY ${SNOWOWL_RPM_PACKAGE} ${SNOWOWL_RPM_PACKAGE}
RUN rpm --install ${SNOWOWL_RPM_PACKAGE} && rm -f ${SNOWOWL_RPM_PACKAGE}
COPY docker/config/snowowl.yml /etc/snowowl/snowowl.yml
RUN chown snowowl:snowowl /etc/snowowl/snowowl.yml

# Openshift overrides USER and uses ones with randomly uid>1024 and gid=0
RUN chgrp 0 /usr/share/snowowl/bin/snowowl.sh && \
    chmod g=u /etc/passwd && \
{'fraction_non_alphanumeric': 0.11166666666666666, 'fraction_numerical': 0.015555555555555555, 'mean_word_length': 3.907356948228883, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, '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': '3258530', 'n_tokens_mistral': 786, 'n_tokens_neox': 723, 'n_words': 179}