FROM ubuntu:14.04
MAINTAINER Jack Northrup 
ENV LLVM_VERSION=4.0
ENV CONTAINER_USER="jack"

# Set Locale otherwise some applications may behave strangely when
# the encoding looks like ANSI_X3.4-1968
RUN locale-gen en_US.UTF-8
ENV LANG=en_US.UTF-8 \
    LANGUAGE=en_US:en \
    LC_ALL=en_US.UTF-8
RUN add-apt-repository ppa:eugenesan/ppa 

RUN apt-get update && apt-get -y upgrade && apt-get -y install wget
RUN wget -O - http://llvm.org/apt/llvm-snapshot.gpg.key|sudo apt-key add - && \
	echo "deb http://llvm.org/apt/trusty/ llvm-toolchain-trusty-${LLVM_VERSION} main" >> /etc/apt/sources.list.d/llvm.list && \
	apt-get update


RUN apt-get -y --no-install-recommends install \
  aptitude \
  bash-completion \
  build-essential \
  clang-${LLVM_VERSION} \
  cmake \
  mc \
  cmake-curses-gui \
  coreutils \
  gcc \
  g++ \
  tar \
  gdb \
  git-core \
  htop \
  mercurial \
  ncdu \
  nano \
  locate \
  git \
  ninja-build \
  python \
  python-dev \
  python-pip \
  python-software-properties \
  software-properties-common \
  subversion \
  tmux \
  tree \
  unzip \
  vim


# Add non-root user for container but give it sudo access.
# Password is the same as the username
RUN useradd -m ${CONTAINER_USER} && \
    echo ${CONTAINER_USER}:${CONTAINER_USER} | chpasswd && \
    cp /etc/sudoers /etc/sudoers.bak && \
    echo "${CONTAINER_USER}  ALL=(root) ALL" >> /etc/sudoers
# Make bash the default shell (useful for when using tmux in the container)
RUN chsh --shell /bin/bash ${CONTAINER_USER}
USER ${CONTAINER_USER}










pip install jupyter_nbextensions_configurator
jupyter nbextensions_configurator enable