Open ondics opened 1 year ago
The CKAN docs show how tio intergrate non standard licenses:
licenses_group_url = file:///path/to/my/local/json-list-of-licenses.json
In my Dockerfile I copied the license.json:
Dockerfile
# use non standard license definition COPY licenses.json /srv/app/licenses.json
How to define this config option in .env?
.env
I tried multiple versions but none of them worked:
CKAN_LICENSES_GROUP_URL=file:///srv/app/licenses.json CKAN__LICENSES_GROUP_URL=file:///srv/app/licenses.json CKAN_licenses_group_url=file:///srv/app/licenses.json CKAN__licenses_group_url=file:///srv/app/licenses.json licenses_group_url=file:///srv/app/licenses.json LICENSES_GROUP_URL=file:///srv/app/licenses.json
I ended up hacking the ckan.ini in the Dockerfile;
RUN sed -i 's,#licenses_group_url.*,licenses_group_url = file:///srv/app/licenses.json,g' /srv/app/ckan.ini
But that cannot be the clean solution. How to use .env for the license file?
The CKAN docs show how tio intergrate non standard licenses:
In my
Dockerfile
I copied the license.json:How to define this config option in
.env
?I tried multiple versions but none of them worked:
I ended up hacking the ckan.ini in the
Dockerfile
;But that cannot be the clean solution. How to use .env for the license file?