ckanr icon indicating copy to clipboard operation
ckanr copied to clipboard

CKAN for testing

Open sckott opened this issue 6 years ago • 4 comments

Try creating a single CKAN image with all parts needed, and put on docker hub, then be able to use that image in circle-ci or travis.

Following steps for installation https://docs.ckan.org/en/2.8/maintaining/installing/install-from-docker-compose.html

docker-compose with multiple images https://github.com/dbca-wa/wastd/blob/master/.circleci/config.yml

sckott avatar Oct 16 '19 18:10 sckott

CKAN docker-compose defines five Docker containers and their config: https://github.com/ckan/ckan/blob/master/contrib/docker/docker-compose.yml

Idea: Change wastd circleci to run the five CKAN Docker containers and ckanr tests

florianm avatar Oct 16 '19 18:10 florianm

This spins up nicely locally https://github.com/okfn/docker-ckan Maybe make the images locally, push up to my docker hub, then pull those for CI testing/checking

sckott avatar Oct 31 '20 01:10 sckott

Notes:

  • on branch ckan-on-gh-actions working on this
  • maybe use this https://github.com/peter-evans/docker-compose-actions-workflow
  • caching docker images https://github.com/marketplace/actions/docker-layer-caching
  • help on docker on gh actions https://github.community/t/how-to-use-docker-compose-with-github-actions/16850
  • repo im using https://github.com/okfn/docker-ckan

can't figure out how to ping the ckan instance - trying curl https://github.com/ropensci/ckanr/blob/ckan-on-gh-actions/.github/workflows/ckan-spin-up.yml#L21 but maybe the port is wrong, not sure

sckott avatar Nov 20 '20 16:11 sckott

Nice work! There's a GH action to add a live SSH terminal. That would be ideal to debug where CKAN might be running. Maybe GHA has some firewall settings to hide the open ports?

florianm avatar Nov 23 '20 02:11 florianm