Skip to content

Commit b1f7eed

Browse files
authored
Fix Keycloak getting-started example (#2349)
The `polaris-setup` container was erroneously including a non-existent scope when fetching a token from Keycloak.
1 parent 4c23eb7 commit b1f7eed

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

getting-started/keycloak/docker-compose.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,16 @@ services:
6767
- CLIENT_SECRET=s3cr3t
6868
volumes:
6969
- ../assets/polaris/:/polaris
70-
entrypoint: |
71-
/bin/sh -c "apk add --no-cache jq && \
72-
chmod +x /polaris/create-catalog.sh && \
73-
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) && \
74-
/polaris/create-catalog.sh realm-internal && \
75-
/polaris/create-catalog.sh realm-external $$token && \
76-
/polaris/create-catalog.sh realm-mixed $$token"
70+
entrypoint: "/bin/sh"
71+
command:
72+
- "-c"
73+
- >-
74+
apk add --no-cache jq &&
75+
chmod +x /polaris/create-catalog.sh &&
76+
token=$$(curl http://keycloak:8080/realms/iceberg/protocol/openid-connect/token --user client1:s3cr3t -d 'grant_type=client_credentials' | jq -r .access_token) &&
77+
/polaris/create-catalog.sh realm-internal &&
78+
/polaris/create-catalog.sh realm-external $$token &&
79+
/polaris/create-catalog.sh realm-mixed $$token
7780
7881
keycloak:
7982
image: quay.io/keycloak/keycloak:26.3.2

0 commit comments

Comments
 (0)