{"id":18818934,"url":"https://github.com/geoscienceaustralia/geoscience-portal-geonetwork","last_synced_at":"2025-10-25T12:18:11.849Z","repository":{"id":86189504,"uuid":"41528037","full_name":"GeoscienceAustralia/geoscience-portal-geonetwork","owner":"GeoscienceAustralia","description":"Geonetwork configured to use Postgres","archived":false,"fork":false,"pushed_at":"2024-10-18T01:14:46.000Z","size":183160,"stargazers_count":2,"open_issues_count":1,"forks_count":2,"subscribers_count":35,"default_branch":"master","last_synced_at":"2024-12-30T02:46:40.696Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"XSLT","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GeoscienceAustralia.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-08-28T04:58:17.000Z","updated_at":"2024-10-18T01:15:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"5542e6e1-117e-42b8-9ae7-0f201bc07d3b","html_url":"https://github.com/GeoscienceAustralia/geoscience-portal-geonetwork","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GeoscienceAustralia%2Fgeoscience-portal-geonetwork","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GeoscienceAustralia%2Fgeoscience-portal-geonetwork/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GeoscienceAustralia%2Fgeoscience-portal-geonetwork/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GeoscienceAustralia%2Fgeoscience-portal-geonetwork/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GeoscienceAustralia","download_url":"https://codeload.github.com/GeoscienceAustralia/geoscience-portal-geonetwork/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239753808,"owners_count":19691180,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-08T00:19:30.887Z","updated_at":"2025-10-25T12:18:11.758Z","avatar_url":"https://github.com/GeoscienceAustralia.png","language":"XSLT","funding_links":[],"categories":[],"sub_categories":[],"readme":"##Getting started with your local instance of GeoNetwork\n\n###Setting up Postgres\n\nMake sure you have Postgres installed and configured correctly.\n\nEdit the `src/main/resources/geonetwork-db.sql` and replace the variable `${password}` with your own dummy password (eg 'test').\n\nExecute the command:\n\n    psql -U postgres -f src/main/resources/geonetwork-db.sql\n\nThis will build the database that conatins the metadata records for you GeoNetwork instance.\n\n###Building the GeoNetwork instance\n\nEdit `src/main/webapp/WEB-INF/config-db/jdbc.properties`, replace the variable `${password}` with the dummy password you used for the database.\n\nRun `mvn install` then deploy the warfile to your local Tomcat container.\n\n###Making changes to the GeoNetwork configuration\n\nMost changes are made in the GeoNetwork web interface and these changes are persisted in the Postgres database. To deploy these changes, we need to dump the database. \n\n    pg_dump -U geonetwork -c -C  \u003e src/main/resources/geonetwork-db.sql\n\nThis will not create the `geonetwork` user required for deployment. It is added by the following command.\n\n    patch src/main/resources/geonetwork-db.sql \u003c src/main/resources/deploy.patch\n\n###Troubleshooting\n\nIf you are getting locale or encoding errors for you local Postgres database, edit the line that creates the `geonetwork` database. But ensure that when you commit the `geonetwork-db.sql` file your `CREATE DATABASE` statement matches:\n\n    CREATE DATABASE geonetwork WITH TEMPLATE = template0 ENCODING = 'UTF8' LC_COLLATE = 'C' LC_CTYPE = 'C';\n\nOtherwise it will not work on our EC2 instance.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeoscienceaustralia%2Fgeoscience-portal-geonetwork","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgeoscienceaustralia%2Fgeoscience-portal-geonetwork","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeoscienceaustralia%2Fgeoscience-portal-geonetwork/lists"}