Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Quick Setup

Sol Lee edited this page Sep 10, 2025 · 11 revisions

Install Docker

Install Docker by following the following instructions: Install Docker Engine on Ubuntu

To verify a successful Docker installation, run docker run hello-world and docker version. These commands should output versions for client and server.

Build the ckan-base image

$ git clone https://github.com/depositar/ckan-docker-base.git
$ cd ckan-docker-base
$ ./build.sh build depositar base
$ cd ..

Build the ckan-solr image

$ git clone https://github.com/depositar/ckan-solr.git
$ docker build -t depositar/ckan-solr -f ckan-solr/solr-8/Dockerfile.spatial ckan-solr/solr-8

(Optional) Create DKIM keys for the production site (prod-* branch):

$ sudo apt update && sudo apt install opendkim-tools
$ opendkim-genkey -b 2048 -h rsa-sha256 -r -v --subdomains -s mail -d <domain>
$ sed -i 's/h=rsa-sha256/h=sha256/' mail.txt
$ sudo mv mail.private postfix/dkim-keys/<domain>.private

Add the created mail.txt file to your DNS records.

PS. Also add the SPF record to your DNS records.

Build the depositar service

$ git clone https://github.com/depositar/depositar-docker.git
$ cd depositar-docker
$ cp .env.example .env # for the production site, edit the `CERTBOT_EMAIL` in the `.env`.
$ docker compose build
$ docker compose up

The depositar should be running at https://localhost:8443 (please ignore certificate warnings).

There is a sysadmin user: ckan_admin (PW: test1234) by default.

Tear down the depositar service

$ docker compose down -v

(use -v to delete the named volumes)