Add CKAN extensions, related to #137
This commit is contained in:
parent
58e21a8ad4
commit
d1cf63d8e4
14
30-ckan.sh
14
30-ckan.sh
@ -16,6 +16,19 @@ virtualenv --no-site-packages --python=/usr/bin/python2.7 /srv/ckan
|
||||
/srv/ckan/bin/pip install -r /srv/ckan/src/ckan/requirements.txt
|
||||
/srv/ckan/bin/pip install -r /srv/ckan/src/datapusher/requirements.txt
|
||||
|
||||
# Install CKAN extensions
|
||||
/srv/ckan/bin/pip install -e 'git+https://github.com/ckan/ckanext-basiccharts#egg=ckanext_basiccharts'
|
||||
/srv/ckan/bin/pip install -e 'git+https://github.com/ckan/ckanext-spatial#egg=ckanext_spatial'
|
||||
/srv/ckan/bin/pip install -e 'git+https://github.com/ckan/ckanext-geoview#egg=ckanext_geoview'
|
||||
/srv/ckan/bin/pip install -e 'git+https://github.com/ckan/ckanext-mapviews#egg=ckanext_mapviews'
|
||||
/srv/ckan/bin/pip install -e 'git+https://github.com/XVTSolutions/ckanext-spatialUI#egg=ckanext_spatialui'
|
||||
/srv/ckan/bin/pip install -e 'git+https://github.com/aptivate/ckanext-datasetthumbnail#egg=ckanext_datasetthumbnail'
|
||||
/srv/ckan/bin/pip install -e 'git+https://github.com/datagvat/ckanext-dgvat_xls#egg=ckanext_dgvat_xls'
|
||||
/srv/ckan/bin/pip install -r /srv/ckan/src/ckanext-spatial/pip-requirements.txt
|
||||
/srv/ckan/bin/pip install -r /srv/ckan/src/ckanext-geoview/pip-requirements.txt
|
||||
/srv/ckan/bin/pip install -r /srv/ckan/src/ckanext-datasetthumbnail/requirements.txt
|
||||
/srv/ckan/bin/pip install -r /srv/ckan/src/ckanext-dgvat-xls/requirements.txt
|
||||
|
||||
# Donwload Solr
|
||||
wget http://archive.apache.org/dist/lucene/solr/6.5.1/solr-6.5.1.tgz -O /tmp/solr-6.5.1.tgz
|
||||
tar xzf /tmp/solr-6.5.1.tgz -C /opt/
|
||||
@ -69,6 +82,7 @@ cp ${SOURCE_DIR}/ckan/srv/ckan/update-ip.sh /srv/ckan/update-ip.sh
|
||||
|
||||
# Populate database
|
||||
sudo -u ckan /srv/ckan/bin/paster --plugin=ckan db init -c /etc/ckan/ckan.ini
|
||||
sudo -u ckan /srv/ckan/bin/paster --plugin=ckanext-spatial spatial initdb -c /etc/ckan/ckan.ini
|
||||
sudo -u ckan /srv/ckan/bin/paster --plugin=ckan datastore set-permissions -c /etc/ckan/ckan.ini | sudo -u postgres psql
|
||||
|
||||
# Create admin account
|
||||
|
@ -100,11 +100,11 @@ ckan.redis.url = redis://localhost:6379/0
|
||||
# Add ``datapusher`` to enable DataPusher
|
||||
# Add ``resource_proxy`` to enable resorce proxying and get around the
|
||||
# same origin policy
|
||||
ckan.plugins = stats text_view image_view recline_view datastore datapusher
|
||||
ckan.plugins = stats text_view image_view recline_view resource_proxy datastore datapusher spatial_metadata spatial_query geo_view geojson_view wmts_view navigablemap choroplethmap spatialUI linechart barchart piechart basicgrid datasetthumbnail dgvat_xls
|
||||
|
||||
# Define which views should be created by default
|
||||
# (plugins must be loaded in ckan.plugins)
|
||||
ckan.views.default_views = image_view text_view recline_view
|
||||
ckan.views.default_views = image_view text_view recline_view geo_view geojson_view wmts_view
|
||||
|
||||
# Customize which text formats the text_view plugin will show
|
||||
#ckan.preview.json_formats = json
|
||||
@ -114,6 +114,14 @@ ckan.views.default_views = image_view text_view recline_view
|
||||
# Customize which image formats the image_view plugin will show
|
||||
#ckan.preview.image_formats = png jpeg jpg gif
|
||||
|
||||
# Dataset thumbnail plugin settings
|
||||
ckan.datasetthumbnail.show_thumbnail = True
|
||||
ckan.datasetthumbnail.auto_generate = True
|
||||
|
||||
# GeoView plugin settings
|
||||
ckanext.geoview.ol_viewer.formats = wms wfs geojson gml kml arcgis_rest gft
|
||||
ckanext.geoview.gapi_key = AIzaSyBvIF3D550tlpL6o1xRrDurGo-81VhHlOw
|
||||
|
||||
## Front-End Settings
|
||||
ckan.site_title = CKAN
|
||||
ckan.site_logo = /base/images/ckan-logo.png
|
||||
@ -150,7 +158,7 @@ ckan.feeds.author_link =
|
||||
## Storage Settings
|
||||
|
||||
ckan.storage_path = /var/lib/ckan
|
||||
ckan.max_resource_size = 10
|
||||
ckan.max_resource_size = 100
|
||||
ckan.max_image_size = 2
|
||||
|
||||
## Datapusher settings
|
||||
|
@ -14,6 +14,9 @@ ALTER DATABASE ckan_datastore OWNER TO ckan_datastore;
|
||||
CREATE TEXT SEARCH DICTIONARY cspell (template=ispell, dictfile = czech, afffile=czech, stopwords=czech);
|
||||
CREATE TEXT SEARCH CONFIGURATION czech (copy=english);
|
||||
ALTER TEXT SEARCH CONFIGURATION czech ALTER MAPPING FOR word, asciiword WITH cspell, simple;
|
||||
CREATE EXTENSION postgis;
|
||||
GRANT ALL ON geometry_columns TO ckan;
|
||||
GRANT ALL ON spatial_ref_sys TO ckan;
|
||||
|
||||
\c ckan_datastore
|
||||
CREATE TEXT SEARCH DICTIONARY cspell (template=ispell, dictfile = czech, afffile=czech, stopwords=czech);
|
||||
|
Loading…
Reference in New Issue
Block a user