Skip to content

Commit c43fdca

Browse files
committed
prepare for docx/pptx export
2 parents 5c8f3f4 + abfe321 commit c43fdca

File tree

3 files changed

+11
-17
lines changed

3 files changed

+11
-17
lines changed

docker/docker-compose.sqlite.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
services:
22

33
traefik:
4-
restart: always
54
image: "traefik:v3.1"
65
container_name: "traefik"
76
command:
@@ -17,7 +16,6 @@ services:
1716

1817

1918
mapserver:
20-
restart: always
2119
image: "camptocamp/mapserver:8.4"
2220
container_name: "mapserver"
2321
expose:
@@ -40,13 +38,12 @@ services:
4038
- "traefik.http.routers.mapserver.entrypoints=web"
4139

4240
pycsw:
43-
restart: always
44-
image: "ghcr.io/geopython/pycsw"
41+
image: "geopython/pycsw@sha256:2eb396798e40dfab3ad4cb839f30231b8c1023db148ed03ffcf3c4e6b388fc7c"
4542
container_name: "pycsw"
4643
volumes:
4744
- ./pycsw/pycsw.yml:/etc/pycsw/pycsw.yml
48-
- ./pycsw/templates/_base.html:/usr/local/lib/python3.10/site-packages/pycsw/ogc/api/templates/_base.html
49-
- ./pycsw/templates/landing_page.html:/usr/local/lib/python3.10/site-packages/pycsw/ogc/api/templates/landing_page.html
45+
- ./pycsw/templates/_base.html:/home/pycsw/pycsw/pycsw/templates/_base.html # to override layout
46+
- ./pycsw/templates/landing_page.html:/home/pycsw/pycsw/pycsw/templates/landing_page.html # to override layout
5047
- ./data:/srv/data
5148
environment:
5249
# Configuration for the catalogue, see the pycsw.yml file how these values are used

docker/docker-compose.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
services:
22

33
traefik:
4-
restart: always
5-
image: "traefik:v3.1"
4+
image: "traefik:v3.4.3"
65
container_name: "traefik"
76
command:
87
- "--log.level=DEBUG"
@@ -17,7 +16,6 @@ services:
1716

1817

1918
mapserver:
20-
restart: always
2119
image: "camptocamp/mapserver:8.4"
2220
container_name: "mapserver"
2321
expose:
@@ -36,6 +34,7 @@ services:
3634
- "traefik.http.middlewares.mapserver-strip-prefix.stripprefix.prefixes=/ows,/ows/"
3735
- "traefik.http.routers.mapserver.middlewares=mapserver-strip-prefix@docker"
3836
- "traefik.http.routers.mapserver.entrypoints=web"
37+
- "traefik.http.services.mapserver.loadbalancer.server.port=80"
3938

4039
pycsw:
4140
restart: always
@@ -63,9 +62,9 @@ services:
6362
- "traefik.enable=true"
6463
- "traefik.http.routers.pycsw.rule=Host(`${SDI_DOMAIN}`)"
6564
- "traefik.http.routers.pycsw.entrypoints=web"
65+
- "traefik.http.services.pycsw.loadbalancer.server.port=8000"
6666

6767
terria:
68-
restart: always
6968
image: "ghcr.io/terriajs/terriamap:0.4.2"
7069
container_name: "terria"
7170
volumes:
@@ -78,10 +77,9 @@ services:
7877
- "traefik.http.middlewares.terria-strip-prefix.stripprefix.prefixes=/map,/map/"
7978
- "traefik.http.routers.terria.middlewares=terria-strip-prefix@docker"
8079
- "traefik.http.routers.terria.entrypoints=web"
81-
80+
- "traefik.http.services.terria.loadbalancer.server.port=3001"
8281

8382
postgres:
84-
restart: always
8583
image: postgis/postgis:15-3.4-alpine
8684
container_name: "postgres"
8785
environment:

docs/3-catalogue-publication.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@ pycsw is available as Docker image at the [github container registry](https://do
3232
Pull and run the pycsw container locally using this command in a command line client (cmd, PowerShell, bash):
3333

3434
```bash
35-
docker pull ghcr.io/geopython/pycsw
36-
docker run -p 8000:8000 ghcr.io/geopython/pycsw
35+
docker run -p 8000:8000 geopython/pycsw
3736
```
3837

3938
Open your browser and browse to <http://localhost:8000> to see pycsw in action.
@@ -94,6 +93,7 @@ pycsw-admin.py delete-records -c /etc/pycsw/pycsw.yml
9493
```
9594

9695
### Docker
96+
9797
```bash
9898
docker exec -it pycsw bash -c "pycsw-admin.py delete-records -c /etc/pycsw/pycsw.yml"
9999
```
@@ -109,13 +109,12 @@ Use pycsw-admin.py to load the records into the catalogue database:
109109

110110
### Container terminal
111111
```bash
112-
pycsw-admin.py load-records -p /etc/data/export -c /etc/pycsw/pycsw.yml -y -r
112+
pycsw-admin.py load-records -p /srv/data/export -c /etc/pycsw/pycsw.yml -y -r
113113
```
114114

115115
# Docker
116116
```bash
117-
docker exec -it pycsw bash -c `
118-
"pycsw-admin.py load-records -p /etc/data/export -c /etc/pycsw/pycsw.yml -y -r"
117+
docker exec -it pycsw bash -c "pycsw-admin.py load-records -p /srv/data/export -c /etc/pycsw/pycsw.yml -y -r"
119118
```
120119

121120

0 commit comments

Comments
 (0)