CKAN for testing
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
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
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
Notes:
- on branch
ckan-on-gh-actionsworking 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
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?