<commit_before>FROM jetty:9.4-jre8

ENV ORIENTEER_APP_HOME="/app"
ENV ORIENTDB_HOME="${ORIENTEER_APP_HOME}/runtime"
ENV MVN_REPOSITORY="${ORIENTEER_APP_HOME}/repository"
ENV JAVA_OPTIONS="$JAVA_OPTIONS -DORIENTEER_APP_HOME=${ORIENTEER_APP_HOME} -DORIENTDB_HOME=${ORIENTDB_HOME} -Dorientdb.url=plocal:databases/Orienteer -Dorienteer.loader.repository.local=${MVN_REPOSITORY}"
USER root
RUN mkdir -p ${ORIENTDB_HOME} && mkdir -p ${MVN_REPOSITORY} && chown -R jetty:jetty ${ORIENTEER_APP_HOME}
ADD orienteer-war/target/orienteer.war /var/lib/jetty/webapps/ROOT.war
ADD orienteer.properties ${ORIENTEER_APP_HOME}
USER jetty<commit_msg>Build and run Orienteer in separated containers<commit_after>FROM maven:3.5.0-jdk-8-alpine AS builder
WORKDIR /tmp/src/
ADD . /tmp/src/
RUN mvn -P dockerbuild -s /usr/share/maven/ref/settings-docker.xml -pl !orienteer-archetype-war,!orienteer-archetype-jar,!orienteer-standalone,!orienteer-birt,!orienteer-bpm,!orienteer-camel,!orienteer-etl,!orienteer-taucharts,!orienteer-architect clean install -DskipTests


FROM jetty:9.4-jre8
ENV ORIENTEER_APP_HOME="/app"
ENV ORIENTDB_HOME="${ORIENTEER_APP_HOME}/runtime"
ENV MVN_REPOSITORY="${ORIENTEER_APP_HOME}/repository"
ENV JAVA_OPTIONS="$JAVA_OPTIONS -DORIENTEER_APP_HOME=${ORIENTEER_APP_HOME} -DORIENTDB_HOME=${ORIENTDB_HOME} -Dorientdb.url=plocal:${ORIENTDB_HOME}/databases/Orienteer -Dorienteer.loader.repository.local=${MVN_REPOSITORY}"
USER root
RUN mkdir -p ${ORIENTDB_HOME} && mkdir -p ${MVN_REPOSITORY} && chown -R jetty:jetty ${ORIENTEER_APP_HOME}
COPY --from=builder /tmp/src/orienteer-war/target/orienteer.war /var/lib/jetty/webapps/ROOT.war
COPY --from=builder /tmp/src/orienteer.properties ${ORIENTEER_APP_HOME}
USER jetty
{'fraction_non_alphanumeric': 0.13543490951546994, 'fraction_numerical': 0.005837711617046118, 'mean_word_length': 7.360975609756098, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 1}, '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': '4568000', 'n_tokens_mistral': 712, 'n_tokens_neox': 673, 'n_words': 96}