1
0
mirror of synced 2026-01-06 06:04:16 -05:00
Files
airbyte/airbyte-integrations/connectors/source-appfollow/Dockerfile
David Thompson 92aeac3e2b 🎉 New Source: AppFollow Service (#14418)
* Generated template

Using https://docs.airbyte.com/connector-development/tutorials/cdk-speedrun

* Added spec.yaml

Ref https://appfollow.docs.apiary.io/
Does not currently include authentication

* Schema and working discover for ratings API

* Add catalog

* Add cid as required parameter

* Working ratings call

BASIC AUTH REALLY

* Use basic auth in check connection

* Updated comment for request params

* Update README for local run

* Moved with common params to stream superclass

* Add support for country parameter

* WIP: acceptance

90% pass

* Passing acceptance tests for ratings in docker

* Remove incremental unit tests

We have no incremental streams

* Match number of streams to test

* Passing streams unit tests

* Connection check test

* Update unit test type check

* Remove TODO

* fix: tests are failing

* docs: added documentation for appfollow and logo

* docs: added documentation for appfollow and logo

* Bump io.airbyte.version

* fix: tests are failing

* auto-bump connector version [ci skip]

Co-authored-by: Harshith Mullapudi <harshithmullapudi@gmail.com>
Co-authored-by: Octavia Squidington III <octavia-squidington-iii@users.noreply.github.com>
2022-08-17 00:28:27 +05:30

39 lines
1.0 KiB
Docker

FROM python:3.9.11-alpine3.15 as base
# build and load all requirements
FROM base as builder
WORKDIR /airbyte/integration_code
# upgrade pip to the latest version
RUN apk --no-cache upgrade \
&& pip install --upgrade pip \
&& apk --no-cache add tzdata build-base
COPY setup.py ./
# install necessary packages to a temporary folder
RUN pip install --prefix=/install .
# build a clean environment
FROM base
WORKDIR /airbyte/integration_code
# copy all loaded and built libraries to a pure basic image
COPY --from=builder /install /usr/local
# add default timezone settings
COPY --from=builder /usr/share/zoneinfo/Etc/UTC /etc/localtime
RUN echo "Etc/UTC" > /etc/timezone
# bash is installed for more convenient debugging.
RUN apk --no-cache add bash
# copy payload code only
COPY main.py ./
COPY source_appfollow ./source_appfollow
ENV AIRBYTE_ENTRYPOINT "python /airbyte/integration_code/main.py"
ENTRYPOINT ["python", "/airbyte/integration_code/main.py"]
LABEL io.airbyte.version=0.1.1
LABEL io.airbyte.name=airbyte/source-appfollow