<commit_before>FROM wolffaxn/tomcat7:latest

MAINTAINER <NAME> <<EMAIL>>

ENV JENKINS_VERSION 1.642.1

# create directory structure, add user and group 'jenkins' and set its password
RUN (mkdir -p /usr/share/jenkins/bin && \
    mkdir -p /usr/share/jenkins/conf && \
    mkdir -p /usr/share/jenkins/logs && \
    mkdir -p /usr/share/jenkins/temp && \
    mkdir -p /usr/share/jenkins/webapps && \
    mkdir -p /usr/share/jenkins/work && \
    useradd -d /home/jenkins -m -s /bin/bash -c "jenkins user" jenkins && \
    echo "jenkins:jenkins" | chpasswd)

ADD bin/setenv.sh /usr/share/jenkins/bin/setenv.sh
ADD bin/startup.sh /usr/share/jenkins/bin/startup.sh
ADD bin/shutdown.sh /usr/share/jenkins/bin/shutdown.sh
RUN chmod 750 /usr/share/jenkins/bin/*.sh

RUN cp /usr/share/tomcat7/conf/* /usr/share/jenkins/conf
ADD conf/server.xml /usr/share/jenkins/conf/server.xml
RUN chmod 640 /usr/share/jenkins/conf/*

RUN (wget --progress=bar:force --no-check-certificate --no-cookies -O /tmp/jenkins.war http://mirrors.jenkins-ci.org/war-stable/$JENKINS_VERSION/jenkins.war && \
    mv /tmp/jenkins.war /usr/share/jenkins/webapps && \
    chmod 640 /usr/share/jenkins/webapps/*.war && \
    chown -R jenkins:jenkins /usr/share/jenkins && \
    mkdir /var/jenkins && \
    chown -R jenkins:jenkins /var/jenkins)

VOLUME ["/var/jenkins"]

# supervisord
ADD conf/jenkins.conf /etc/supervisord.d/jenkins.conf

EXPOSE 8005 8080

# default command
CMD ["supervisord", "-c", "/etc/supervisord.conf"]<commit_msg>update jenkins & minor improvements<commit_after>FROM wolffaxn/tomcat7:latest

MAINTAINER <NAME> <<EMAIL>>

ENV JENKINS_VERSION 1.642.2

# create directory structure, add user and group 'jenkins' and set its password
RUN (mkdir -p /usr/share/jenkins/bin \
    /usr/share/jenkins/conf \
    /usr/share/jenkins/logs \
    /usr/share/jenkins/temp \
    /usr/share/jenkins/webapps \
    /usr/share/jenkins/work && \
    useradd -d /home/jenkins -m -s /bin/bash -c "jenkins user" jenkins && \
    echo "jenkins:jenkins" | chpasswd)

ADD bin/setenv.sh /usr/share/jenkins/bin/setenv.sh
ADD bin/startup.sh /usr/share/jenkins/bin/startup.sh
ADD bin/shutdown.sh /usr/share/jenkins/bin/shutdown.sh
RUN chmod 750 /usr/share/jenkins/bin/*.sh

RUN cp /usr/share/tomcat7/conf/* /usr/share/jenkins/conf
ADD conf/server.xml /usr/share/jenkins/conf/server.xml
RUN chmod 640 /usr/share/jenkins/conf/*

RUN (wget --progress=bar:force --no-check-certificate --no-cookies -O /tmp/jenkins.war http://mirrors.jenkins-ci.org/war-stable/$JENKINS_VERSION/jenkins.war && \
    mv /tmp/jenkins.war /usr/share/jenkins/webapps && \
    chmod 640 /usr/share/jenkins/webapps/*.war && \
    chown -R jenkins:jenkins /usr/share/jenkins && \
    mkdir /var/jenkins && \
    chown -R jenkins:jenkins /var/jenkins)

VOLUME ["/var/jenkins"]

# supervisord
ADD conf/jenkins.conf /etc/supervisord.d/jenkins.conf

EXPOSE 8005 8080

# default command
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisord.conf"]
{'fraction_non_alphanumeric': 0.15626054674316572, 'fraction_numerical': 0.01619979750253122, 'mean_word_length': 3.1512605042016806, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '3260911', 'n_tokens_mistral': 1195, 'n_tokens_neox': 1143, 'n_words': 222}