<commit_before># Dockerfile to build container for unit testing.
#
# To build the image, run the following from this directory:
#   docker build -t beast_testing .
#
# To run the tests, use
#   docker run beast_testing
#
# To run the tests interactively, use
#   docker run -it -p 5900:5900 beast_testing /bin/bash
# This will give you a shell in the container. From this
# shell, run
#   vncserver $DISPLAY -geometry 1920x1080; ant travis
#
# The previous command exposes the VNC session, so while the
# BEAUti test suite is running you can run a VNC viewer and
# connect it to localhost (password: password) to observe
# the graphical output of these tests.

FROM openjdk:8

RUN apt-get update && apt-get install -y ant tightvncserver twm

ENV DISPLAY :0
ENV USER root
RUN mkdir /root/.vnc
RUN echo password | vncpasswd -f > /root/.vnc/passwd
RUN chmod 600 /root/.vnc/passwd

# Ant build fails if the repo dir isn't named beast2
RUN mkdir /root/beast2
WORKDIR /root/beast2

ADD . ./

CMD vncserver $DISPLAY -geometry 1920x1080; ant travis<commit_msg>Added beagle to docker test container.<commit_after># Dockerfile to build container for unit testing.
#
# To build the image, run the following from this directory:
#   docker build -t beast_testing .
#
# To run the tests, use
#   docker run beast_testing
#
# To run the tests interactively, use
#   docker run -it -p 5900:5900 beast_testing /bin/bash
# This will give you a shell in the container. From this
# shell, run
#   vncserver $DISPLAY -geometry 1920x1080; ant travis
#
# The previous command exposes the VNC session, so while the
# BEAUti test suite is running you can run a VNC viewer and
# connect it to localhost (password: password) to observe
# the graphical output of these tests.

FROM openjdk:8

# Install Apache Ant
RUN apt-get update && apt-get install -y ant

# Install and configure VNC server
RUN apt-get update && apt-get install -y tightvncserver twm
ENV DISPLAY :0
ENV USER root
RUN mkdir /root/.vnc
RUN echo password | vncpasswd -f > /root/.vnc/passwd
RUN chmod 600 /root/.vnc/passwd

# Install BEAGLE
RUN apt-get update && apt-get install -y build-essential autoconf automake libtool pkg-config
RUN cd /root && git clone --depth=1 https://github.com/beagle-dev/beagle-lib.git
RUN cd /root/beagle-lib && ./autogen.sh && ./configure --prefix=/usr/local && make install
ENV LD_LIBRARY_PATH=/lib:/usr/lib:/usr/local/lib
RUN ldconfig

# Ant build fails if the repo dir isn't named beast2
RUN mkdir /root/beast2
WORKDIR /root/beast2

ADD . ./

CMD vncserver $DISPLAY -geometry 1920x1080; ant travis
{'fraction_non_alphanumeric': 0.08203732503888025, 'fraction_numerical': 0.025272161741835147, 'mean_word_length': 3.7472324723247232, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 1, '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': '2577742', 'n_tokens_mistral': 877, 'n_tokens_neox': 802, 'n_words': 352}