最新版
Go to file
Stefan Verhoeven d6832a177f Further progress configuring geocoder.
Now brower error:
```
error: cdb_dataservices_client._cdb_service_quota_info(2): [cartodb_dev_user_5357a703-8b69-48d4-b114-122e9498aca7_db] REMOTE ERROR: spiexceptions.ExternalRoutineException: cartodb_services.metrics.config.ConfigException: Here maps configuration missing↵    at Connection.parseE (/CartoDB-SQL-API/node_modules/cartodb-psql/node_modules/pg/lib/connection.js:560:11)↵    at Connection.parseMessage (/CartoDB-SQL-API/node_modules/cartodb-psql/node_modules/pg/lib/connection.js:383:17)↵    at Socket.<anonymous> (/CartoDB-SQL-API/node_modules/cartodb-psql/node_modules/pg/lib/connection.js:119:22)↵    at Socket.emit (events.js:95:17)↵    at Socket.<anonymous> (_stream_readable.js:765:14)↵    at Socket.emit (events.js:92:17)↵    at emitReadable_ (_stream_readable.js:427:10)↵    at emitReadable (_stream_readable.js:423:5)↵    at readableAddChunk (_stream_readable.js:166:9)↵    at Socket.Readable.push (_stream_readable.js:128:10)↵    at TCP.onread (net.js:529:21)"
Name

```
When map without geometry is opened.
2017-04-06 22:24:10 +02:00
config * Embed nginx inside Docker image so all services are reversed proxied behind port 80 2017-04-03 22:55:12 +02:00
cartodb_pgsql.sh Populate docker-cartodb with required files. 2014-11-15 16:32:19 +01:00
create_dev_user Further progress configuring geocoder. 2017-04-06 22:24:10 +02:00
Dockerfile Further progress configuring geocoder. 2017-04-06 22:24:10 +02:00
fill_geocoder.sh Further progress configuring geocoder. 2017-04-06 22:24:10 +02:00
LICENSE Initial commit 2014-11-14 10:59:55 +01:00
README.md Further progress configuring geocoder. 2017-04-06 22:24:10 +02:00
setup_fdw.sh Example how to use foreign data wrapper in CartoDB. 2015-02-18 10:50:40 +01:00
setup_organization.sh Further progress configuring geocoder. 2017-04-06 22:24:10 +02:00
startup.sh Allow different hostname to be set 2017-04-06 20:02:07 +02:00
template_postgis.sh Further progress configuring geocoder. 2017-04-06 22:24:10 +02:00

docker-cartodb

This docker container provides a fully working cartodb development solution without the installation hassle.

Just run the commands and then connect to http://cartodb.localhost with your you browser.

The default login is dev/pass1234. You may want to change it when you'll run it for the outside.

It also creates an 'example' organization with owner login admin4example/pass1234. Organization members can be created on http://cartodb.localhost/user/admin4example/organization

How to build the container:

git clone https://github.com/sverhoeven/docker-cartodb.git
docker build -t=sverhoeven/cartodb docker-cartodb/

How to run the container:

docker run -d -p 80:80 sverhoeven/cartodb

The CartoDB instance has been configured with the hostname cartodb.localhost, this means the web browser and web server need to be able to resolve cartodb.localhost to an IP adress of the machine where the web server is running. This can be done by adding cartodb.localhost alias to your hosts file. For example

sudo sh -c 'echo 127.0.1.1 cartodb.localhost >> /etc/hosts'

(For Windows it will be C:\Windows\System32\drivers\etc\hosts)

How to use a different hostname:

For example to use cartodb.example.com as a hostname start with:

docker run -d -p 80:80 -e CARTO_HOST=cartodb.example.com sverhoeven/cartodb

The chosen hostname should also resolve to an IP adress of the machine where the web server is running.

Geocoder

The internal geocoder is configured, but contains no data inside the image.

To fill the internal geocoder run

docker exec -ti <carto docker container id> bash -c /cartodb/script/fill_geocoder.sh

This will run the scripts described at https://github.com/CartoDB/data-services/tree/master/geocoder It will use at least require 10Gb of diskspace to download the dumps and import them.