Docker image for City's data portal prototype.
Drawing heavily on these instructions, as well as the accompanying docker compose file.
Also, the work done by OpenUp on SA's National Treasury CKAN.
NB The below config is strictly for development purposes, and is horribly insecure.
Deploys everything to one host that needs Docker installed. On the plus side, very simple, on the minus, as reliable as that one host.
bash bin/run_ckan.sh
- see the script for the argsbash bin/rm_ckan.sh
Working notes on what has to be done to prepare this install for production deployment:
/tmp
.openssl req -x509 -newkey rsa:4096 -keyout ckan_key.pem -out ckan_cert.pem -days 3650 -nodes
).sudo certbot certonly --standalone -d <FQDN e.g. data.demo.com>
/etc/letsencrypt/live/<FQDN>/cert.pem
/etc/letsencrypt/live/<FQDN>/privkey.pem
443
to port 5000
(the one that CKAN is on). See config directory for example config.docker run -d --restart always -v <path to letsencrypt certs e.g. /etc/letsencrypt>:/etc/nginx/certs:z -v <Path to NGINX config>:/etc/nginx/conf.d/default.conf --network ckan --name ckan-proxy -p 443:443 -p 80:80 nginx
Deploys to a kubernetes cluster. Gives you the reliability guarantees of your k8s cluster, but has more moving parts.
bash bin/deploy.sh
- see the script for the argshttps://datascience.capetown.gov.za/ckan-test
ckan