-
Notifications
You must be signed in to change notification settings - Fork 251
[HOTFIX] FIX QUICKSTART #1646
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[HOTFIX] FIX QUICKSTART #1646
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,18 +29,22 @@ services: | |
# Optional, allows attaching a debugger to the Polaris JVM | ||
- "5005:5005" | ||
environment: | ||
- JAVA_DEBUG=true | ||
- JAVA_DEBUG_PORT=*:5005 | ||
- POLARIS_PERSISTENCE_TYPE=relational-jdbc | ||
- POLARIS_PERSISTENCE_RELATIONAL_JDBC_MAX_RETRIES=5 | ||
- POLARIS_PERSISTENCE_RELATIONAL_JDBC_INITIAL_DELAY_IN_MS=100 | ||
- POLARIS_PERSISTENCE_RELATIONAL_JDBC_MAX_DELAY_IN_MS=5000 | ||
- QUARKUS_DATASOURCE_DB_KIND=pgsql | ||
- QUARKUS_DATASOURCE_JDBC_URL=${QUARKUS_DATASOURCE_JDBC_URL} | ||
- QUARKUS_DATASOURCE_USERNAME=${QUARKUS_DATASOURCE_USERNAME} | ||
- QUARKUS_DATASOURCE_PASSWORD=${QUARKUS_DATASOURCE_PASSWORD} | ||
- POLARIS_REALM_CONTEXT_REALMS=POLARIS | ||
- QUARKUS_OTEL_SDK_DISABLED=true | ||
JAVA_DEBUG: true | ||
JAVA_DEBUG_PORT: "*:5005" | ||
POLARIS_PERSISTENCE_TYPE: relational-jdbc | ||
POLARIS_PERSISTENCE_RELATIONAL_JDBC_MAX_RETRIES: 5 | ||
POLARIS_PERSISTENCE_RELATIONAL_JDBC_INITIAL_DELAY_IN_MS: 100 | ||
POLARIS_PERSISTENCE_RELATIONAL_JDBC_MAX_DELAY_IN_MS: 5000 | ||
QUARKUS_DATASOURCE_DB_KIND: pgsql | ||
QUARKUS_DATASOURCE_JDBC_URL: $QUARKUS_DATASOURCE_JDBC_URL | ||
QUARKUS_DATASOURCE_USERNAME: $QUARKUS_DATASOURCE_USERNAME | ||
QUARKUS_DATASOURCE_PASSWORD: $QUARKUS_DATASOURCE_PASSWORD | ||
singhpk234 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
POLARIS_REALM_CONTEXT_REALMS: POLARIS | ||
QUARKUS_OTEL_SDK_DISABLED: true | ||
POLARIS_BOOTSTRAP_CREDENTIALS: POLARIS,$CLIENT_ID,$CLIENT_SECRET | ||
polaris.features."ALLOW_INSECURE_STORAGE_TYPES": "true" | ||
polaris.features."SUPPORTED_CATALOG_STORAGE_TYPES": "[\"FILE\",\"S3\",\"GCS\",\"AZURE\"]" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For another pr: Maybe this should only be FILE and we have a built in error message for users trying to use any other storage type to come back and redo their config. Not a huge deal. Also we probably should not allow "ALLOW_INSECURE_STORAGE_TYPES" if an insecure storage type is not in supported storage types right? Also "ignore-severe-issues" probably shouldn't be allowed to be true unless a sever item has been selected. Just thoughts for future cleanups though There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ack, I allowlisted all as this same script also used with cloud providers,.
Sure thing ! let me take a deeper look in this as fast followup |
||
polaris.readiness.ignore-severe-issues: "true" | ||
healthcheck: | ||
test: ["CMD", "curl", "http://localhost:8182/q/health"] | ||
interval: 2s | ||
|
@@ -57,6 +61,8 @@ services: | |
- STORAGE_LOCATION=${STORAGE_LOCATION} | ||
- AWS_ROLE_ARN=${AWS_ROLE_ARN} | ||
- AZURE_TENANT_ID=${AZURE_TENANT_ID} | ||
- CLIENT_ID=${CLIENT_ID} | ||
- CLIENT_SECRET=${CLIENT_SECRET} | ||
volumes: | ||
- ../assets/polaris/:/polaris | ||
entrypoint: '/bin/sh -c "chmod +x /polaris/create-catalog.sh && /polaris/create-catalog.sh"' | ||
|
@@ -98,5 +104,8 @@ services: | |
tty: true | ||
ports: | ||
- "8080:8080" | ||
environment: | ||
- CLIENT_ID=${CLIENT_ID} | ||
- CLIENT_SECRET=${CLIENT_SECRET} | ||
volumes: | ||
- ../assets/trino-config/catalog:/etc/trino/catalog |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do any other docker-compose files need this fix? For example
getting-started/eclipselink/docker-compose.yml
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder why this format change is required even in this PR 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure this is required ... but i'm also not sure why the old version worked. Wouldn't the previous syntax have essentially been
LIST
[ "JAVA_DEBUG=true", "JAVA_DEBUG_PORT=*:5005", ...]
While this syntax is
OBJECT
{ JAVA_DEBUG => true, JAVA_DEBUG_PORT => *:5005 }
? YAML is always confusing to me
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-
is a list element in yaml. However, I looked at a couple docker-compose files in other projects and all have that-
. It's not just yaml - it's yaml+docker-compose-syntax.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Anyway - whatever works and not break stuff if fine for me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, we do, added that !
I tried the following syntax, with the new variables and aparently it didn't work for me, didn't debug it further and hence for consistency moved everything back to the format that worked :
same here, I am working on hit and trial basis here :), this worked and hence i moved, i can definetly take a deeper look !