From 34551c96e1a4ac77bcabdb27ffbb2591437e50e6 Mon Sep 17 00:00:00 2001 From: Stuart Lynn Date: Fri, 4 Mar 2016 10:00:20 -0500 Subject: [PATCH] Adding pysal to Docker --- Dockerfile | 1 + run_server.sh | 14 ++++++++++++++ 2 files changed, 15 insertions(+) diff --git a/Dockerfile b/Dockerfile index 28affe0..b872932 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/run_server.sh b/run_server.sh index e69de29..08e0dcf 100755 --- a/run_server.sh +++ b/run_server.sh @@ -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