You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You will also need your git configuration to be accessible to your user, located by default at ~/.gitconfig. This will be attached to the Docker container so that the build scripts can pull the repositories.
If using WSL2, you will need to have this config set up inside of WSL2 for your WSL2 user.
Pre-Build
Makemkdir nginx postgres redis solr ckan
Copycp .env_example .env
ChangeUSER_ID in .env to your local uid
ChangeGROUP_ID in .env to your local gid
Copycp registry_example.ini registry.ini
Copycp registry_example.ini registry_test.ini
Changeckanext.cloudstorage.container_name in registry.ini and registry_test.ini value to <your user name>-dev
Changeckanext.cloudstorage.driver_options in registry.ini and registry_test.ini secret value to the secret key for opencanadastaging
Changesqlalchemy.url, ckan.datastore.write_url, ckan.datastore.read_url, ckanext.xloader.jobs_db.uri in registry_test.ini to the test databases(__test)
Build
Build the container: docker-compose build
The initial build will take a long time.
If you are rebuilding and receive errors such as max depth exceeded, you may need to destroy all of the docker images (docker image prune -a) and then run the above build command. Please note that this will also destroy any other docker images you have on your machine.
If your build fails with errors regarding failure of resolving domains, restart your docker service (sudo service docker restart).
Bring up the app and detach the shell: docker-compose up -d to make sure that all the containers can start correctly.
The initial up may take a long time.
To stop all the containers: docker-compose down
Installation
Databases
Bring up the CKAN Registry docker container: docker-compose up -d ckan-devm
Run the install script in the docker container: docker-compose exec ckan-devm ./fix-databases.sh
CKAN
Bring up the CKAN Registry docker container: docker-compose up -d ckan-devm
Run the install script in the docker container: docker-compose exec ckan-devm ./install-ckan.sh
Usage
CKAN
Bring up the CKAN Registry docker container: docker-compose up -d ckan-devm