From 139eb16345569da00f28b908c29f286ae6713aa3 Mon Sep 17 00:00:00 2001 From: Bradlee Speice Date: Tue, 11 Oct 2016 22:16:36 -0400 Subject: [PATCH] Add some Julia packages --- Dockerfile | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 0c90526..f92c22f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,20 +3,47 @@ MAINTAINER Bradlee Speice LABEL Description="Jupyter server setup for ECBM E4040 Neural Networks" Version="0.1" -# Start with the updates +# Update our cache first RUN apt-get update && \ + # add-apt-repository + apt-get install -y software-properties-common && \ + + # Add Julia repository + add-apt-repository "ppa:staticfloat/juliareleases" && \ + + # Install Julia + apt-get update && apt-get install -y julia && \ + # Don't install broken Pip apt-get install -y python-pip=8.1.1-2 python3-pip=8.1.1-2 python-pip-whl=8.1.1-2 && \ # Install the Scipy stuff we need apt-get install -y \ + python3 libpython3-dev \ python-pandas python-matplotlib \ texlive-latex-extra texlive-fonts-recommended texlive-generic-recommended pandoc + # And the python-specific tools RUN pip install theano jupyter +# And the Julia-specific tools +# Note that this must be after installing Jupyter to pick up the kernel +RUN julia -e 'Pkg.update()' && \ + julia -e '[Pkg.add(s) for s in [ + "Mocha", + "ArrayFire", + "Knet", + "Gadfly", + "IJulia", + "Distributions", + "ImageMagick", + "Plots", + "GR" + ]]' + + # And the startup script COPY . /