- WSL2 if using Windows
- Docker
- docker-compose
- Git
- 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.
- You will also need your git configuration to be accessible to your user, located by default at
- Make
mkdir nginx postgres redis solr ckan - Copy
cp .env_example .env - Change
USER_IDin .env to your local uid - Change
GROUP_IDin .env to your local gid - Copy
cp registry_example.ini registry.ini - Copy
cp registry_example.ini registry_test.ini - Change
ckanext.cloudstorage.container_namein registry.ini and registry_test.ini value to<your user name>-dev - Change
ckanext.cloudstorage.driver_optionsin registry.ini and registry_test.ini secret value to the secret key foropencanadastaging - Change
sqlalchemy.url,ckan.datastore.write_url,ckan.datastore.read_url,ckanext.xloader.jobs_db.uriin registry_test.ini to the test databases(__test)
- 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 -dto 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
- 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
- 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
- Bring up the CKAN Registry docker container:
docker-compose up -d ckan-devm - Open a browser into:
http://localhost:5009- Login here:
http://localhost:5009/en/user/login- Normal User:
- Username:
user_local - Password:
12345678
- Username:
- Sys Admin User:
- Username:
admin_local - Password:
12345678
- Username:
- Normal User:
- Login here: