1
0
mirror of synced 2025-12-19 10:00:34 -05:00

fix(docker-images): Update Python and Java connector image definitions (#61592)

Co-authored-by: David Gold <32782137+dbgold17@users.noreply.github.com>
This commit is contained in:
Aaron ("AJ") Steers
2025-06-13 12:59:48 -07:00
committed by GitHub
parent c13af59a4a
commit 976ae1fa82
2 changed files with 15 additions and 4 deletions

View File

@@ -17,10 +17,16 @@ RUN chmod +x /airbyte/base.sh /airbyte/javabase.sh && \
ENV AIRBYTE_ENTRYPOINT="/airbyte/base.sh"
ENV APPLICATION="${CONNECTOR_NAME}"
# Add the connector TAR file and extract it
COPY ./build/distributions/${CONNECTOR_NAME}.tar /tmp/${CONNECTOR_NAME}.tar
RUN tar xf /tmp/${CONNECTOR_NAME}.tar --strip-components=1 -C /airbyte && \
rm -rf /tmp/${CONNECTOR_NAME}.tar && \
# Add the connector TAR file and extract it.
# For compatibility reasons, first try connector-specific name, then `airbyte-app.tar`
COPY ./build/distributions/ /tmp/distributions/
RUN if [ -f /tmp/distributions/${CONNECTOR_NAME}.tar ]; then \
cp /tmp/distributions/${CONNECTOR_NAME}.tar /tmp/${CONNECTOR_NAME}.tar; \
else \
cp /tmp/distributions/airbyte-app.tar /tmp/${CONNECTOR_NAME}.tar; \
fi && \
tar xf /tmp/${CONNECTOR_NAME}.tar --strip-components=1 -C /airbyte && \
rm -rf /tmp/${CONNECTOR_NAME}.tar /tmp/distributions && \
chown -R airbyte:airbyte /airbyte
# Set the non-root user

View File

@@ -10,6 +10,11 @@ ARG BASE_IMAGE
ARG CONNECTOR_NAME
ARG EXTRA_PREREQS_SCRIPT=""
# Install git and openssh-client are needed to clone repositories for testing connectors on pre-release versions of the CDK
RUN apt-get update \
&& apt-get install -y --no-install-recommends git openssh-client \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /airbyte/integration_code
COPY . ./