Merge branch 'ckan-master' into ckan-2.9.11
This commit is contained in:
commit
cbdf78e3f2
|
@ -204,6 +204,7 @@ To start the containers:
|
||||||
docker compose -f docker-compose.dev.yml up
|
docker compose -f docker-compose.dev.yml up
|
||||||
|
|
||||||
See [CKAN images](#5-ckan-images) for more details of what happens when using development mode.
|
See [CKAN images](#5-ckan-images) for more details of what happens when using development mode.
|
||||||
|
See [CKAN images](#5-ckan-images) for more details of what happens when using development mode.
|
||||||
|
|
||||||
#### Create an extension
|
#### Create an extension
|
||||||
You can use the ckan [extension](https://docs.ckan.org/en/latest/extensions/tutorial.html#creating-a-new-extension) instructions to create a CKAN extension, only executing the command inside the CKAN container and setting the mounted `src/` folder as output:
|
You can use the ckan [extension](https://docs.ckan.org/en/latest/extensions/tutorial.html#creating-a-new-extension) instructions to create a CKAN extension, only executing the command inside the CKAN container and setting the mounted `src/` folder as output:
|
||||||
|
@ -215,19 +216,24 @@ You can use the ckan [extension](https://docs.ckan.org/en/latest/extensions/tuto
|
||||||
|
|
||||||
The new extension files and directories are created in the `/srv/app/src_extensions/` folder in the running container. They will also exist in the local src/ directory as local `/src` directory is mounted as `/srv/app/src_extensions/` on the ckan container. You might need to change the owner of its folder to have the appropiate permissions.
|
The new extension files and directories are created in the `/srv/app/src_extensions/` folder in the running container. They will also exist in the local src/ directory as local `/src` directory is mounted as `/srv/app/src_extensions/` on the ckan container. You might need to change the owner of its folder to have the appropiate permissions.
|
||||||
|
|
||||||
|
#### Running HTTPS on development mode
|
||||||
#### Running HTTPS on development mode
|
#### Running HTTPS on development mode
|
||||||
|
|
||||||
Sometimes is useful to run your local development instance under HTTPS, for instance if you are using authentication extensions like [ckanext-saml2auth](https://github.com/keitaroinc/ckanext-saml2auth). To enable it, set the following in your `.env` file:
|
Sometimes is useful to run your local development instance under HTTPS, for instance if you are using authentication extensions like [ckanext-saml2auth](https://github.com/keitaroinc/ckanext-saml2auth). To enable it, set the following in your `.env` file:
|
||||||
|
|
||||||
|
```
|
||||||
```
|
```
|
||||||
USE_HTTPS_FOR_DEV=true
|
USE_HTTPS_FOR_DEV=true
|
||||||
```
|
```
|
||||||
|
```
|
||||||
|
|
||||||
and update the site URL setting:
|
and update the site URL setting:
|
||||||
|
|
||||||
|
```
|
||||||
```
|
```
|
||||||
CKAN_SITE_URL=https://localhost:5000
|
CKAN_SITE_URL=https://localhost:5000
|
||||||
```
|
```
|
||||||
|
```
|
||||||
|
|
||||||
After recreating the `ckan-dev` container, you should be able to access CKAN at https://localhost:5000
|
After recreating the `ckan-dev` container, you should be able to access CKAN at https://localhost:5000
|
||||||
|
|
||||||
|
|
|
@ -4,6 +4,7 @@ volumes:
|
||||||
pg_data:
|
pg_data:
|
||||||
solr_data:
|
solr_data:
|
||||||
|
|
||||||
|
|
||||||
services:
|
services:
|
||||||
nginx:
|
nginx:
|
||||||
build:
|
build:
|
||||||
|
@ -14,8 +15,8 @@ services:
|
||||||
logging:
|
logging:
|
||||||
driver: "json-file"
|
driver: "json-file"
|
||||||
options:
|
options:
|
||||||
max-size: "100m"
|
max-size: "100m"
|
||||||
max-file: "10"
|
max-file: "10"
|
||||||
networks:
|
networks:
|
||||||
- webnet
|
- webnet
|
||||||
- ckannet
|
- ckannet
|
||||||
|
@ -24,7 +25,7 @@ services:
|
||||||
ports:
|
ports:
|
||||||
- "0.0.0.0:${NGINX_PORT_HOST}:${NGINX_PORT}"
|
- "0.0.0.0:${NGINX_PORT_HOST}:${NGINX_PORT}"
|
||||||
- "0.0.0.0:${NGINX_SSLPORT_HOST}:${NGINX_SSLPORT}"
|
- "0.0.0.0:${NGINX_SSLPORT_HOST}:${NGINX_SSLPORT}"
|
||||||
|
|
||||||
ckan:
|
ckan:
|
||||||
build:
|
build:
|
||||||
context: ckan/
|
context: ckan/
|
||||||
|
@ -41,8 +42,8 @@ services:
|
||||||
logging:
|
logging:
|
||||||
driver: "json-file"
|
driver: "json-file"
|
||||||
options:
|
options:
|
||||||
max-size: "100m"
|
max-size: "100m"
|
||||||
max-file: "10"
|
max-file: "10"
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
- solr
|
- solr
|
||||||
|
@ -53,7 +54,14 @@ services:
|
||||||
- /usr/lib/python3.9/site-packages
|
- /usr/lib/python3.9/site-packages
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "wget", "-qO", "/dev/null", "http://localhost:${CKAN_PORT}"]
|
test:
|
||||||
|
[
|
||||||
|
"CMD",
|
||||||
|
"wget",
|
||||||
|
"-qO",
|
||||||
|
"/dev/null",
|
||||||
|
"http://localhost:${CKAN_PORT}"
|
||||||
|
]
|
||||||
|
|
||||||
pycsw:
|
pycsw:
|
||||||
build:
|
build:
|
||||||
|
@ -64,12 +72,19 @@ services:
|
||||||
logging:
|
logging:
|
||||||
driver: "json-file"
|
driver: "json-file"
|
||||||
options:
|
options:
|
||||||
max-size: "100m"
|
max-size: "100m"
|
||||||
max-file: "10"
|
max-file: "10"
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "wget", "-qO", "/dev/null", "http://localhost:5000"]
|
test:
|
||||||
|
[
|
||||||
|
"CMD",
|
||||||
|
"wget",
|
||||||
|
"-qO",
|
||||||
|
"/dev/null",
|
||||||
|
"http://localhost:5000"
|
||||||
|
]
|
||||||
|
|
||||||
db:
|
db:
|
||||||
build:
|
build:
|
||||||
context: postgresql/
|
context: postgresql/
|
||||||
|
@ -90,12 +105,20 @@ services:
|
||||||
logging:
|
logging:
|
||||||
driver: "json-file"
|
driver: "json-file"
|
||||||
options:
|
options:
|
||||||
max-size: "100m"
|
max-size: "100m"
|
||||||
max-file: "10"
|
max-file: "10"
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "pg_isready", "-U", "${POSTGRES_USER}", "-d", "${POSTGRES_DB}"]
|
test:
|
||||||
|
[
|
||||||
|
"CMD",
|
||||||
|
"pg_isready",
|
||||||
|
"-U",
|
||||||
|
"${POSTGRES_USER}",
|
||||||
|
"-d",
|
||||||
|
"${POSTGRES_DB}"
|
||||||
|
]
|
||||||
|
|
||||||
solr:
|
solr:
|
||||||
build:
|
build:
|
||||||
context: solr/
|
context: solr/
|
||||||
|
@ -107,27 +130,34 @@ services:
|
||||||
logging:
|
logging:
|
||||||
driver: "json-file"
|
driver: "json-file"
|
||||||
options:
|
options:
|
||||||
max-size: "100m"
|
max-size: "100m"
|
||||||
max-file: "10"
|
max-file: "10"
|
||||||
volumes:
|
volumes:
|
||||||
- solr_data:/var/solr
|
- solr_data:/var/solr
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "wget", "-qO", "/dev/null", "http://localhost:${SOLR_PORT}/solr/"]
|
test:
|
||||||
|
[
|
||||||
|
"CMD",
|
||||||
|
"wget",
|
||||||
|
"-qO",
|
||||||
|
"/dev/null",
|
||||||
|
"http://localhost:${SOLR_PORT}/solr/"
|
||||||
|
]
|
||||||
|
|
||||||
redis:
|
redis:
|
||||||
image: redis:${REDIS_VERSION}
|
image: redis:${REDIS_VERSION}
|
||||||
logging:
|
logging:
|
||||||
driver: "json-file"
|
driver: "json-file"
|
||||||
options:
|
options:
|
||||||
max-size: "100m"
|
max-size: "100m"
|
||||||
max-file: "10"
|
max-file: "10"
|
||||||
networks:
|
networks:
|
||||||
- redisnet
|
- redisnet
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "redis-cli", "-e", "QUIT"]
|
test: [ "CMD", "redis-cli", "-e", "QUIT" ]
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
webnet:
|
webnet:
|
||||||
ckannet:
|
ckannet:
|
||||||
|
|
Loading…
Reference in New Issue