forked from sverhoeven/docker-cartodb
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add geocoder account creation script
- Loading branch information
1 parent
d6832a1
commit d39252a
Showing
2 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
|
||
rake cartodb:db:create_user --trace SUBDOMAIN="geocoder" \ | ||
PASSWORD="pass1234" ADMIN_PASSWORD="pass1234" \ | ||
EMAIL="[email protected]" | ||
|
||
# # Update your quota to 100GB | ||
echo "--- Updating quota to 100GB" | ||
rake cartodb:db:set_user_quota[geocoder,102400] | ||
|
||
# # Allow unlimited tables to be created | ||
echo "--- Allowing unlimited tables creation" | ||
rake cartodb:db:set_unlimited_table_quota[geocoder] | ||
|
||
|
||
GEOCODER_DB=`echo "SELECT database_name FROM users WHERE username='geocoder'" | psql -U postgres -t carto_db_development` | ||
psql -U postgres $GEOCODER_DB < /cartodb/script/geocoder_server.sql |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
create extension cdb_geocoder; | ||
create extension plproxy; | ||
create extension observatory; | ||
create extension cdb_dataservices_server; | ||
create extension cdb_dataservices_client; | ||
|
||
SELECT CDB_Conf_SetConf( | ||
'redis_metadata_config', | ||
'{"redis_host": "localhost", "redis_port": 6379, "sentinel_master_id": "", "timeout": 0.1, "redis_db": 5}' | ||
); | ||
SELECT CDB_Conf_SetConf( | ||
'redis_metrics_config', | ||
'{"redis_host": "localhost", "redis_port": 6379, "sentinel_master_id": "", "timeout": 0.1, "redis_db": 5}' | ||
); | ||
|
||
SELECT CDB_Conf_SetConf( | ||
'user_config', | ||
'{"is_organization": false, "entity_name": "geocoder"}' | ||
); | ||
|
||
SELECT CDB_Conf_SetConf( | ||
'server_conf', | ||
'{"environment": "development"}' | ||
); |