-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathubuntu1604
35 lines (30 loc) · 1.39 KB
/
ubuntu1604
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
FROM ubuntu:16.04
MAINTAINER MIT Probabilistic Computing Project
# Fetch dependencies from apt.
RUN apt-get update -qq \
&& apt-get install -qq -y \
build-essential \
cython \
git \
python-matplotlib \
python-numpy \
python-pandas \
python-pytest \
python-scipy \
python-six \
python-sklearn \
python-statsmodels \
python-virtualenv
# Create a virtualenv with jupyter.
RUN virtualenv --system-site-packages /venv
RUN . /venv/bin/activate && pip install jupyter-core==4.6.1
# Clone the probcomp dependencies.
RUN git clone https://github.com/probcomp/crosscat.git
RUN git clone https://github.com/probcomp/cgpm.git
RUN git clone https://github.com/probcomp/trcrpm.git
# Install into the virtualenv.
RUN . /venv/bin/activate && cd /crosscat && pip install .
RUN . /venv/bin/activate && cd /cgpm && pip install .
RUN . /venv/bin/activate && cd /trcrpm && pip install .
# Run the tests.
RUN . /venv/bin/activate && python -m pytest --pyargs trcrpm