<commit_before>FROM node:latest
MAINTAINER <NAME> <<EMAIL>>

# Install CoffeeScript, Hubot
RUN \
  npm install -g coffee-script hubot yo generator-hubot && \
  apt-get -q update && \
  apt-get install -y git-core && \
  rm -rf /var/lib/apt/lists/*

# make user for bot
# yo requires uid/gid 501
RUN groupadd -g 501 hubot
RUN useradd -m -u 501 -g 501 hubot
WORKDIR /home/hubot/bot

# make directories and files
RUN mkdir -p /home/hubot/.config/configstore && \
  echo "optOut: true" > /home/hubot/.config/configstore/insight-yo.yml && \
  chown -R hubot:hubot /home/hubot

USER hubot

# optionally override variables with docker run -e HUBOT_...
# You also will need to specify HUBOT_SLACK_TOKEN when running the cantainer
ENV HUBOT_OWNER hubot
ENV HUBOT_NAME hubot
ENV HUBOT_ADAPTER slack
ENV HUBOT_DESCRIPTION Just a friendly robot

# generate and run our new bot
# docker run -e HUBOT_SLACK_TOKEN=... -v /etc/localtime:/etc/localtime:ro rothgar/hubot:latest
# Override adapter with -e HUBOT_ADAPTER irc <- different adapters need extra variables
CMD /usr/local/bin/yo hubot --adapter $HUBOT_ADAPTER --owner $HUBOT_OWNER --name $HUBOT_NAME --description $HUBOT_DESCRIPTION --defaults && bin/hubot --adapter $HUBOT_ADAPTER<commit_msg>Removed comments from dockerfile, put them in readme :confounded:<commit_after>FROM node:latest
MAINTAINER <NAME> <<EMAIL>>

# Install CoffeeScript, Hubot
RUN \
  npm install -g coffee-script hubot yo generator-hubot && \
  apt-get -q update && \
  apt-get install -y git-core && \
  rm -rf /var/lib/apt/lists/*

# make user for bot
# yo requires uid/gid 501
RUN groupadd -g 501 hubot
RUN useradd -m -u 501 -g 501 hubot
WORKDIR /home/hubot/bot

# make directories and files
RUN mkdir -p /home/hubot/.config/configstore && \
  echo "optOut: true" > /home/hubot/.config/configstore/insight-yo.yml && \
  chown -R hubot:hubot /home/hubot

USER hubot

# optionally override variables with docker run -e HUBOT_...
# Modify ./ENV file to override these options
ENV HUBOT_OWNER hubot
ENV HUBOT_NAME hubot
ENV HUBOT_ADAPTER slack
ENV HUBOT_DESCRIPTION Just a friendly robot

# Override adapter with -env-file ./ENV
CMD /usr/local/bin/yo hubot --adapter $HUBOT_ADAPTER --owner $HUBOT_OWNER --name $HUBOT_NAME --description $HUBOT_DESCRIPTION --defaults && bin/hubot --adapter $HUBOT_ADAPTER
{'fraction_non_alphanumeric': 0.10453563714902808, 'fraction_numerical': 0.010367170626349892, 'mean_word_length': 3.6977687626774847, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 11, 'https://': 0, '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': '2032352', 'n_tokens_mistral': 845, 'n_tokens_neox': 796, 'n_words': 264}