This is an automated email from the ASF dual-hosted git repository.
adutra pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/polaris.git
The following commit(s) were added to refs/heads/main by this push:
new b1f7eed67 Fix Keycloak getting-started example (#2349)
b1f7eed67 is described below
commit b1f7eed678c7120ad1171b0b2bb305b87b85e028
Author: Alexandre Dutra <[email protected]>
AuthorDate: Thu Aug 14 14:51:43 2025 +0200
Fix Keycloak getting-started example (#2349)
The `polaris-setup` container was erroneously including a non-existent
scope when fetching a token from Keycloak.
---
getting-started/keycloak/docker-compose.yml | 17 ++++++++++-------
1 file changed, 10 insertions(+), 7 deletions(-)
diff --git a/getting-started/keycloak/docker-compose.yml
b/getting-started/keycloak/docker-compose.yml
index 2607af904..0d65de510 100644
--- a/getting-started/keycloak/docker-compose.yml
+++ b/getting-started/keycloak/docker-compose.yml
@@ -67,13 +67,16 @@ services:
- CLIENT_SECRET=s3cr3t
volumes:
- ../assets/polaris/:/polaris
- entrypoint: |
- /bin/sh -c "apk add --no-cache jq && \
- chmod +x /polaris/create-catalog.sh && \
- token=$$(curl
http://keycloak:8080/realms/iceberg/protocol/openid-connect/token --user
client1:s3cr3t -d 'grant_type=client_credentials' -d 'scope=catalog' | jq -r
.access_token) && \
- /polaris/create-catalog.sh realm-internal && \
- /polaris/create-catalog.sh realm-external $$token && \
- /polaris/create-catalog.sh realm-mixed $$token"
+ entrypoint: "/bin/sh"
+ command:
+ - "-c"
+ - >-
+ apk add --no-cache jq &&
+ chmod +x /polaris/create-catalog.sh &&
+ token=$$(curl
http://keycloak:8080/realms/iceberg/protocol/openid-connect/token --user
client1:s3cr3t -d 'grant_type=client_credentials' | jq -r .access_token) &&
+ /polaris/create-catalog.sh realm-internal &&
+ /polaris/create-catalog.sh realm-external $$token &&
+ /polaris/create-catalog.sh realm-mixed $$token
keycloak:
image: quay.io/keycloak/keycloak:26.3.2