Skip to content

Commit

Permalink
Copying changes over to .env-example and Dockerfile from the .dev equ…
Browse files Browse the repository at this point in the history
…ivalents. RE:#32
  • Loading branch information
phargogh committed Mar 6, 2024
1 parent 133b006 commit 875ab04
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
24 changes: 23 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -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"
1 change: 1 addition & 0 deletions ckan/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 875ab04

Please sign in to comment.