Adding pysal to Docker

This commit is contained in:
Stuart Lynn 2016-03-04 10:00:20 -05:00
parent 12bfe405e4
commit 34551c96e1
2 changed files with 15 additions and 0 deletions

View File

@ -126,6 +126,7 @@ RUN git clone https://github.com/CartoDB/cartodb-postgresql.git &&\
RUN apt-get -y install python-dev python-pip liblapack-dev gfortran libyaml-dev
RUN pip install numpy pandas scipy theano keras sklearn
RUN pip install pysal
# get compiled libraries recognized
RUN ldconfig

View File

@ -0,0 +1,14 @@
#!/bin/bash
/sbin/my_init &
echo "Waiting for PostgreSQL to run..."
sleep 1
while ! /usr/bin/pg_isready -q
do
sleep 1
echo -n "."
done
cd /crankshaft/pg
make install
fg