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.
Stuart Lynn
34551c96e1
|
9 years ago | |
---|---|---|
pg | 9 years ago | |
python | 9 years ago | |
CONTRIBUTING.md | 9 years ago | |
DEPLOYING.md | 9 years ago | |
Dockerfile | 9 years ago | |
LICENSE | 9 years ago | |
Makefile | 9 years ago | |
README.md | 9 years ago | |
TODO.md | 9 years ago | |
init_db.sh | 9 years ago | |
init_db_script.sh | 9 years ago | |
pgpass | 9 years ago | |
postgresql.sh | 9 years ago | |
run_server.sh | 9 years ago | |
run_tests.sh | 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