From af5978e81a3ecdd33546ccd7b3aa9c0297c8cfd2 Mon Sep 17 00:00:00 2001 From: Ed Hillmann Date: Fri, 23 May 2025 08:52:07 +1000 Subject: [PATCH 1/2] Update path to docker compose file for postgres --- site/content/in-dev/unreleased/getting-started/quickstart.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/content/in-dev/unreleased/getting-started/quickstart.md b/site/content/in-dev/unreleased/getting-started/quickstart.md index e04f71cd73..9948464193 100644 --- a/site/content/in-dev/unreleased/getting-started/quickstart.md +++ b/site/content/in-dev/unreleased/getting-started/quickstart.md @@ -36,7 +36,7 @@ cd ~/polaris :polaris-quarkus-admin:assemble --rerun \ -Dquarkus.container-image.tag=postgres-latest \ -Dquarkus.container-image.build=true -docker compose -f getting-started/eclipselink/docker-compose-postgres.yml -f getting-started/eclipselink/docker-compose-bootstrap-db.yml -f getting-started/eclipselink/docker-compose.yml up +docker compose -f getting-started/assets/postgres/docker-compose-postgres.yml -f getting-started/eclipselink/docker-compose-bootstrap-db.yml -f getting-started/eclipselink/docker-compose.yml up ``` You should see output for some time as Polaris, Spark, and Trino build and start up. Eventually, you won’t see any more logs and see some logs relating to Spark, resembling the following: From d47bc68c8e388c56d98e68c1761f259e321995d7 Mon Sep 17 00:00:00 2001 From: Ed Hillmann Date: Fri, 23 May 2025 11:48:23 +1000 Subject: [PATCH 2/2] Updates to allow postgres to start and accept local connections --- getting-started/assets/postgres/docker-compose-postgres.yml | 5 ++++- getting-started/assets/postgres/pg_hba.conf | 2 ++ getting-started/eclipselink/docker-compose-bootstrap-db.yml | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 getting-started/assets/postgres/pg_hba.conf diff --git a/getting-started/assets/postgres/docker-compose-postgres.yml b/getting-started/assets/postgres/docker-compose-postgres.yml index 393f59fb6c..2db4d9a10e 100644 --- a/getting-started/assets/postgres/docker-compose-postgres.yml +++ b/getting-started/assets/postgres/docker-compose-postgres.yml @@ -32,8 +32,11 @@ services: volumes: # Bind local conf file to a convenient location in the container - type: bind - source: ../assets/postgres/postgresql.conf + source: postgresql.conf target: /etc/postgresql/postgresql.conf + - type: bind + source: pg_hba.conf + target: /etc/postgresql/pg_hba.conf command: - "postgres" - "-c" diff --git a/getting-started/assets/postgres/pg_hba.conf b/getting-started/assets/postgres/pg_hba.conf new file mode 100644 index 0000000000..fb5e8d1a2e --- /dev/null +++ b/getting-started/assets/postgres/pg_hba.conf @@ -0,0 +1,2 @@ +host all all all md5 +hostnossl all all all md5 \ No newline at end of file diff --git a/getting-started/eclipselink/docker-compose-bootstrap-db.yml b/getting-started/eclipselink/docker-compose-bootstrap-db.yml index 5861f59166..9ef67fafe3 100644 --- a/getting-started/eclipselink/docker-compose-bootstrap-db.yml +++ b/getting-started/eclipselink/docker-compose-bootstrap-db.yml @@ -25,7 +25,7 @@ services: polaris.persistence.type: eclipse-link polaris.persistence.eclipselink.configuration-file: /deployments/config/eclipselink/persistence.xml volumes: - - ../assets/eclipselink/:/deployments/config/eclipselink + - ../eclipselink/:/deployments/config/eclipselink command: - "bootstrap" - "--realm=POLARIS"