{"id":19552133,"url":"https://github.com/ckan/ckan-docker-base","last_synced_at":"2025-04-26T20:31:32.700Z","repository":{"id":45392456,"uuid":"513079847","full_name":"ckan/ckan-docker-base","owner":"ckan","description":"Official Docker images for CKAN.","archived":false,"fork":false,"pushed_at":"2025-04-22T11:17:13.000Z","size":9229,"stargazers_count":25,"open_issues_count":29,"forks_count":32,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-04-22T12:28:06.997Z","etag":null,"topics":["ckan","ckanext","docker"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ckan.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-07-12T09:30:15.000Z","updated_at":"2025-04-22T11:17:17.000Z","dependencies_parsed_at":"2023-10-17T12:19:31.919Z","dependency_job_id":"72c56152-69c9-4750-8fac-c4e2be30b4b2","html_url":"https://github.com/ckan/ckan-docker-base","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ckan%2Fckan-docker-base","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ckan%2Fckan-docker-base/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ckan%2Fckan-docker-base/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ckan%2Fckan-docker-base/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ckan","download_url":"https://codeload.github.com/ckan/ckan-docker-base/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251051423,"owners_count":21528787,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ckan","ckanext","docker"],"created_at":"2024-11-11T04:16:58.957Z","updated_at":"2025-04-26T20:31:32.690Z","avatar_url":"https://github.com/ckan.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pre-configured CKAN Docker images\n\nThis is the repository of the official [Docker images](https://hub.docker.com/r/ckan/ckan-base/) for [CKAN](https://github.com/ckan/ckan/).\n\nPlease raise issues or code contributions at [github:ckan/ckan-docker-base](https://github.com/ckan/ckan-docker-base)\n\nThe images will usually be used as a Docker Compose install in conjunction with other Docker images that make up the CKAN platform. The official CKAN Docker install is located here: [ckan-docker](https://github.com/ckan/ckan-docker)\n\nThe following CKAN versions are available in base or dev forms. They are distinguished from one another using different Docker image tags:\n\n| CKAN Version | Type |  Base image | Docker tag | Notes |\n| --- | --- | --- | --- | --- |\n| **2.11.x** | **base image** | `python:3.10-slim-bookworm` | `ckan/ckan-base:2.11`, `ckan/ckan-base:2.11.2`, `ckan/ckan-base:2.11-py3.10`, `ckan/ckan-base:2.11.2-py3.10`          |  |\n| **2.11.x** | **dev image**  | `python:3.10-slim-bookworm` | `ckan/ckan-dev:2.11`, `ckan/ckan-dev:2.11.2`, `ckan/ckan-dev:2.11-py3.10`, `ckan/ckan-dev:2.11.2-py3.10`            |  |\n| 2.10.x | base image | `python:3.10-slim-bookworm` | `ckan/ckan-base:2.10-py3.10`, `ckan/ckan-base:2.10.7-py3.10` |  |\n| 2.10.x | dev image  | `python:3.10-slim-bookworm` | `ckan/ckan-dev:2.10-py3.10`, `ckan/ckan-dev:2.10.7-py3.10`   |  |\n| 2.10.x | base image | `alpine:3.17`               | `ckan/ckan-base:2.10.7`, `ckan/ckan-base:2.10`               | :warning: Deprecated. Please use a Python/Debian based image |\n| 2.10.x | dev image  | `alpine:3.17`               | `ckan/ckan-dev:2.10.7`, `ckan/ckan-dev:2.10`                 | :warning: Deprecated. Please use a Python/Debian based image |\n| 2.9.x  | base image | `python:3.9-slim-bookworm`  | `ckan/ckan-base:2.9-py3.9`, `ckan/ckan-base:2.9.11-py3.9`    |  |\n| 2.9.x  | dev image  | `python:3.9-slim-bookworm`  | `ckan/ckan-dev:2.9-py3.9`, `ckan/ckan-dev:2.9.11-py3.9`      |  |\n| 2.9.x  | base image | `alpine:3.15`               | `ckan/ckan-base:2.9.11`, `ckan/ckan-base:2.9`                | :warning: Deprecated. Please use a Python/Debian based image |\n| 2.9.x  | dev image  | `alpine:3.15`               | `ckan/ckan-dev:2.9.11`, `ckan/ckan-dev:2.9`                  | :warning: Deprecated. Please use a Python/Debian based image |\n| master | base image | `python:3.10-slim-bookworm` | `ckan/ckan-base:master`, `ckan/ckan-base:master-py3.10`      | Built daily, do not use in production |\n| master | dev image  | `python:3.10-slim-bookworm` | `ckan/ckan-dev:master`, `ckan/ckan-dev:master-py3.10`        | Built daily, do not use in production |\n\nIn addition to the Docker tags listed above, there are additional ones published for each of these images [releases](https://github.com/ckan/ckan-docker-base/releases), in the form:\n\n  ckan/ckan-base:{major_version}-py{python_version}-{release_name}\n\n\nOlder CKAN versions might be available as [image tags](https://hub.docker.com/r/ckan/ckan-base/tags) but note that these are not supported as per [CKAN's release policy](https://docs.ckan.org/en/latest/maintaining/releases.html#supported-versions).\n\n\n### Repo structure\n\nEach CKAN version is located in separate repo containing:\n\n```\nckan-X.XX\n├── Dockerfile          # Dockerfile for the image (in older versions there might be one for alpine and one for python)\n├── VERSION.txt         # Full CKAN version built (eg. 2.11.2, 2.10.7)\n├── PYTHON_VERSION.txt  # Python version used (eg. 3.10)\n└── setup               # Setup scripts used by the images\n    ├── prerun.py\n    ├── start_ckan_development.sh\n    ├── start_ckan.sh\n    ├── unsafe.cert\n    └── unsafe.key\n\n```\n\n### Release\n\nImages are built and pushed to the Docker Hub after a new [release](https://github.com/ckan/ckan-docker-base/releases)\nis published.\nAll non-trivial changes to this repo (certainly those which affect the images) should be\ndone via a Pull Request. This will trigger automated tests that check that the image\nbuilds fine and perform some basic tests, but more thorough local testing might be necessary.\n\nOnce the maintainers decide it's time to do a new release, changes should be documented as\npart of the release notes. Publishing the new release will trigger the actions that push\nthe images to Docker Hub.\n\n\n### Building the images locally\n\nThe images can be built locally for development and debugging purposes\n\n\u003e [!WARNING]\n\u003e Do not push images directly to the Docker Hub locally. Use the proper release process described\n\u003e above.\n\nAll operations are done using the `build.sh` script located at the root of the repository.\n\n```\nUsage: ./build.sh \u003caction\u003e [\u003cparams\u003e]\nAvailable actions:\n  versions                                - Shows the current CKAN versions used\n  build \u003cversion\u003e [base|dev] [py version] - Builds images for a CKAN version\n                                          - Pass 'base' or 'dev' to just build these.\n                                          - Optionally specify a Python version.\n  push  \u003cversion\u003e                         - Pushes images to the Docker Hub\n\n```\nIn the absence of a specified Python version, the version defined in PYTHON_VERSION.txt \nwill be used as the default\n\nFor instance:\n\n```\n./build.sh build 2.11\n./build.sh build master\n./build.sh build 2.11\n./build.sh build 2.10 base\n./build.sh build 2.9 dev\n./build.sh build 2.11 3.11\n./build.sh build 2.9 3.10\n./build.sh build 2.11 base 3.11\n./build.sh build 2.10 dev 3.10\n```\n\n### Building the images directly\n\nOf course the images can be built directly\n\nFor instance:\n\n```\ndocker build --build-arg=ENV=base --build-arg=CKAN_REF=ckan-2.11.2 --build-arg=PYTHON_VERSION=3.11 -t ckan/ckan-base:2.11.2 -t ckan/ckan-base:2.11 -t ckan/ckan-base:2.11.2-py3.11 -t ckan/ckan-base:2.11-py3.11 ckan-2.11\n\ndocker build --build-arg=ENV=base --build-arg=CKAN_REF=master --build-arg=PYTHON_VERSION=3.10 -t ckan/ckan-base:master -t ckan/ckan-base:master -t ckan/ckan-base:master-py3.10 -t ckan/ckan-base:master-py3.10 ckan-master\n\ndocker build --build-arg=ENV=dev --build-arg=CKAN_REF=ckan-2.9.11 -t ckan/ckan-dev:2.9.11-py3.9 -t ckan/ckan-dev:2.9-py3.9 -f ckan-2.9/Dockerfile.py3.9 ckan-2.9\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fckan%2Fckan-docker-base","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fckan%2Fckan-docker-base","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fckan%2Fckan-docker-base/lists"}