You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Go to file
Stuart Lynn 34551c96e1
Adding pysal to Docker
9 years ago
pg Adapt Makefile of the extension for some PGXS versions 9 years ago
python Fix typo 9 years ago
CONTRIBUTING.md Update CONTRIBUTING.md 9 years ago
DEPLOYING.md Add a top-level Makefile 9 years ago
Dockerfile Adding pysal to Docker 9 years ago
LICENSE Add licencse 9 years ago
Makefile Add a top-level Makefile 9 years ago
README.md updating readme with instructions 9 years ago
TODO.md Add the cartodb extension as a dependency 9 years ago
init_db.sh docker implementation for running tests 9 years ago
init_db_script.sh docker implementation for running tests 9 years ago
pgpass docker implementation for running tests 9 years ago
postgresql.sh docker implementation for running tests 9 years ago
run_server.sh Adding pysal to Docker 9 years ago
run_tests.sh docker implementation for running tests 9 years ago

README.md

crankshaft

CartoDB Spatial Analysis extension for PostgreSQL.

Code organization

  • pg contains the PostgreSQL extension source code
  • python Python module

Running with Docker

Crankshaft comes with a Dockerfile to build and run a sandboxed machine for testing and development.

First you have to build the docker container

docker build -t crankshaft .

To run the pg tests run

docker run -it --rm -v $(pwd):/crankshaft  crankshaft /root/run_tests.sh

if there are failures it will dump the reasion to the screen.

To run a server you can develop on run

docker run -it --rm -v $(pwd):/crankshaft -p $(docker-machine ip default):5432:5432 /root/run_server.sh

and connect from you host using

psql -U pggis -h $(docker-machine ip default) -p 5432 -W

the password is pggis

Requirements

  • pip