FROM phusion/baseimage:0.9.11 MAINTAINER Masato Shimizu <ma6ato@gmail.com>
ENV HOME /root RUN /etc/my_init.d/00_regen_ssh_host_keys.sh
## Install an SSH of your choice. ADD google_compute_engine.pub /tmp/your_key RUN cat /tmp/your_key >> /root/.ssh/authorized_keys \ && chmod 600 /root/.ssh/authorized_keys \ && chmod 600 /root/.ssh/authorized_keys && rm -f /tmp/your_key
## ...put your own build instructions here... RUN sed -i~ -e 's/archive.ubuntu.com/ftp.jaist.ac.jp/' /etc/apt/sources.list \ && apt-get update
## Japanese Environment RUN DEBIAN_FRONTEND=noninteractive apt-get install -y language-pack-ja ENV LANG ja_JP.UTF-8 RUN update-locale LANG=ja_JP.UTF-8 RUN mv /etc/localtime /etc/localtime.org RUN ln -s /usr/share/zoneinfo/Asia/Tokyo /etc/localtime
## Development Environment ENV EDITOR vim RUN update-alternatives --set editor /usr/bin/vim.basic RUN DEBIAN_FRONTEND=noninteractive \ apt-get install -y git wget curl unzip
## Anaconda RUN wget http://09c8d0b2229f813c1b93-c95ac804525aac4b6dba79b00b39d1d3.r79.cf1.rackcdn.com/Anaconda-2.0.1-Linux-x86_64.sh -P /root \ && /bin/bash /root/Anaconda-2.0.1-Linux-x86_64.sh -b RUN /root/anaconda/bin/ipython profile create nbserver && mkdir /notebook RUN /root/anaconda/bin/ipython -c 'from IPython.external import mathjax; mathjax.install_mathjax(tag="2.2.0")'
ADD sv /etc/service
# Use baseimage-docker's init system. CMD ["/sbin/my_init"]
# Clean up APT when done. RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
definstall_mathjax(tag='v2.2', dest=default_dest, replace=False, file=None, extractor=extract_tar): """Download and/or install MathJax for offline use. This will install mathjax to the nbextensions dir in your IPYTHONDIR. MathJax is a ~15MB download, and ~150MB installed.