<commit_before>FROM centos:centos7
MAINTAINER <NAME> "<EMAIL>"

RUN yum update -y && \
    yum install -y wget tar pwgen ca-certificates && \
    yum clean all && \
    rm -rf /var/lib/apt/lists/*

ENV TOMCAT_MAJOR_VERSION 8
ENV TOMCAT_MINOR_VERSION 8.0.17
ENV CATALINA_HOME /tomcat
ENV CATALINA_OPTS -Dconfig.file=/tomcat/bullseye/bullseye.conf

# Download JDK
RUN yum -y install java-1.7.0-openjdk-devel


# INSTALL TOMCAT
RUN wget -q https://archive.apache.org/dist/tomcat/tomcat-8/v8.0.17/bin/apache-tomcat-8.0.17.tar.gz && \
    wget -qO- https://archive.apache.org/dist/tomcat/tomcat-8/v8.0.17/bin/apache-tomcat-8.0.17.tar.gz.md5 | md5sum -c - && \
    tar zxf apache-tomcat-*.tar.gz && \
    rm apache-tomcat-*.tar.gz && \
    mv apache-tomcat* tomcat

ADD scripts/create_tomcat_admin_user.sh /create_tomcat_admin_user.sh
ADD scripts/run.sh /run.sh
RUN chmod +x /*.sh
ADD bullseye/bullseye-webapp-0.0.1.war /tomcat/webapps/bullseye.war
#ADD conf/dukeConf-ikanow.xml /dukeConf-ikanow.xml
#ADD conf/ikanow-conf.xml /tomcat/bullseye/dukeConf.xml
RUN mkdir /tomcat/webapps/bullseye
RUN cd /tomcat/webapps/bullseye && jar xf /tomcat/webapps/bullseye.war
ADD conf/web.xml /tomcat/webapps/bullseye/WEB-INF/web.xml
ADD conf/dukeConf.xml /tomcat/bullseye/dukeConf.xml
RUN mkdir /tomcat/bullseye/tinkergraph
ADD conf/tinkergraph.json /tomcat/bullseye/tinkergraph/tinkergraph.json
ADD conf/bullseye.conf /tomcat/bullseye/bullseye.conf
#ADD conf/application.conf /application.conf
#ADD conf/web.xml /web.xml
ADD conf/tomcat-users.xml /tomcat/conf/tomcat-users.xml
ADD scripts/setenv.sh /tomcat/bin/setenv.sh
RUN chmod +x /tomcat/bin/setenv.sh

EXPOSE 8080

CMD ["/run.sh"]
<commit_msg>added steath to Dockerfile<commit_after>FROM centos:centos7
MAINTAINER <NAME> "<EMAIL>"

RUN yum update -y && \
    yum install -y wget tar pwgen ca-certificates && \
    yum clean all && \
    rm -rf /var/lib/apt/lists/*

ENV TOMCAT_MAJOR_VERSION 8
ENV TOMCAT_MINOR_VERSION 8.0.17
ENV CATALINA_HOME /tomcat
ENV CATALINA_OPTS -Dconfig.file=/tomcat/bullseye/bullseye.conf

# Download JDK
RUN yum -y install java-1.7.0-openjdk-devel


# INSTALL TOMCAT
RUN wget -q https://archive.apache.org/dist/tomcat/tomcat-8/v8.0.17/bin/apache-tomcat-8.0.17.tar.gz && \
    wget -qO- https://archive.apache.org/dist/tomcat/tomcat-8/v8.0.17/bin/apache-tomcat-8.0.17.tar.gz.md5 | md5sum -c - && \
    tar zxf apache-tomcat-*.tar.gz && \
    rm apache-tomcat-*.tar.gz && \
    mv apache-tomcat* tomcat

ADD scripts/create_tomcat_admin_user.sh /create_tomcat_admin_user.sh
ADD scripts/run.sh /run.sh
RUN chmod +x /*.sh
ADD bullseye/bullseye-webapp-0.0.1.war /tomcat/webapps/bullseye.war
#ADD conf/dukeConf-ikanow.xml /dukeConf-ikanow.xml
#ADD conf/ikanow-conf.xml /tomcat/bullseye/dukeConf.xml
RUN mkdir /tomcat/webapps/bullseye
RUN cd /tomcat/webapps/bullseye && jar xf /tomcat/webapps/bullseye.war
ADD conf/web.xml /tomcat/webapps/bullseye/WEB-INF/web.xml
ADD conf/dukeConf.xml /tomcat/bullseye/dukeConf.xml
RUN mkdir /tomcat/bullseye/tinkergraph
ADD conf/tinkergraph.json /tomcat/bullseye/tinkergraph/tinkergraph.json
ADD conf/bullseye.conf /tomcat/bullseye/bullseye.conf
#ADD conf/application.conf /application.conf
#ADD conf/web.xml /web.xml
ADD conf/tomcat-users.xml /tomcat/conf/tomcat-users.xml
ADD scripts/setenv.sh /tomcat/bin/setenv.sh
RUN chmod +x /tomcat/bin/setenv.sh
#add stealth
ADD stealth/stealth.war /tomcat/webapps/stealth.war

EXPOSE 8080

CMD ["/run.sh"]

{'fraction_non_alphanumeric': 0.13757998836532867, 'fraction_numerical': 0.020942408376963352, 'mean_word_length': 3.6285329744279946, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 24}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5024934', 'n_tokens_mistral': 1524, 'n_tokens_neox': 1436, 'n_words': 254}