small updates for the README

This commit is contained in:
Ian Ward 2025-01-07 17:28:46 -05:00
parent 7f58627864
commit c42f381671

View File

@ -105,7 +105,7 @@ dev script | description
`bin/generate_extension` | generate extension in `src` directory
`bin/install_src` | install all extensions from `src` directory (ckan-dev does not need to be running)
`bin/reload` | reload ckan within the ckan-dev container without restarting
`bin/restart` | shut down and restart the whole ckan-dev container (loads new values from .env)
`bin/restart` | shut down and restart the whole ckan-dev container (use `bin/compose up -d` instead to reload new values from .env)
`bin/shell` | exec bash prompt within the ckan-dev container
To build the images:
@ -333,19 +333,18 @@ For convenience the CKAN_SITE_URL parameter should be set in the .env file. For
1. Create a new user from the Docker host, for example to create a new user called 'admin'
`docker exec -it <container-id> ckan -c ckan.ini user add admin email=admin@localhost`
`docker compose exec ckan ckan user add admin email=admin@localhost`
To set this user as a sysadmin run
`docker compose exec ckan ckan sysadmin add admin`
To delete the 'admin' user
`docker exec -it <container-id> ckan -c ckan.ini user remove admin`
`docker compose exec ckan ckan user remove admin`
2. Create a new user from within the ckan container. You will need to get a session on the running container
In development mode use `bin/ckan` instead of `docker compose exec ckan ckan` for the above commands.
`ckan -c ckan.ini user add admin email=admin@localhost`
To delete the 'admin' user
`ckan -c ckan.ini user remove admin`
## 12. Changing the base image