<commit_before>FROM ubuntu:trusty
MAINTAINER ClassCat Co.,Ltd. <<EMAIL>>

########################################################################
# ClassCat/Spark Dockerfile
#   Maintained by ClassCat Co.,Ltd ( http://www.classcat.com/ )
########################################################################

#--- HISTORY -----------------------------------------------------------
# 05-sep-15 : change the workinig dir to /notebook.
# 05-sep-15 : fixed.
#
#--- TODO --------------------------------------------------------------
# 04-sep-15 : should be run as non-root ?
#
#--- DESCRIPTION -------------------------------------------------------
# 04-sep-15 : python-numpy, python-matplotlib, python-nose : o.k.
#
#-----------------------------------------------------------------------

ENV DEBIAN_FRONTEND noninteractive

RUN apt-get update && apt-get -y upgrade \
  && apt-get install -y language-pack-en language-pack-en-base \
  && apt-get install -y language-pack-ja language-pack-ja-base \
  && update-locale LANG="en_US.UTF-8" \
  && apt-get install -y openssh-server supervisor rsyslog \
  && mkdir -p /var/run/sshd \
  && sed -i.bak -e "s/^PermitRootLogin\s*.*$/PermitRootLogin yes/" /etc/ssh/sshd_config

COPY assets/supervisord.conf /etc/supervisor/supervisord.conf

# OpenJDK 8
RUN apt-get install -y software-properties-common \
  && apt-add-repository ppa:openjdk-r/ppa \
  && apt-get update \
  && apt-get install -y openjdk-8-jdk

# Apache Spark
WORKDIR /usr/local
RUN wget http://ftp.riken.jp/net/apache/spark/spark-1.4.1/spark-1.4.1-bin-hadoop2.6.tgz \
  && tar xfz spark-1.4.1-bin-hadoop2.6.tgz \
  && ln -s spark-1.4.1-bin-hadoop2.6 spark

# ipython & notebook & libraries
RUN apt-get install -y ipython ipython-notebook \
  && apt-get install -y python-scipy python-pandas python-sympy \
  && ipython profile create ccnb

WORKDIR /root
COPY assets/ipython_notebook_config.py /root/.ipython/profile_ccnb/ipython_notebook_config.py<commit_msg>change the working directory to /root/notebook<commit_after>FROM ubuntu:trusty
MAINTAINER ClassCat Co.,Ltd. <<EMAIL>>

########################################################################
# ClassCat/Spark Dockerfile
#   Maintained by ClassCat Co.,Ltd ( http://www.classcat.com/ )
########################################################################

#--- HISTORY -----------------------------------------------------------
# 05-sep-15 : change the workinig dir to /root/notebook.
# 05-sep-15 : change the workinig dir to /notebook.
# 05-sep-15 : fixed.
#
#--- TODO --------------------------------------------------------------
# 04-sep-15 : should be run as non-root ?
#
#--- DESCRIPTION -------------------------------------------------------
# 04-sep-15 : python-numpy, python-matplotlib, python-nose : o.k.
#
#-----------------------------------------------------------------------

ENV DEBIAN_FRONTEND noninteractive

RUN apt-get update && apt-get -y upgrade \
  && apt-get install -y language-pack-en language-pack-en-base \
  && apt-get install -y language-pack-ja language-pack-ja-base \
  && update-locale LANG="en_US.UTF-8" \
  && apt-get install -y openssh-server supervisor rsyslog \
  && mkdir -p /var/run/sshd \
  && sed -i.bak -e "s/^PermitRootLogin\s*.*$/PermitRootLogin yes/" /etc/ssh/sshd_config

COPY assets/supervisord.conf /etc/supervisor/supervisord.conf

# OpenJDK 8
RUN apt-get install -y software-properties-common \
  && apt-add-repository ppa:openjdk-r/ppa \
  && apt-get update \
  && apt-get install -y openjdk-8-jdk

# Apache Spark
WORKDIR /usr/local
RUN wget http://ftp.riken.jp/net/apache/spark/spark-1.4.1/spark-1.4.1-bin-hadoop2.6.tgz \
  && tar xfz spark-1.4.1-bin-hadoop2.6.tgz \
  && ln -s spark-1.4.1-bin-hadoop2.6 spark

# ipython & notebook & libraries
RUN apt-get install -y ipython ipython-notebook \
  && apt-get install -y python-scipy python-pandas python-sympy \
  && ipython profile create ccnb

WORKDIR /root/notebook
COPY assets/ipython_notebook_config.py /root/.ipython/profile_ccnb/ipython_notebook_config.py
{'fraction_non_alphanumeric': 0.3127633209417596, 'fraction_numerical': 0.019330855018587362, 'mean_word_length': 2.1654901960784314, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '4454339', 'n_tokens_mistral': 1369, 'n_tokens_neox': 1277, 'n_words': 267}