Skip to content

open-data/docker-og-pytest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker OG PyTest

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

Persisting Source Dependencies

  1. Run a container:

    docker run --name og-pytest -p 5001:5001 -d opendatacanada/ckan-pytest
    
  2. Copy the Solr data directory of the target core to your machine:

    docker cp og-pytest:/srv/app/src ./my_ckan_src
    
  3. Stop the container:

    docker stop og-pytest
    
  4. 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
    

Building for Committing to the Docker Hub

Your docker account will need to be part of the organization opendatacanada

  1. Log into the docker hub (this is only required once):

    docker login
    
  2. Build the image:

    docker build ./
    
  3. Run the new docker image with the hash from the end of the previous command output:

    docker run -d sha256:<image hash>
    
  4. Get the container ID:

    docker ps
    
  5. Commit the build:

    docker commit <container ID> opendatacanada/ckan-pytest
    
  6. Push the build to the docker hub:

    docker push opendatacanada/ckan-pytest
    

About

Docker image for the Open Government Portal Test Suite.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published