-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* update cli plugin * update dockerfile * add run docker run command * update ndc-test command * wip: add start command * wip: add start command * Add command to run the connector from the CLI * Fix the CLI * update package-lock file * wip: fix ci tests * wip: fix ci tests try 2 * add comment * try to fic ci error * run the connector without any explicit command * update connector dockerfile * update sequence of enpoint details in the config file * minor update to dockerfile * add start command * Exit with status 0 after update * add start command to connector-metadata.yaml file + remove jaeger * wait for config generation to complete --------- Co-authored-by: Karthikeyan C <[email protected]>
- Loading branch information
1 parent
fa0871d
commit a39533c
Showing
15 changed files
with
156 additions
and
93 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
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,3 +1,4 @@ | ||
node_modules | ||
dist | ||
.env | ||
config.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
FROM node:20 | ||
|
||
COPY ./ /app | ||
WORKDIR /app | ||
|
||
RUN npm install | ||
RUN npm run install-bin | ||
|
||
RUN mkdir /etc/connector/ | ||
WORKDIR /etc/connector/ | ||
|
||
ENTRYPOINT [ "ndc-azure-cosmos" ] |
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
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.hasura-connector/ | ||
*.hml | ||
node_modules/ |
27 changes: 2 additions & 25 deletions
27
.hasura-connector/Dockerfile → ...r-definition/.hasura-connector/Dockerfile
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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,20 @@ | ||
#! /usr/bin/env node | ||
|
||
import { Command } from "commander"; | ||
import { Command, Option } from "commander"; | ||
import * as updateCmd from "./update"; | ||
import * as startCmd from "./start"; | ||
import { createConnector } from "../connector"; | ||
import { version } from "../../package.json" | ||
import * as sdk from "@hasura/ndc-sdk-typescript"; | ||
|
||
export const program = new Command() | ||
.version("0.0.1") | ||
.description("Azure Cosmos Connector CLI") | ||
// .addCommand(initCmd.cmd) TODO: Enable when required by the CLI spec | ||
.addCommand(updateCmd.cmd); | ||
function main() { | ||
const program = new Command().name("ndc-azure-cosmos").version(version); | ||
|
||
program.parse(process.argv); | ||
program.addCommand(updateCmd.cmd); | ||
|
||
program.addCommand(startCmd.cmd); | ||
|
||
program.parse(process.argv); | ||
} | ||
|
||
main() |
Oops, something went wrong.