-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
44 lines (35 loc) · 1.7 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
FROM ubuntu:14.04
MAINTAINER curtiszimmerman <[email protected]>
# get the things we need
RUN apt-get update -y && \
apt-get install -y \
curl \
python-qt4 && \
rm -rf /var/cache/apt/archive/*
# get more things we need (and do it on one layer so our unionfs doesn't store the 400mb file in one of its layers)
WORKDIR /tmp
RUN curl -o /tmp/Anaconda2-4.0.0-Linux-x86_64.sh http://repo.continuum.io/archive/Anaconda2-4.0.0-Linux-x86_64.sh && \
chmod +x ./Anaconda2-4.0.0-Linux-x86_64.sh && \
./Anaconda2-4.0.0-Linux-x86_64.sh -b && \
rm ./Anaconda2-4.0.0-Linux-x86_64.sh
# make the anaconda stuff available
ENV PATH=${PATH}:/root/anaconda2/bin
## do some amazing anaconda things (from: https://dato.com/download/install-graphlab-create.html)
# create conda environment with python 2.7.x
RUN conda create -n dato-env python=2.7 anaconda
# activate conda environment
RUN ["/bin/bash", "-c", ". activate dato-env"]
# ensure pip version >= 7
RUN conda update pip
## install graphlab create with creds provided in --build-arg in 'docker build' command (in build.sh):
ARG USER_EMAIL
ARG USER_KEY
RUN pip install --upgrade --no-cache-dir https://get.dato.com/GraphLab-Create/1.10.1/${USER_EMAIL}/${USER_KEY}/GraphLab-Create-License.tar.gz
## install ipython and ipython notebook
RUN conda install ipython-notebook
## NVIDIA GPU ACCELERATION IS NOT AS EASY AS YOU THINK (but still possible)
# see: https://github.com/NVIDIA/nvidia-docker/wiki/Using%20nvidia-docker-plugin
# upgrade GraphLab Create with GPU Acceleration
RUN pip install --upgrade --no-cache-dir http://static.dato.com/files/graphlab-create-gpu/graphlab-create-1.10.1.gpu.tar.gz
# and set our container's run command
CMD ["jupyter", "notebook", "--ip=0.0.0.0"]