<commit_before># Dockerfile to build qmdworker container images
# Based on Ubuntu 14.04

FROM ubuntu:14.04
MAINTAINER <NAME> <<EMAIL>>

# Dependencies
RUN apt-get update
RUN DEBIAN_FRONTEND=noninteractive apt-get install -qy build-essential curl git bzr mercurial
RUN curl -s https://storage.googleapis.com/golang/go1.3.src.tar.gz | tar -v -C /usr/local -xz
RUN cd /usr/local/go/src && ./make.bash --no-clean 2>&1

# Environment Variables
ENV PATH /usr/local/go/bin:/go/bin:/usr/local/bin:$PATH
ENV GOPATH /go

# Goop
RUN go get github.com/nitrous-io/goop

# QMD
RUN git clone https://github.com/pressly/qmd.git
WORKDIR /qmd
RUN goop install
WORKDIR /qmd/cmd/qmdworker
RUN goop go build
RUN mv qmdworker /usr/local/bin
EXPOSE 4150

ENTRYPOINT [ "qmdworker" ]
CMD [ "--script-dir=$SCRIPT_DIR", "--working-dir=$WORKING_DIR", "--store-dir=$STORE_DIR", "--whitelist=$WHITELIST", "--lookupdAddrs=$LOOKUPD_ADDRESS" ]<commit_msg>Fixed issue with ignored env vars<commit_after># Dockerfile to build qmdworker container images
# Based on Ubuntu 14.04

FROM ubuntu:14.04
MAINTAINER <NAME> <<EMAIL>>

# Dependencies
RUN apt-get update
RUN DEBIAN_FRONTEND=noninteractive apt-get install -qy build-essential curl git bzr mercurial
RUN curl -s https://storage.googleapis.com/golang/go1.3.src.tar.gz | tar -v -C /usr/local -xz
RUN cd /usr/local/go/src && ./make.bash --no-clean 2>&1

# Environment Variables
ENV PATH /usr/local/go/bin:/go/bin:/usr/local/bin:$PATH
ENV GOPATH /go

# Goop
RUN go get github.com/nitrous-io/goop

# QMD
RUN go get github.com/pressly/qmd
WORKDIR /go/src/github.com/pressly/qmd
RUN goop install
WORKDIR /go/src/github.com/pressly/qmd/cmd/qmdworker
RUN goop go build
RUN mv qmdworker /usr/local/bin

CMD /usr/local/bin/qmdworker --script-dir=$SCRIPT_DIR --working-dir=$WORKING_DIR --store-dir=$STORE_DIR --whitelist=$WHITELIST --lookupd-addresses=$LOOKUPD_ADDRESS --host-nsqd=$NSQD
{'fraction_non_alphanumeric': 0.13530655391120508, 'fraction_numerical': 0.014799154334038054, 'mean_word_length': 4.1580381471389645, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 11, 'https://': 3, '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': '4789101', 'n_tokens_mistral': 759, 'n_tokens_neox': 696, 'n_words': 179}