<commit_before>FROM centos:6.6

MAINTAINER <NAME> <<EMAIL>>

# Install base packages
RUN yum makecache && yum install -y curl \
  nmap \
  wget \
  unzip \
  tar  \
  nmap \
  curl \
  git \
  gcc \
  which \
  ruby-devel \
  rubygems \
  scl-utils \
  centos-release-scl-rh

RUN yum install -y ruby193 ruby193-ruby-devel python27

RUN scl enable ruby193 "gem install gauntlt --no-ri --no-rdoc"

# Install additional third-party tools

#Setup sslyze
RUN cd /tmp && wget -nv https://github.com/nabla-c0d3/sslyze/releases/download/release-0.12/sslyze-0_12-linux64.zip && \
  unzip sslyze-0_12-linux64.zip && rm -f sslyze-0_12-linux64.zip && \
  mv sslyze /opt && \
  ln -s /opt/sslyze/sslyze.py /usr/local/bin/sslyze

# Instal SQLMap
RUN cd /tmp && wget -nv https://github.com/sqlmapproject/sqlmap/archive/0.6.2.tar.gz && \
  tar xf 0.6.2.tar.gz && \
  mv sqlmap-0.6.2 /opt/sqlmap && \
  ln -s /opt/sqlmap/sqlmap.py /usr/local/bin/sqlmap

# Install Arachni
RUN cd /tmp && wget -nv https://www.github.com/Arachni/arachni/releases/download/v1.3.2/arachni-1.3.2-0.5.9-linux-x86_64.tar.gz && \
    tar xzf arachni-1.3.2-0.5.9-linux-x86_64.tar.gz && \
    mv arachni-1.3.2-0.5.9 /opt/arachni

# Install Garmr
RUN cd /opt && git clone https://github.com/freddyb/Garmr.git && \
    cd Garmr && scl enable python27 "python setup.py install" && \
    scl enable python27 "pip install BeautifulSoup"

# Install JSON Gem as SCL means this isn't available in the restricted runtime environment
RUN scl enable ruby193 "gem install json --no-ri --no-rdoc"

# Remove unnecessary packages
RUN yum remove -y unzip \
    wget \
    git
RUN rm -rf /tmp/*

VOLUME ["/data"]

WORKDIR /data

# Expose path so it is able to reference sqlmap/sslyze
# The inclusion of the additional rubvy path value is required for referencing gems installed via SCL ruby
ENV PATH /usr/local/bin:/opt/arachni/bin:/opt/rh/ruby193/root/usr/local/bin:$PATH

ENV SSLYZE_PATH /usr/local/bin/sslyze

CMD bash -c 'scl enable ruby193 "gauntlt -f progress"'<commit_msg>ensure we set python to 2.7 prior to launching gauntlt<commit_after>FROM centos:6.6

MAINTAINER <NAME> <<EMAIL>>

# Install base packages
RUN yum makecache && yum install -y curl \
  nmap \
  wget \
  unzip \
  tar  \
  nmap \
  curl \
  git \
  gcc \
  which \
  ruby-devel \
  rubygems \
  scl-utils \
  centos-release-scl-rh

RUN yum install -y ruby193 ruby193-ruby-devel python27

RUN scl enable ruby193 "gem install gauntlt --no-ri --no-rdoc"

# Install additional third-party tools

#Setup sslyze
RUN cd /tmp && wget -nv https://github.com/nabla-c0d3/sslyze/releases/download/release-0.12/sslyze-0_12-linux64.zip && \
  unzip sslyze-0_12-linux64.zip && rm -f sslyze-0_12-linux64.zip && \
  mv sslyze /opt && \
  ln -s /opt/sslyze/sslyze.py /usr/local/bin/sslyze

# Instal SQLMap
RUN cd /tmp && wget -nv https://github.com/sqlmapproject/sqlmap/archive/0.6.2.tar.gz && \
  tar xf 0.6.2.tar.gz && \
  mv sqlmap-0.6.2 /opt/sqlmap && \
  ln -s /opt/sqlmap/sqlmap.py /usr/local/bin/sqlmap

# Install Arachni
RUN cd /tmp && wget -nv https://www.github.com/Arachni/arachni/releases/download/v1.3.2/arachni-1.3.2-0.5.9-linux-x86_64.tar.gz && \
    tar xzf arachni-1.3.2-0.5.9-linux-x86_64.tar.gz && \
    mv arachni-1.3.2-0.5.9 /opt/arachni

# Install Garmr
RUN cd /opt && git clone https://github.com/freddyb/Garmr.git && \
    cd Garmr && scl enable python27 "python setup.py install" && \
    scl enable python27 "pip install BeautifulSoup"

# Install JSON Gem as SCL means this isn't available in the restricted runtime environment
RUN scl enable ruby193 "gem install json --no-ri --no-rdoc"

# Remove unnecessary packages
RUN yum remove -y unzip \
    wget \
    git
RUN rm -rf /tmp/*

VOLUME ["/data"]

WORKDIR /data

# Expose path so it is able to reference sqlmap/sslyze
# The inclusion of the additional rubvy path value is required for referencing gems installed via SCL ruby
ENV PATH /usr/local/bin:/opt/arachni/bin:/opt/rh/ruby193/root/usr/local/bin:$PATH

ENV SSLYZE_PATH /usr/local/bin/sslyze

CMD bash -c 'scl enable ruby193 python27 "gauntlt -f progress"'
{'fraction_non_alphanumeric': 0.13191385217816937, 'fraction_numerical': 0.042094958394517865, 'mean_word_length': 2.8702651515151514, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 8, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2454335', 'n_tokens_mistral': 1725, 'n_tokens_neox': 1607, 'n_words': 417}