<@U04S8PLJWMT> I have a custom connector built u...
# ask-ai
c
@kapa.ai I have a custom connector built using the Connector Builder UI that works well. However, I need to create a Docker image for it because: 1. The source-declarative-manifest image auto-updates daily (from 6.60.4 to 6.60.6 etc.), causing "image not found" errors in our ECR 2. I want to pin a specific version to avoid these daily failures I've exported the manifest.yaml from the Builder UI and I'm trying to create a Docker image. When I test with: FROM airbyte/source-declarative-manifest:6.60.4 COPY source_custom/manifest.yaml /airbyte/integration_code/manifest.yaml The spec command returns a generic spec asking for __injected_declarative_manifest instead of my connector's actual spec. The documentation for creating manifest-only connectors seems to be missing (https://docs.airbyte.com/platform/connector-development/config-based/tutorial/create-source returns 404). How do I properly package a manifest.yaml from the Connector Builder into a Docker image that can be used as a custom connector?
k
I'm sorry, but the knowledge sources do not provide a step-by-step guide for packaging a manifest.yaml (exported from the Connector Builder UI) into a Docker image for a manifest-only connector. While the documentation does state that manifest-only connectors must use airbyte/source-declarative-manifest as their base image, it does not detail the process for embedding the manifest.yaml so that the connector's actual spec is returned, rather than the generic __injected_declarative_manifest prompt. The available documentation covers: - The requirement that manifest-only connectors use airbyte/source-declarative-manifest as their base image, but does not specify how to package the manifest.yaml or how to ensure the correct spec is returned by the image [Airbyte connectors QA checks](https://docs.airbyte.com/platform/contributing-to-airbyte/resources/qa-checks#-packaging). - General instructions for uploading Docker-based custom connectors, which assume you already have a working Docker image for your connector, but do not address manifest-only connectors specifically or the manifest.yaml packaging process [Uploading Docker-based custom connectors](https://docs.airbyte.com/platform/operator-guides/using-custom-connectors). Given the lack of explicit instructions in the knowledge sources, I cannot provide a definitive answer to your question. You may want to reach out to the Airbyte community or support channels for more detailed guidance on packaging manifest-only connectors.
Based on the available documentation, here’s what is clear about packaging a manifest-only connector (such as one exported from the Connector Builder UI) into a Docker image for Airbyte: 1. Manifest-only connectors must use
airbyte/source-declarative-manifest
as their base image.
This is confirmed in the QA checks for connector packaging requirements. Your Dockerfile should start with:
Copy code
dockerfile    FROM airbyte/source-declarative-manifest:<desired-version>
Replace
<desired-version>
with the specific version you want to pin, e.g.,
6.60.4
[QA checks - Packaging](https://docs.airbyte.com/platform/next/contributing-to-airbyte/resources/qa-checks#-packaging). 2. Copy your manifest.yaml into the image. You are correct to copy your manifest file:
Copy code
dockerfile    COPY source_custom/manifest.yaml /airbyte/integration_code/manifest.yaml
3. The manifest must be injected at runtime. The error you’re seeing (
spec command returns a generic spec asking for __injected_declarative_manifest
) suggests that the image expects the manifest to be injected at runtime, not just present in the image. The documentation does not provide explicit steps for packaging a manifest-only connector as a static Docker image with the manifest baked in, and the standard process expects the manifest to be provided dynamically. 4. Documentation gap. You are correct that the documentation for creating manifest-only connectors is currently missing or incomplete ([404 link](https://docs.airbyte.com/platform/connector-development/config-based/tutorial/create-source)). The available docs only state the requirement to use the correct base image, but do not describe how to package the manifest for static use in a Docker image. Summary: - You are using the correct base image and copying the manifest as expected. - The current Airbyte documentation does not provide a complete, official process for packaging a manifest-only connector as a static Docker image with the manifest included. - The error you see is likely because the runtime expects the manifest to be injected, not just present in the image. Recommendation: - If you need to pin the version and avoid daily auto-updates, you are correct to use a specific tag for the base image. - However, due to the lack of official documentation on static packaging, you may need to reach out to the Airbyte community or support for guidance, or monitor the documentation for updates. References: - [Manifest-only connectors must use
source-declarative-manifest
as their base image](https://docs.airbyte.com/platform/next/contributing-to-airbyte/resources/qa-checks#-packaging) - [Uploading Docker-based custom connectors](https://docs.airbyte.com/platform/operator-guides/using-custom-connectors) I'm sorry, but the knowledge sources do not contain enough information to provide a step-by-step solution for statically packaging a manifest-only connector. If you need further help, consider opening an issue or discussion in the Airbyte community.