<commit_before># Mongodb
#
# VERSION               0.2

FROM allisson/docker-ubuntu:latest
MAINTAINER <NAME> <<EMAIL>>

# avoid debconf and initrd
ENV DEBIAN_FRONTEND noninteractive
ENV INITRD No

# add mongodb repo
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
RUN echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | tee /etc/apt/sources.list.d/mongodb.list

# install packages
RUN apt-get update
RUN apt-get install -y openssh-server mongodb-10gen supervisor

# make /var/run/sshd
RUN mkdir /var/run/sshd

# setup mongodb
RUN mkdir -p /data/db

# set root password
RUN echo "root:root" | chpasswd

# clean packages
RUN apt-get clean
RUN rm -rf /var/cache/apt/archives/* /var/lib/apt/lists/*

# expose mongodb port
EXPOSE 22 27017

# copy supervisor conf
ADD supervisord.conf /etc/supervisor/conf.d/supervisord.conf

# start supervisor
CMD ["/usr/bin/supervisord"]<commit_msg>Add volume to mongodb datadir.<commit_after># Mongodb
#
# VERSION               0.3

FROM allisson/docker-ubuntu:latest
MAINTAINER <NAME> <<EMAIL>>

# avoid debconf and initrd
ENV DEBIAN_FRONTEND noninteractive
ENV INITRD No

# add mongodb repo
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
RUN echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | tee /etc/apt/sources.list.d/mongodb.list

# install packages
RUN apt-get update
RUN apt-get install -y openssh-server mongodb-10gen supervisor

# make /var/run/sshd
RUN mkdir /var/run/sshd

# setup mongodb
RUN mkdir -p /data/db

# set root password
RUN echo "root:root" | chpasswd

# clean packages
RUN apt-get clean
RUN rm -rf /var/cache/apt/archives/* /var/lib/apt/lists/*

# expose mongodb port
EXPOSE 22 27017

# volumes
VOLUME ["/data/db"]

# copy supervisor conf
ADD supervisord.conf /etc/supervisor/conf.d/supervisord.conf

# start supervisor
CMD ["/usr/bin/supervisord"]
{'fraction_non_alphanumeric': 0.11076280041797283, 'fraction_numerical': 0.019853709508881923, 'mean_word_length': 3.775561097256858, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, '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': '1134826', 'n_tokens_mistral': 751, 'n_tokens_neox': 679, 'n_words': 192}