What is the preferred method for packaging and tes...
# ask-ai
j
What is the preferred method for packaging and testing connectors locally?
k
The preferred method for packaging and testing Airbyte connectors locally is to use the
airbyte-ci
tool. This tool builds your connector image from Airbyte's base image and applies internal build logic, rather than relying on a custom Dockerfile. After building the image with
airbyte-ci
, you can also use it to run the full suite of tests (unit, integration, and acceptance tests) against your connector:
Copy code
bash airbyte-ci connectors --name=<connector_name> build airbyte-ci connectors --name=<connector_name> test
This approach is recommended for both building and testing connectors, especially if you intend to contribute your connector to the open source project. Using
airbyte-ci
ensures compatibility with Airbyte's CI pipeline and is the supported method for certified connectors. Building with a custom Dockerfile is possible but not preferred and not supported for certified connectors [Setting up standard acceptance tests for your connector](https://docs.airbyte.com/platform/connector-development/testing-connectors/connector-acceptance-tests-reference#setting-up-standard-acceptance-tests-for-your-connector).
j
How do I deploy my own custom Python connectors to a locally running instance of airbyte? @kapa.ai
k
A message from kapa.ai
New message text here
j
@kapa.ai what is the purpose of the —is_local flag on the airbyte-ci command?
k
A message from kapa.ai
I'm sorry, but the knowledge sources do not contain any information about the purpose of the
--is_local
flag on the
airbyte-ci
command. If you need details about this flag, please refer to the official Airbyte documentation or use
airbyte-ci --help
for more information.
j
@kapa.ai What is the purpose of the --is-local flag for the airbyte-ci command?
k
A message from kapa.ai
I'm sorry, but the knowledge sources do not contain any information about the purpose of the
--is-local
flag for the
airbyte-ci
command. If you need details about this flag, please consult the official Airbyte documentation or run
airbyte-ci --help
for more information.
j
@kapa.ai How can I generate a metadata.yaml file for my custom connector?
k
A message from kapa.ai
To generate a
metadata.yaml
file for your custom connector, you need to manually create it in the root directory of your connector. The file must follow Airbyte's metadata schema and include required fields such as connector type, definition ID, Docker image tag, Docker repository, tags, and more. Here is an example structure for a
metadata.yaml
file:
Copy code
yaml data:     allowedHosts:       hosts:         - ${host}         - ${tunnel_method.tunnel_host}     connectorSubtype: database     connectorType: source     definitionId: <your-connector-definition-id>     dockerImageTag: dev     maxSecondsBetweenMessages: 7200     dockerRepository: airbyte/source-<your-connector-name>     githubIssueLabel: source-<your-connector-name>     icon: <your-icon.svg>     license: MIT     name: <Your Connector Name>     tags:       - language:python       - cdk:python     registries:       cloud:         enabled: false       oss:         enabled: true     supportLevel: community     documentationUrl: <your-docs-url>   metadataSpecVersion: "1.0"
You must ensure that the file is valid and contains all required fields, as Airbyte validates the structure and values. For more details and field descriptions, refer to the [metadata.yaml file documentation](https://docs.airbyte.com/platform/next/connector-development/connector-metadata-file) and the [QA checks](https://docs.airbyte.com/platform/next/contributing-to-airbyte/resources/qa-checks#-metadata). There is currently no automated tool mentioned in the documentation for generating this file; it is created manually by following the schema and examples provided [Connector Metadata.yaml File](https://docs.airbyte.com/platform/next/connector-development/connector-metadata-file).