<commit_before># this Dockerfile creates a base image for all yar servers
# all the python pre-reqs are install and the yar package
# is also installed
#
# usage
#
#   sudo docker build -t yar_img .

FROM ubuntu:12.04

MAINTAINER <NAME>

RUN apt-get update

RUN apt-get install -y wget
RUN wget https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py -O - | python

RUN apt-get install -y python-pip

RUN apt-get install -y libgmp-dev

RUN apt-get install -y python-dev

# note: source can be an http://... rule
ADD /vagrant/artifacts/tmp/yar-1.0.tar.gz /tmp

RUN pip install /tmp/yar-1.0.tar.gz

RUN rm /tmp/yar-1.0.tar.gz<commit_msg>this dockerfile now builds base yar server image<commit_after># this Dockerfile creates a base image for all yar servers
# all the python pre-reqs are install and the yar package
# is also installed
#
# usage
#
#   sudo docker build -t yar_img .

FROM ubuntu:12.04

MAINTAINER <NAME>

RUN apt-get update

RUN apt-get install -y wget

# don't like doing having the --no-check-certificate
RUN wget https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py -O - | python

RUN apt-get install -y python-pip

# these next 3 need to be install because yar uses keyczar

# unclear why if a vagrant ubuntu 12.04 install has gcc
# that a docker based install of ubuntu 12.04 needs to
# have gcc installed
RUN apt-get install -y gcc
RUN apt-get install -y libgmp-dev
RUN apt-get install -y python-dev

# :TRICKY: ADD command decompresses the archive and extract
# all the files in the archive
ADD yar-1.0.tar.gz /tmp/.

# RUN ls -la .
RUN pip install /tmp/yar-1.0
{'fraction_non_alphanumeric': 0.09051186017478152, 'fraction_numerical': 0.016853932584269662, 'mean_word_length': 3.3441734417344176, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '3367380', 'n_tokens_mistral': 586, 'n_tokens_neox': 550, 'n_words': 216}