ckan / ckan-docker

Scripts and images to run CKAN using Docker Compose
82 stars 160 forks source link

DCAT plugin #154

Open NicoLaval opened 3 weeks ago

NicoLaval commented 3 weeks ago

As describe in the ckan/Dockerfile.dev, I added the following lines to Dockerfile, and run docker compose build

RUN  pip3 install -e git+https://github.com/ckan/ckanext-dcat.git@v0.0.6#egg=ckanext-dcat && \
     pip3 install -r https://raw.githubusercontent.com/ckan/ckanext-dcat/v0.0.6/requirements.txt

After that, I updated .env file, adding dcat to ckan plugins properties.

When I run docker compose up, I obtain the following error:

ckan.plugins.core.PluginNotFoundException: dcat

Any idea? Do I need to add a setup to ckan/docker-entrypoint.d?

amercader commented 2 weeks ago

If you have modified the ckan/Dockerfile.dev file you need to use the docker-compose.dev.yml file:

docker compose -f docker-compose.dev.yml build

docker compose -f docker-compose.dev.yml up

Otherwise you are using the defafult docker-compose.yml file that points to ckan/Dockerfile.

If you are indeed using the Dockerfile file, have you removed any previous containers after building?

docker compose build
docker compose rm ckan
docker compose up
NicoLaval commented 2 weeks ago

Hi. Thanks for your reponse. I don’t rm ckan, I was thinking re-build was enough. I will try soon (back on my laptop in 2 days). I will inform you.

NicoLaval commented 2 weeks ago

After rm, same error :(

dev-rke commented 1 week ago

envvars plugin has to be the last plugin to be loaded, so it has to be the last item on the list. Maybe that might cause also your issue. Personally i put these envvars directly into the Dockerfile, as i want to deliver a preconfigured container.