Update README.md

This commit is contained in:
Brett Jones 2023-07-25 08:49:17 +02:00 committed by GitHub
parent da7caf0020
commit 7fb7ce3a1a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 5 deletions

View File

@ -237,9 +237,9 @@ For more information please see [ckanext-envvars](https://github.com/okfn/ckanex
For convenience the CKAN_SITE_URL parameter should be set in the .env file. For development it can be set to http://localhost:5000 and non-development set to https://localhost:8443 For convenience the CKAN_SITE_URL parameter should be set in the .env file. For development it can be set to http://localhost:5000 and non-development set to https://localhost:8443
## 13. Create and Manager users ## 13. Manage new users
1. Create a user on host, For example to create a new user called 'admin' 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 exec -it <container-id> ckan -c ckan.ini user add admin email=admin@localhost`
@ -247,7 +247,7 @@ For convenience the CKAN_SITE_URL parameter should be set in the .env file. For
`docker exec -it <container-id> ckan -c ckan.ini user remove admin` `docker exec -it <container-id> ckan -c ckan.ini user remove admin`
2. Create a user within the ckan container, For example to create a new user called 'admin' 2. Create a new user from within the ckan container. You will need to get a session on the running container
`ckan -c ckan.ini user add admin email=admin@localhost` `ckan -c ckan.ini user add admin email=admin@localhost`
@ -255,8 +255,6 @@ For convenience the CKAN_SITE_URL parameter should be set in the .env file. For
`ckan -c ckan.ini user remove admin` `ckan -c ckan.ini user remove admin`
3. Update one of the initialisation scripts eg: `start_ckan.sh` or `prerun.py`
## 14. Changing the base image ## 14. Changing the base image
The base image used in the CKAN Dockerfile and Dockerfile.dev can be changed so a different DockerHub image is used eg: ckan/ckan-base:2.9.9 The base image used in the CKAN Dockerfile and Dockerfile.dev can be changed so a different DockerHub image is used eg: ckan/ckan-base:2.9.9