<@U04S8PLJWMT> how to build connector locally and ...
# replication-ask-ai
f
@kapa.ai how to build connector locally and push to my docker hub ?
k
Building a Connector Locally and Pushing to Docker Hub Here's a step-by-step guide: 1. Build the Connector Image Locally You have a couple of options: Using
airbyte-cdk
(recommended for Python/manifest-only connectors):
Copy code
cd airbyte-integrations/connectors/source-<your-connector>
airbyte-cdk image build
[Local Connector Dev] Using `airbyte-ci`:
Copy code
airbyte-ci connectors --name source-<source-name> build
Once done, your image will be available locally as
airbyte/source-<source-name>:dev
. [Forum Post] Using
docker build
directly:
Copy code
docker build . -t my-custom-connectors/source-custom:0.1.0
[Custom Connectors Guide] 2. Tag the Image for Docker Hub
Copy code
docker tag my-custom-connectors/source-custom:0.1.0 <your-dockerhub-username>/source-custom:0.1.0
3. Authenticate and Push to Docker Hub
Copy code
docker login
docker push <your-dockerhub-username>/source-custom:0.1.0
You can also provide credentials via environment variables when using `airbyte-ci`: •
DOCKER_HUB_USERNAME
•
DOCKER_HUB_PASSWORD
[Forum Post] 4. Add the Connector to Airbyte UI Once pushed, register it in Airbyte: 1. Go to Settings → Sources (or Destinations) 2. Click [+ New connector] 3. Fill in the display name, Docker repository name (e.g.,
<your-dockerhub-username>/source-custom
), tag, and documentation URL [Custom Connectors Guide] > Note: Your Airbyte instance must be able to pull images from your Docker registry. Make sure authentication is configured on the Airbyte instance side as well. šŸ‘ 0 button šŸ‘Ž 0 button ā„¹ļø Tip: Mention @kapa.ai in the thread for follow-ups or DM the app for 1-to-1 help.