Christian Schmid
09/01/2025, 2:48 PMkapa.ai
09/01/2025, 2:49 PMbash git clone https://github.com/<YOUR_USERNAME>/airbyte.git cd airbyte 2. Make Your Code Changes - Locate the destination-databricks connector directory, typically at airbyte-integrations/connectors/destination-databricks. - Modify the code as needed. 3. Build the Connector Docker Image - From the Airbyte project root, run the following Gradle command to build the connector and its Docker image: bash ./gradlew :airbyte-integrations:connectors:destination-databricks:build This will compile the Java code and build a Docker image tagged as airbyte/destination-databricks:dev by default. 4. (Optional) Run the Connector Locally for Testing - You can run the connector’s Docker image directly to test its commands: bash # Run the "spec" command docker run --rm airbyte/destination-databricks:dev spec # Run the "check" command (replace with your config file) docker run --rm -v $(pwd)/secrets:/secrets airbyte/destination-databricks:dev check --config /secrets/config.json # Run the "write" command (replace with your config and catalog files) docker run --rm -v $(pwd)/secrets:/secrets -v $(pwd)/sample_files:/sample_files airbyte/destination-databricks:dev write --config /secrets/config.json --catalog /sample_files/configured_catalog.json Each time you make changes, re-run the build command above to update the Docker image. 5. Use the Custom Image in Airbyte - If you are running Airbyte locally, you can configure the UI to use your custom image: - Go to Settings → Destinations. - Find the Databricks destination and update the version to dev (or your custom tag). - Save the changes. Airbyte will now use your modified connector image for syncs. - If you are using Airbyte with Kubernetes or Docker Compose, you may need to load the image into your cluster or push it to a registry, depending on your setup. Note: The build command must be run from the Airbyte project root. If you want to iterate quickly, you can use the direct Docker run commands above to test your changes before integrating with the Airbyte UI. For more details, see the official documentation on [building a Java destination](https://docs.airbyte.com/platform/connector-development/tutorials/building-a-java-destination#step-2-build-the-newly-generated-destination) and [developing locally](https://docs.airbyte.com/platform/contributing-to-airbyte/developing-locally#connector-contributions) for Airbyte connectors. Sources: [Building a Java Destination](https://docs.airbyte.com/platform/connector-development/tutorials/building-a-java-destination#step-2-build-the-newly-generated-destination) [Developing Locally - Connector Contributions](https://docs.airbyte.com/platform/contributing-to-airbyte/developing-locally#connector-contributions)Christian Schmid
09/01/2025, 2:50 PMkapa.ai
09/01/2025, 2:50 PMkapa.ai
09/01/2025, 2:51 PMairbyte-ci tool in your CI/CD pipeline. Here’s how you can do it: 1. Set up your CI/CD pipeline to check out your Airbyte repository (or your fork). 2. Install the airbyte-ci tool in your CI/CD environment. 3. Run the build command for your connector: bash airbyte-ci connectors --name destination-databricks build This command will build your connector and produce a Docker image, typically tagged as airbyte/destination-databricks:dev in your Docker host. 4. (Optional) Push the image to your private Docker registry: - Tag the image for your registry. - Use docker push to upload it. Example: bash docker tag airbyte/destination-databricks:dev <your-registry>/destination-databricks:<tag> docker push <your-registry>/destination-databricks:<tag> These steps can be scripted in your CI/CD pipeline (e.g., GitHub Actions, GitLab CI, etc.). The Airbyte documentation recommends this approach for building and testing connectors in automated environments, and it is the same process used for local development, just automated in CI/CD. For more details, see the [official documentation](https://docs.airbyte.com/platform/contributing-to-airbyte/developing-locally#connector-contributions). If you are not using airbyte-ci, you can also build the Docker image directly using Docker commands in your pipeline, but airbyte-ci is the preferred and supported method for Airbyte connectors, especially for certified connectors. > Note: The knowledge sources do not provide a full example CI/CD pipeline file, but they do describe the commands and steps you need to automate in your pipeline.