Run CKAN 2.9.1 in Docker
Older version is having issues with PIP, setuptools and eventually all the other packages which are eager to make themselves compatible with newer version of Python. To be specific, in Python 3.6 there is a infamous `f` prefix, it is handy and now everywhere in many packages. And all the lower versions of Python do NOT support it. In short, due to this error, lower versions of CKAN does not build (actually can docker-compose build, but will not run). We have to upgrade to 2.9.1 which supports both Python 3.6 and Python 2.7.
The journey starts here: `master` branch does not work, `tags/2.9.1` does not work either. Either Pylon issue or db is not command.
Below are the steps I took to make a working build.
- checkout `tags/2.9.1` branch
- apply fix in this commit Docker fix
- create admin user command changed to
ckan -c /etc/ckan/production.ini sysadmin add ckan_admin email=seanh@localhost name=ckan_admin
- Now you are good to go.