-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
180f013
commit 720a1c0
Showing
9 changed files
with
720 additions
and
799 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,26 @@ | ||
FROM registry.access.redhat.com/ubi9/openjdk-17:1.18-4 | ||
# Build stage | ||
FROM registry.access.redhat.com/ubi9/openjdk-21:1.20-2 AS build | ||
|
||
ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' | ||
|
||
WORKDIR /app | ||
COPY . /app | ||
WORKDIR /build | ||
COPY . /build | ||
|
||
# Run Gradle build | ||
USER root | ||
RUN ./gradlew :ndc-cli:installDist --no-daemon --console=plain -x test | ||
|
||
ENTRYPOINT ["/app/ndc-cli/build/install/ndc-cli/bin/ndc-cli"] | ||
# Final stage | ||
FROM registry.access.redhat.com/ubi9/openjdk-21:1.20-2 | ||
|
||
ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' | ||
WORKDIR /app | ||
|
||
# The "/app/output" directory is used by the NDC CLI "update" command as a bind-mount volume: | ||
# | ||
# docker run \ | ||
# -e HASURA_PLUGIN_CONNECTOR_CONTEXT_PATH \ | ||
# -v ${HASURA_PLUGIN_CONNECTOR_CONTEXT_PATH}:/app/output | ||
RUN mkdir -p /app/output && chmod 777 /app/output | ||
|
||
COPY --from=build /build/ndc-cli/build/install/ndc-cli /app | ||
ENTRYPOINT ["/app/bin/ndc-cli"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 5 additions & 6 deletions
11
ndc-connector-mysql/.hasura-connector/connector-metadata.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,15 @@ | ||
packagingDefinition: | ||
type: PrebuiltDockerImage | ||
dockerImage: "ndc-jvm-cli:v1" | ||
dockerImage: "ghcr.io/hasura/ndc-jvm-mysql:v0.1.0-test.2" | ||
supportedEnvironmentVariables: | ||
- name: HASURA_JDBC_URL | ||
- name: JDBC_URL | ||
description: "The JDBC URL to connect to the database" | ||
commands: | ||
update: | | ||
docker run \ | ||
-e HASURA_PLUGIN_CONNECTOR_CONTEXT_PATH \ | ||
-v ${HASURA_PLUGIN_CONNECTOR_CONTEXT_PATH}:/app/output \ | ||
ndc-jvm-cli:v1 update $HASURA_JDBC_URL \ | ||
ghcr.io/hasura/ndc-jvm-cli:v0.1.0-test.2 update $JDBC_URL \ | ||
--database MYSQL \ | ||
--schemas $HASURA_JDBC_SCHEMAS \ | ||
--outfile /app/output/configuration.json | ||
--schemas $JDBC_SCHEMAS \ | ||
--outfile /app/output/configuration.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
ndc-connector-oracle/.hasura-connector/connector-metadata.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
packagingDefinition: | ||
type: PrebuiltDockerImage | ||
dockerImage: "ndc-jvm-cli:v1" | ||
dockerImage: "ghcr.io/hasura/ndc-jvm-oracle:v0.1.0-test.2" | ||
supportedEnvironmentVariables: | ||
- name: HASURA_JDBC_URL | ||
- name: JDBC_URL | ||
description: "The JDBC URL to connect to the database" | ||
- name: HASURA_JDBC_SCHEMAS | ||
- name: JDBC_SCHEMAS | ||
description: "A comma-separated list of schemas to include in the metadata" | ||
commands: | ||
update: | | ||
docker run \ | ||
-e HASURA_PLUGIN_CONNECTOR_CONTEXT_PATH \ | ||
-v ${HASURA_PLUGIN_CONNECTOR_CONTEXT_PATH}:/app/output \ | ||
ndc-jvm-cli:v1 update $HASURA_JDBC_URL \ | ||
ghcr.io/hasura/ndc-jvm-cli:v0.1.0-test.2 update $JDBC_URL \ | ||
--database ORACLE \ | ||
--schemas $HASURA_JDBC_SCHEMAS \ | ||
--schemas $JDBC_SCHEMAS \ | ||
--outfile /app/output/configuration.json | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.