When I tested our the connector I was building, I ...
# help-connector-development
a
When I tested our the connector I was building, I get the following error.
WARNING: The requested image's platform (linux/arm64) does not match the detected host platform (linux/amd64) and no specific platform was requested.
Is there a way to build a Multi-arch build?
k
A message from kapa.ai
Based on the information provided in the extracts, it seems like you're encountering an issue because the Docker image for your connector is not compatible with the architecture of your host machine. While the extracts do not provide specific instructions on how to create a multi-architecture Docker image, they do provide guidance on how to build a Docker image for a connector. Here are the general steps: 1. Build the connector by running the following command from the Airbyte project root:
Copy code
bash ./gradlew :airbyte-integrations:connectors:destination-<name>:build
This command compiles the Java code for your connector and builds a Docker image with the connector ([source](https://docs.airbyte.com/connector-development/tutorials/building-a-java-destination)). 2. If you want to contribute your connector back to the Airbyte connector catalog, you can export the connector specification into a file and build a Docker image containing the connector. The typical command to build the Docker image is:
Copy code
bash docker build . -t airbyte/source-<name>:<version>
After building the Docker image, you can push it to your private Docker registry ([source](https://docs.airbyte.com/connector-development/connector-builder-ui/overview)). 3. If you're developing locally, you can build the connector image with the following command:
Copy code
bash docker build ./airbyte-integrations/connectors/<connector-name> -t airbyte/<connector-name>:dev
This command builds a Docker image for the connector and tags it with
dev
([source](https://docs.airbyte.com/contributing-to-airbyte/developing-locally)). For creating a multi-architecture Docker image, you might need to use Docker's buildx command, which is not covered in the provided extracts. I recommend referring to Docker's official documentation or other resources for more information on this topic.