Skip to content

CKAN 2.12 images, image improvements#138

Merged
wardi merged 5 commits into
mainfrom
ckan-2.12
May 28, 2026
Merged

CKAN 2.12 images, image improvements#138
wardi merged 5 commits into
mainfrom
ckan-2.12

Conversation

@amercader

Copy link
Copy Markdown
Member
  • Use a builder stage to build the python requirements, copy them to the base image later
  • Consolidate file and ownership operations in single RUN commands to reduce the number of layers

This makes the images go down in size by ~40% for the base image

image 2.11 2.12
ckan-base 1.25 Gb 514 Mb
ckan-dev 1.33 Gb 1.01 Gb
  • Additionally, I dropped the granting of ownership to the whole /usr/local folder, and just granted it to the $APP_DIR

amercader added 3 commits May 12, 2026 21:43
* Use a builder stage to build the python requirements, copy them to the
  base image later
* Consolidate file and ownership operations in single RUN commands to
  reduce the number of layers

This makes the images go down by ~40% for the base image

| image     | 2.11    | 2.12    |
| --------- | ------- | ------- |
| ckan-base | 1.25 Gb | 514 Mb  |
| ckan-dev  | 1.33 Gb | 1.01 Gb |

Additionally, I dropped the granting of ownership to the whole
/usr/local folder, and just granted it to the $APP_DIR
@wardi wardi self-assigned this May 14, 2026
@amercader amercader marked this pull request as ready for review May 27, 2026 13:17
@amercader

Copy link
Copy Markdown
Member Author

@wardi I think this is in a good stage to leave it for now. I've pushed a ckan/ckan-dev:2.12 image based on this dockerfile so we can start testing extensions against 2.12 (eg here), and at the same time we can detect potential issues with the image itself.

@wardi wardi merged commit a820890 into main May 28, 2026
6 checks passed
@wardi wardi deleted the ckan-2.12 branch May 28, 2026 13:13
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

Successfully merging this pull request may close these issues.

2 participants