Pre-configured CKAN Dev Install Docker image for Open Government Portal Test Suite.
Docker Image: https://hub.docker.com/r/opendatacanada/ckan-pytest
docker run --name og-pytest -p 5001:5001 -d opendatacanada/ckan-pytest
The following versions are available as different image tags:
| CKAN version | Docker tag |
|---|---|
| CKAN 2.10.7 | opendatacanada/ckan-pytest |
-
Run a container:
docker run --name og-pytest -p 5001:5001 -d opendatacanada/ckan-pytest -
Copy the Solr data directory of the target core to your machine:
docker cp og-pytest:/srv/app/src ./my_ckan_src -
Stop the container:
docker stop og-pytest -
Run the container with a bind mount:
docker run --name og-pytest -p 5001:5001 --mount type=bind,source="$(pwd)"/my_ckan_src,target=/srv/app/src -d opendatacanada/ckan-pytest
Your docker account will need to be part of the organization opendatacanada
-
Log into the docker hub (this is only required once):
docker login -
Build the image:
docker build ./ -
Run the new docker image with the hash from the end of the previous command output:
docker run -d sha256:<image hash> -
Get the container ID:
docker ps -
Commit the build:
docker commit <container ID> opendatacanada/ckan-pytest -
Push the build to the docker hub:
docker push opendatacanada/ckan-pytest