Skip to content

[Docker] pages initdb command defaults to DEFAULT_SOLR_URL #119

@roc

Description

@roc

Running pages initdb fails in our docker container as it attempts to connect to the DEFAULT_SOLR_URL as defined in ckan/lib/search/common.py:29. Passing in our production.ini does not appear to update the solr values.

Very naively I've tried these two initialisations and neither works:

RUN ckan -c ${APP_DIR}/production.ini pages initdb
# and then bluntly:
RUN CKAN_SOLR_URL=http://solr-headless:8983/solr ckan -c ${APP_DIR}/production.ini pages initdb

Is there something I'm missing, or is this the pages initdb method failing to appropriately use the config?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions