<commit_before>FROM maven:3-jdk-7-alpine

RUN apk update && apk add git

COPY report-runner-service /usr/src/app

WORKDIR /usr/src/app

# add a font extension jar to src/main/webapp/WEB-INF/lib/
# COPY fonts.jar src/main/webapp/WEB-INF/lib/

RUN git clone https://github.com/barbecue-sf/barbecue.git \
	&& cd barbecue/barbecue \
	&& mvn compile \
	&& mvn install \
	&& cd ../.. && mvn compile

CMD ["mvn", "jetty:run", "-Djetty.host=0.0.0.0"]
<commit_msg>fix dockerized maven build to put third party jar barbecue in local repository<commit_after>FROM maven:3-jdk-7-alpine

RUN apk update && apk add git

COPY report-runner-service /usr/src/app

WORKDIR /usr/src/app

# add a font extension jar to src/main/webapp/WEB-INF/lib/
# COPY fonts.jar src/main/webapp/WEB-INF/lib/

RUN cp /usr/share/maven/ref/settings-docker.xml /root/.m2/settings.xml \
	&& git clone https://github.com/barbecue-sf/barbecue.git \
	&& cd barbecue/barbecue \
	&& mvn compile \
	&& mvn install \
#	&& mvn install:install-file -Dfile=target/barbecue-1.9-dev.jar -DpomFile=pom.xml \
#	&& mvn install:install-file -Dfile=target/barbecue-1.9-dev.jar -DgroupId=net.sourceforge.barbecue -DartifactId=barbecue -Dversion=1.9-dev -Dpackaging=jar \
	&& cd ../.. && mvn compile

#VOLUME /root/.m2

CMD ["mvn", "jetty:run", "-Djetty.host=0.0.0.0"]

{'fraction_non_alphanumeric': 0.1633587786259542, 'fraction_numerical': 0.015267175572519083, 'mean_word_length': 3.3846153846153846, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 3}, 'pii_count': 2, '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': '6578983', 'n_tokens_mistral': 559, 'n_tokens_neox': 517, 'n_words': 108}