Kaustav Ghosh
09/24/2024, 2:47 PMuser
09/24/2024, 2:48 PMDockerfile FROM python:3.9-slim WORKDIR /airbyte/integration_code RUN pip install requests COPY source.py . COPY spec.json . ENTRYPOINT ["python", "/airbyte/integration_code/source.py"] LABEL io.airbyte.name=airbyte/source-stock-ticker-api LABEL io.airbyte.version=0.1.0 ENV AIRBYTE_ENTRYPOINT='python /airbyte/integration_code/source.py'
This Dockerfile starts from a lightweight Python 3.9 image, sets a working directory, installs any necessary Python dependencies, copies source files into the image, sets the entrypoint for the container, and sets some labels and environment variables used by Airbyte. 2. Build the Docker image using the docker build
command. Replace source-stock-ticker-api
with the name of your connector: bash docker build . -t airbyte/source-stock-ticker-api:dev
This command builds a Docker image from the Dockerfile in the current directory, and tags the image with the name and tag airbyte/source-stock-ticker-api:dev
. 3. Verify that the image was built successfully: bash docker images
You should see airbyte/source-stock-ticker-api
in the list of images. For more details, you can refer to the [Airbyte documentation](https://docs.airbyte.com/connector-development/tutorials/the-hard-way/build-a-connector-the-hard-way#3-package-the-connector-in-a-docker-image).Kaustav Ghosh
09/24/2024, 2:48 PMuser
09/24/2024, 2:48 PMuser
09/24/2024, 2:49 PMairbyte-db
entry in the actor_definition
table as mentioned in the [forum post](https://discuss.airbyte.io/t/1825). However, the exact steps to do this are not provided in the knowledge sources. If you want to add a new source connector, you can follow these steps: 1. Build the connector using the command: ./gradlew :airbyte-integrations:connectors:source-couchbase:build
2. Tag the image. 3. Add it as a custom connector in the UI → settings → source → custom connector. This information is based on a similar process described in the [forum post](https://discuss.airbyte.io/t/1812) for a MongoDB source connector. Please note that these instructions are based on the assumption that you have a connector for Couchbase. If you don't have one, you would need to develop it. You can refer to the [Airbyte documentation](https://docs.airbyte.com/connector-development/tutorials/the-hard-way/adding-incremental-sync#update-catalog-in-discover) for more details on how to develop a connector.