Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to supply private license.json file? #120

Open
ondics opened this issue Apr 20, 2023 · 0 comments
Open

How to supply private license.json file? #120

ondics opened this issue Apr 20, 2023 · 0 comments

Comments

@ondics
Copy link

ondics commented Apr 20, 2023

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:

# use non standard license definition
COPY licenses.json /srv/app/licenses.json

How to define this config option in .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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant