diff --git a/.env.example b/.env.example index b243bb4b..1c3e8b69 100644 --- a/.env.example +++ b/.env.example @@ -80,8 +80,30 @@ NGINX_PORT=80 NGINX_SSLPORT=443 # Extensions -CKAN__PLUGINS="envvars image_view text_view recline_view datastore datapusher" +CKAN__PLUGINS="image_view text_view recline_view datastore datapusher natcap spatial_metadata spatial_query stats activity scheming_datasets envvars" CKAN__HARVEST__MQ__TYPE=redis CKAN__HARVEST__MQ__HOSTNAME=redis CKAN__HARVEST__MQ__PORT=6379 CKAN__HARVEST__MQ__REDIS_DB=1 + +# Support searching by arbitrary polygon, not just by bounding box. +CKANEXT__SPATIAL__SEARCH_BACKEND="solr-spatial-field" +CKANEXT__SPATIAL__COMMON_MAP__TYPE="Stadia.StamenTerrain" +CKANEXT__SPATIAL__COMMON_MAP__APIKEY="" # API key goes here. + +# Theme configuration +CKAN__SITE_LOGO=NatCapLogo.jpg +CKAN__FEATURED_ORGS=natcap +CKAN__THEME=ckanext-natcap/NatcapPlugin + +# Enable tracking +CKAN__TRACKING_ENABLED=true + +# Disable anonymous user creation +CKAN__AUTH__CREATE_USER_VIA_WEB=false + +# Anon users cannot view user details +CKAN__AUTH__PUBLIC_USER_DETAILS=false + +# Add ckanext.scheming schemas here +CKAN___SCHEMING__DATASET_SCHEMAS="ckanext.natcap:natcap_dataset_schema.yml" \ No newline at end of file diff --git a/ckan/Dockerfile b/ckan/Dockerfile index 62c901a9..8fdf9c4e 100644 --- a/ckan/Dockerfile +++ b/ckan/Dockerfile @@ -19,6 +19,7 @@ ENV CKANEXT_SPATIAL_GIT_REVISION=938308469892e4bcf7389cb4adee5ccdd5a0ccca RUN apk add --no-cache geos geos-dev proj proj-dev proj-util RUN pip3 install -e git+https://github.com/ckan/ckanext-spatial.git@$CKANEXT_SPATIAL_GIT_REVISION#egg=ckanext-spatial && \ pip3 install -r https://raw.githubusercontent.com/ckan/ckanext-spatial/$CKANEXT_SPATIAL_GIT_REVISION/requirements.txt +RUN pip3 install -e 'git+https://github.com/ckan/ckanext-scheming.git@3af6056bbe16c3f8c6257f18cb2a0805370f85de#egg=ckanext-scheming' # NOTE: requires that the build context includes ./src/ COPY ./src/ckanext-natcap /tmp/ckanext-natcap