<commit_before>FROM ubuntu
MAINTAINER <NAME> <<EMAIL>>

RUN apt-get update
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y curl apache2 make gcc g++ \
	libxml2-dev libgd-dev vim-tiny libdbd-mysql-perl \
	libapache2-mod-perl2 libmariadb-client-lgpl-dev msmtp msmtp-mta gettext-base

RUN a2enmod headers expires
RUN a2dissite 000-default

ENV BUGZILLA bugzilla-5.0.3
ENV BUGZILLA_TAR $BUGZILLA.tar.gz
ENV BUGZILLA_URL http://ftp.mozilla.org/pub/mozilla.org/webtools/$BUGZILLA_TAR
RUN curl --silent --output "/tmp/$BUGZILLA_TAR" "$BUGZILLA_URL"
RUN tar xzvf "/tmp/$BUGZILLA_TAR" --directory /opt/
RUN cd /opt/ && ln -s "$BUGZILLA" bugzilla
WORKDIR /opt/bugzilla
RUN ./install-module.pl --all
RUN ./checksetup.pl

# Fix web server group
RUN sed --in-place "s/webservergroup *= *'[a-zA-Z0-9]\+'/webservergroup = 'www-data'/" localconfig

# Set up apache link to bugzilla
ADD bugzilla.conf /etc/apache2/sites-available/
RUN a2enmod rewrite headers expires cgi
RUN a2ensite bugzilla

# email sending configuration
COPY msmtprc /etc/msmtprc.temp

COPY bugzilla_admin /opt/bugzilla/bugzilla_admin

# Add start script
ADD start /opt/

VOLUME /opt/bugzilla/skins/contrib/skin
VOLUME /opt/bugzilla/template/en/custom
<commit_msg>Add skins and custom stuff, if it isn't volume mounted, so be it.<commit_after>FROM ubuntu
MAINTAINER <NAME> <<EMAIL>>

RUN apt-get update
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y curl apache2 make gcc g++ \
	libxml2-dev libgd-dev vim-tiny libdbd-mysql-perl \
	libapache2-mod-perl2 libmariadb-client-lgpl-dev msmtp msmtp-mta gettext-base

RUN a2enmod headers expires
RUN a2dissite 000-default

ENV BUGZILLA bugzilla-5.0.3
ENV BUGZILLA_TAR $BUGZILLA.tar.gz
ENV BUGZILLA_URL http://ftp.mozilla.org/pub/mozilla.org/webtools/$BUGZILLA_TAR
RUN curl --silent --output "/tmp/$BUGZILLA_TAR" "$BUGZILLA_URL"
RUN tar xzvf "/tmp/$BUGZILLA_TAR" --directory /opt/
RUN cd /opt/ && ln -s "$BUGZILLA" bugzilla
WORKDIR /opt/bugzilla
RUN ./install-module.pl --all
RUN ./checksetup.pl

# Fix web server group
RUN sed --in-place "s/webservergroup *= *'[a-zA-Z0-9]\+'/webservergroup = 'www-data'/" localconfig

# Set up apache link to bugzilla
ADD bugzilla.conf /etc/apache2/sites-available/
RUN a2enmod rewrite headers expires cgi
RUN a2ensite bugzilla

# email sending configuration
COPY msmtprc /etc/msmtprc.temp

COPY bugzilla_admin /opt/bugzilla/bugzilla_admin

# Add start script
ADD start /opt/

ADD skin /opt/bugzilla/skins/contrib/skin
ADD custom /opt/bugzilla/template/en/custom
VOLUME /opt/bugzilla/skins/contrib/skin
VOLUME /opt/bugzilla/template/en/custom

{'fraction_non_alphanumeric': 0.1130030959752322, 'fraction_numerical': 0.013157894736842105, 'mean_word_length': 4.275510204081633, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '3971017', 'n_tokens_mistral': 1051, 'n_tokens_neox': 977, 'n_words': 252}