<commit_before># sendgridjp-webhook-docker
#
# VERSION	1.0
#
# use the ubuntu base image provided by dotCloud
#
FROM dockerfile/ubuntu
MAINTAINER awwa, <EMAIL>

#
# make sure the package repository is up to date
#
RUN echo "deb http://archive.ubuntu.com/ubuntu trusty main universe" > /etc/apt/sources.list
RUN apt-get update

#
# install ssh for maintainance
#
RUN apt-get install -y openssh-client
RUN apt-get install -y ssh-import-id openssh-server
RUN mkdir -p /var/run/sshd
RUN echo root:password | chpasswd
RUN echo 'rootpass ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
RUN echo 'PasswordAuthentication yes' >> /etc/ssh/sshd_config
RUN sed -e "s/PermitRootLogin without-password/PermitRootLogin yes/g" /etc/ssh/sshd_config > /etc/ssh/sshd_config

#
# expose ssh port
#
EXPOSE 22
EXPOSE 7076
EXPOSE 80

#
# install modules

#
# for Japanese
#
RUN apt-get install -y language-pack-ja
RUN echo ":set encoding=utf-8" >> /root/.vimrc
RUN echo ":set fileencodings=iso-2022-jp,euc-jp,sjis,utf-8" >> /root/.vimrc
RUN echo "export LESSCHARSET=utf-8" >> /root/.profile

#
# for general
#
RUN apt-get install -y perl
RUN apt-get install -y libswitch-perl
RUN apt-get install -y perl-modules
RUN apt-get install -y liberror-perl
RUN apt-get install -y git

#
# for PHP
#
RUN apt-get install -y php5 curl libcurl3 php5-curl
WORKDIR /usr/local/bin
RUN curl -sS https://getcomposer.org/installer | php
#
# Get sendgridjp-eventkit
RUN mkdir /root/php
WORKDIR /root/php
RUN git clone https://github.com/SendGridJP/sendgridjp-eventkit.git
WORKDIR /root/php/sendgridjp-eventkit
#RUN /usr/local/bin/composer.phar install

#
# for node.js
RUN apt-get install -y g++ build-essential
RUN mkdir /root/nodejs
WORKDIR /root/nodejs
RUN wget http://nodejs.org/dist/v0.11.13/node-v0.11.13.tar.gz
RUN tar zxvf node-v0.11.13.tar.gz
WORKDIR /root/nodejs/node-v0.11.13
RUN ./configure
RUN make install
#
# Get sendgrid-parse-demo
WORKDIR /root/nodejs
RUN git clone https://github.com/SendGridJP/sendgrid-parse-demo.git
WORKDIR /root/nodejs/sendgrid-parse-demo
RUN npm install
ADD ./.env /root/nodejs/sendgrid-parse-demo/.env
#
# Install nginx
RUN apt-get install -y nginx php5-fpm php5-sqlite sqlite3

#
# Install Supervisor
RUN apt-get install -y supervisor
RUN mkdir -p /var/log/sshd
RUN mkdir -p /var/log/supervisor
ADD files/etc/supervisor/conf.d/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
ADD files/etc/nginx/sites-available/default /etc/nginx/sites-available/default

RUN cp -r /root/php/sendgridjp-eventkit/* /usr/share/nginx/html
RUN mv /usr/share/nginx/html/index.html /usr/share/nginx/html/index.html.org
RUN chmod 777 /usr/share/nginx/html

CMD ["/usr/bin/supervisord"]
<commit_msg>Change way of installing eventkit<commit_after># sendgridjp-webhook-docker
#
# VERSION	1.0
#
# use the ubuntu base image provided by dotCloud
#
FROM dockerfile/ubuntu
MAINTAINER awwa, <EMAIL>

#
# make sure the package repository is up to date
#
RUN echo "deb http://archive.ubuntu.com/ubuntu trusty main universe" > /etc/apt/sources.list
RUN apt-get update

#
# install ssh for maintainance
#
RUN apt-get install -y openssh-client
RUN apt-get install -y ssh-import-id openssh-server
RUN mkdir -p /var/run/sshd
RUN echo root:password | chpasswd
RUN echo 'rootpass ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
RUN echo 'PasswordAuthentication yes' >> /etc/ssh/sshd_config
RUN sed -e "s/PermitRootLogin without-password/PermitRootLogin yes/g" /etc/ssh/sshd_config > /etc/ssh/sshd_config

#
# expose ssh port
#
EXPOSE 22
EXPOSE 7076
EXPOSE 80

#
# install modules

#
# for Japanese
#
RUN apt-get install -y language-pack-ja
RUN echo ":set encoding=utf-8" >> /root/.vimrc
RUN echo ":set fileencodings=iso-2022-jp,euc-jp,sjis,utf-8" >> /root/.vimrc
RUN echo "export LESSCHARSET=utf-8" >> /root/.profile

#
# for general
#
RUN apt-get install -y perl
RUN apt-get install -y libswitch-perl
RUN apt-get install -y perl-modules
RUN apt-get install -y liberror-perl
RUN apt-get install -y git

#
# for PHP
#
RUN apt-get install -y php5 curl libcurl3 php5-curl
WORKDIR /usr/local/bin
RUN curl -sS https://getcomposer.org/installer | php
#
# Get sendgridjp-eventkit
WORKDIR /usr/share/nginx/html
RUN wget -O event_kit.zip https://github.com/sendgrid/eventkit/blob/master/quick_installer/event_kit.zip?raw=true
RUN unzip event_kit.zip

#
# for node.js
RUN apt-get install -y g++ build-essential
RUN mkdir /root/nodejs
WORKDIR /root/nodejs
RUN wget http://nodejs.org/dist/v0.11.13/node-v0.11.13.tar.gz
RUN tar zxvf node-v0.11.13.tar.gz
WORKDIR /root/nodejs/node-v0.11.13
RUN ./configure
RUN make install
#
# Get sendgrid-parse-demo
WORKDIR /root/nodejs
RUN git clone https://github.com/SendGridJP/sendgrid-parse-demo.git
WORKDIR /root/nodejs/sendgrid-parse-demo
RUN npm install
ADD ./.env /root/nodejs/sendgrid-parse-demo/.env
#
# Install nginx
RUN apt-get install -y nginx php5-fpm php5-sqlite sqlite3

#
# Install Supervisor
RUN apt-get install -y supervisor
RUN mkdir -p /var/log/sshd
RUN mkdir -p /var/log/supervisor
ADD files/etc/supervisor/conf.d/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
ADD files/etc/nginx/sites-available/default /etc/nginx/sites-available/default

RUN chmod 777 /usr/share/nginx/html

CMD ["/usr/bin/supervisord"]

{'fraction_non_alphanumeric': 0.12123537310569729, 'fraction_numerical': 0.017648187224247075, 'mean_word_length': 3.9003759398496243, 'pattern_counts': {'":': 4, '<': 5, '<?xml version=': 0, '>': 29, 'https://': 6, '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': '3451514', 'n_tokens_mistral': 2060, 'n_tokens_neox': 1920, 'n_words': 513}