Skip to content

Commit

Permalink
Modify Dockerfile's ENTRYPOINT command to start the connector (#20)
Browse files Browse the repository at this point in the history
* Modify entrypoint command to start the connector

* use github workflow secrets

* add single quotes

* use env in step
  • Loading branch information
codingkarthik authored Jun 4, 2024
1 parent a39533c commit b11aa8e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,20 @@ jobs:
npm run build
- name: Generate the connector configuration
env:
AZURE_COSMOS_KEY: ${{ secrets.AZURE_COSMOS_KEY }}
AZURE_COSMOS_ENDPOINT: ${{ secrets.AZURE_COSMOS_ENDPOINT }}
AZURE_COSMOS_DB_NAME: ${{ secrets.AZURE_COSMOS_DB_NAME }}
run: |
cd cosmos
chmod +x ./dist/cli/index.js
export AZURE_COSMOS_KEY=Bh3EVxRH6BsUnger4tfXkKAvUenZhVosnvNpk185PyYZ9wd4qZO1kf7Y6hvERc7EUUJUE9j8RvDNACDbsgKqLg==
export AZURE_COSMOS_ENDPOINT=https://test-azure-cosmos-one.documents.azure.com:443/
export AZURE_COSMOS_DB_NAME=azure-cosmos-one
./dist/cli/index.js update
- name: Start connector
env:
AZURE_COSMOS_KEY: ${{ secrets.AZURE_COSMOS_KEY }}
AZURE_COSMOS_ENDPOINT: ${{ secrets.AZURE_COSMOS_ENDPOINT }}
AZURE_COSMOS_DB_NAME: ${{ secrets.AZURE_COSMOS_DB_NAME }}
run: |
cd cosmos
export AZURE_COSMOS_KEY=Bh3EVxRH6BsUnger4tfXkKAvUenZhVosnvNpk185PyYZ9wd4qZO1kf7Y6hvERc7EUUJUE9j8RvDNACDbsgKqLg==
Expand Down
2 changes: 1 addition & 1 deletion connector-definition/.hasura-connector/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ ENV HASURA_CONNECTOR_PORT=8080
# Expose the port specified by the HASURA_CONNECTOR_PORT environment variable
EXPOSE $HASURA_CONNECTOR_PORT

ENTRYPOINT [ "./dist/cli/index.js" ]
ENTRYPOINT [ "./dist/cli/index.js", "start" ]

0 comments on commit b11aa8e

Please sign in to comment.