Skip to content

Commit

Permalink
chore: convert db dump to SQL (plain text)
Browse files Browse the repository at this point in the history
`pg_restore -f dump.sql dump`

Also removed the init-db script which isn't necessary anymore (the sql dump
is automatically loaded)
  • Loading branch information
jahow committed Jan 24, 2025
1 parent 64dbcb3 commit 1fec4aa
Show file tree
Hide file tree
Showing 4 changed files with 7,999 additions and 5 deletions.
10 changes: 9 additions & 1 deletion support-services/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,14 @@ To clear the volumes and let the database repopulate itself from scratch, run:
$ docker compose down -v
```

## Specifying a different GeoNetwork version

By default, the version of GeoNetwork used as a backend is 4.2.2. You can specify another version like so:

```shell
$ GEONETWORK_VERSION=4.2.5 docker compose up -d
```

## Access services

GeoNetwork can be accessed on http://localhost:8080/geonetwork.
Expand All @@ -40,7 +48,7 @@ Kibana can be used to inspect the ElasticSearch index and experiment with reques
Running the following command will extract the current state of the database and store it as the new initial state:

```shell
$ docker compose exec database pg_dump -U geonetwork -d geonetwork -Fc > docker-entrypoint-initdb.d/dump
$ docker compose exec database pg_dump -U geonetwork -d geonetwork -Fp > docker-entrypoint-initdb.d/dump.sql
```

Please keep in mind that the initial state of the database should be as lightweight as possible and that changing it might break
Expand Down
Binary file removed support-services/docker-entrypoint-initdb.d/dump
Binary file not shown.
Loading

0 comments on commit 1fec4aa

Please sign in to comment.