CKAN-docker Official Repo
But it’s a little too big 🙂 … 37 files changed with 1,266 additions and 115 deletions.
So we’ve decided to move the Docker, Fig & Vagrant stuff out of the main CKAN repo, which makes a lot of sense.
In the meantime I’ve officially become a member of the CKAN organisation on Github which is pretty cool!
Extracting the Docker stuff out got me thinking a lot, and I re-factored even more stuff.
I’ve come up with a radically different tree structure:
The point of this structure if that it should be easy to manage your entire project. This should be able to wrap everything you need in there, and package it.
I’ve also consolidated the various Dockerfiles I wrote for CKAN (default, custom & dev) into one 🙂
- all processes are managed by supervisor, which makes it easier to shut-down Apache in a development context, and use paster instead.
- Nginx now gone from the CKAN Dockerfile, and this service is now handled by another container as it should
- The requirement of being able to make live edits on the code for development is covered by mounting a volume as source directory, which overrides the data that was initially copied in the container. Pip requirements remain and I just have to re-install the packages automatically as part of the init process.
- I’ve added a lot of
ONBUILDtriggers that allow building children images for dev & prod, which covers what I was initially doing with my custom Dockerfile. -I’ve also extracted the datapusher from the CKAN config, into a separate container.
And there is more…