ckanext-datagovuk
The CKAN extension for data.gov.uk
Features
- Configures Sentry automatically using a
SENTRY_DSN environment variable.
Running CKAN and Find locally
To run a development version of Find locally you will need to build the development image locally which will allow you to made modifications to the code directly on the docker container
- On the datagovuk_find root directory run
make dev-build after making code updates and passing tests.
- Check that the image is available by running
docker images | grep dev.datagovuk_find, if it’s not showing then the build in the first step failed or the image is no longer available.
- If you run bootstrap then you can skip this step otherwise run
make bootstrap to download the latest repositories
- NOTE - make sure that the
SRC_DIR matches the source version in the docker-compose file.
- In the ckanext-datagovuk root directory run
make build to build the images needed for the docker stack
- once the build is complete you can refer to the image of the docker build by uncommenting the image and comment out the build part of each stack.
- After the build is complete run
make run to start the docker compose stack.
- after a few minutes it should be possible to access the different web apps and the search server
- CKAN - Publishing app - http://localhost:5001
- Find - Public facing discovery app - http://localhost:4001
- Solr - Search index server used by CKAN and Find - http://localhost:8983/solr
Development
Using the Makefile
Run make run to start up the docker compose stack
- access CKAN on http://localhost:5001
- access Find on http://localhost:4001
Run make test to just run the tests
Running commands on the docker compose stack
It is easier to run things on the docker compose stack and get integrations with the different services rather than installing all the services on your machine.
- Exec on to the ckan container by running `d