Skip to content

Commit ea9c7c9

Browse files
authored
Re-instate dependencies between Docker Compose services (#1407)
1 parent 7018f65 commit ea9c7c9

File tree

4 files changed

+21
-3
lines changed

4 files changed

+21
-3
lines changed

getting-started/eclipselink/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ This example requires `jq` to be installed on your machine.
7171
7272
```shell
7373
curl -v http://127.0.0.1:8181/api/management/v1/principal-roles -H "Authorization: Bearer $POLARIS_TOKEN"
74-
curl -v http://127.0.0.1:8181/api/management/v1/catalogs/polaris_demo -H "Authorization: Bearer $POLARIS_TOKEN"
74+
curl -v http://127.0.0.1:8181/api/management/v1/catalogs/quickstart_catalog -H "Authorization: Bearer $POLARIS_TOKEN"
7575
```
7676
7777
6. Using Trino CLI: To access the Trino CLI, run this command:

getting-started/eclipselink/docker-compose-bootstrap-db.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,8 @@ services:
2929
command:
3030
- "bootstrap"
3131
- "--realm=POLARIS"
32-
- "--credential=POLARIS,root,s3cr3t"
32+
- "--credential=POLARIS,root,s3cr3t"
33+
polaris:
34+
depends_on:
35+
polaris-bootstrap:
36+
condition: service_completed_successfully

getting-started/eclipselink/docker-compose-postgres.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,12 @@ services:
4242
test: "pg_isready -U postgres"
4343
interval: 5s
4444
timeout: 2s
45-
retries: 15
45+
retries: 15
46+
polaris-bootstrap:
47+
depends_on:
48+
postgres:
49+
condition: service_healthy
50+
polaris:
51+
depends_on:
52+
postgres:
53+
condition: service_healthy

getting-started/eclipselink/docker-compose.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ services:
5656

5757
spark-sql:
5858
image: apache/spark:3.5.5-java17-python3
59+
depends_on:
60+
polaris-setup:
61+
condition: service_completed_successfully
5962
stdin_open: true
6063
tty: true
6164
ports:
@@ -81,6 +84,9 @@ services:
8184

8285
trino:
8386
image: trinodb/trino:latest
87+
depends_on:
88+
polaris-setup:
89+
condition: service_completed_successfully
8490
stdin_open: true
8591
tty: true
8692
ports:

0 commit comments

Comments
 (0)