Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

small updates for the README #204

Merged
merged 1 commit into from
Jan 9, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 7 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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 delete the 'admin' user
To set this user as a sysadmin run

`docker exec -it <container-id> ckan -c ckan.ini user remove admin`
`docker compose exec ckan ckan sysadmin add admin`

2. Create a new user from within the ckan container. You will need to get a session on the running container
To delete the 'admin' user

`ckan -c ckan.ini user add admin email=admin@localhost`
`docker compose exec ckan ckan user remove admin`

To delete the 'admin' user
In development mode use `bin/ckan` instead of `docker compose exec ckan ckan` for the above commands.

`ckan -c ckan.ini user remove admin`

## 12. Changing the base image

Expand Down
Loading