Skip to content

Commit

Permalink
Update model file env vars template to ${env-var} (#6)
Browse files Browse the repository at this point in the history
* update model file env vars template to var

* update docker image to v1.0.14 of calcite

---------

Co-authored-by: py <pranshi.hasura.io>
  • Loading branch information
pranshi06 authored Jan 22, 2025
1 parent 79d7ef0 commit d7333ed
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
packagingDefinition:
type: PrebuiltDockerImage
dockerImage: ghcr.io/hasura/ndc-calcite:latest
dockerImage: ghcr.io/hasura/ndc-calcite:v1.0.14
supportedEnvironmentVariables:
- name: CASSANDRA_HOST
description: Cassandra Host
Expand Down Expand Up @@ -45,7 +45,7 @@ commands:
-e HASURA_PLUGIN_CONNECTOR_CONTEXT_PATH \
-v ${HASURA_PLUGIN_CONNECTOR_CONTEXT_PATH}:/etc/connector \
-v ${HASURA_PLUGIN_CONNECTOR_CONTEXT_PATH}:/app/output:rw \
ghcr.io/hasura/ndc-calcite:latest update
ghcr.io/hasura/ndc-calcite:v1.0.14 update
dockerComposeWatch:
- path: ./
target: /app/output
Expand Down
16 changes: 8 additions & 8 deletions connector-definition/model.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
"type": "custom",
"factory": "org.apache.calcite.adapter.cassandra.CassandraSchemaFactory",
"operand": {
"host": "{{CASSANDRA_HOST}}",
"keyspace": "{{CASSANDRA_KEYSPACE}}",
"username": "{{CASSANDRA_USERNAME}}",
"password": "{{CASSANDRA_PASSWORD}}",
"port": {{CASSANDRA_PORT}},
"ssl": {{CASSANDRA_SSL}},
"dc": "{{CASSANDRA_DC}}",
"pathToRootCert": "{{CASSANDRA_SSL_CA_PATH}}"
"host": "${CASSANDRA_HOST}",
"keyspace": "${CASSANDRA_KEYSPACE}",
"username": "${CASSANDRA_USERNAME}",
"password": "${CASSANDRA_PASSWORD}",
"port": ${CASSANDRA_PORT},
"ssl": ${CASSANDRA_SSL},
"dc": "${CASSANDRA_DC}",
"pathToRootCert": "${CASSANDRA_SSL_CA_PATH}"
}
}
]
Expand Down

0 comments on commit d7333ed

Please sign in to comment.