Skip to content

Commit

Permalink
Change copy to add in dockerfiles to reduce container size (#8516)
Browse files Browse the repository at this point in the history
Co-authored-by: Oleksandr Sheheda <alexandr-shegeda@users.noreply.github.com>
  • Loading branch information
haoranyu and alexandr-shegeda authored Dec 17, 2021
1 parent f1e292c commit 8ac2c6f
Show file tree
Hide file tree
Showing 62 changed files with 62 additions and 186 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@ ENV APPLICATION base-standard-source-test-file
WORKDIR /app

COPY entrypoint.sh .
COPY build/distributions/${APPLICATION}*.tar ${APPLICATION}.tar

RUN tar xf ${APPLICATION}.tar --strip-components=1
ADD build/distributions/${APPLICATION}*.tar /app

ENTRYPOINT ["/app/entrypoint.sh"]

Expand Down
4 changes: 1 addition & 3 deletions airbyte-integrations/bases/standard-source-test/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@ ENV APPLICATION standard-source-test
WORKDIR /app

COPY entrypoint.sh .
COPY build/distributions/${APPLICATION}*.tar ${APPLICATION}.tar

RUN tar xf ${APPLICATION}.tar --strip-components=1
ADD build/distributions/${APPLICATION}*.tar /app

ENTRYPOINT ["/app/entrypoint.sh"]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ FROM airbyte/integration-base-java:dev
WORKDIR /airbyte
ENV APPLICATION destination-{{dashCase name}}

COPY build/distributions/${APPLICATION}*.tar ${APPLICATION}.tar

RUN tar xf ${APPLICATION}.tar --strip-components=1
ADD build/distributions/${APPLICATION}*.tar /airbyte

LABEL io.airbyte.version=0.1.0
LABEL io.airbyte.name=airbyte/destination-{{dashCase name}}
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ WORKDIR /airbyte

ENV APPLICATION source-{{dashCase name}}

COPY build/distributions/${APPLICATION}*.tar ${APPLICATION}.tar

RUN tar xf ${APPLICATION}.tar --strip-components=1
ADD build/distributions/${APPLICATION}*.tar /airbyte

# Airbyte's build system uses these labels to know what to name and tag the docker images produced by this Dockerfile.
LABEL io.airbyte.version=0.1.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ FROM airbyte/integration-base-java:dev
WORKDIR /airbyte
ENV APPLICATION destination-azure-blob-storage

COPY build/distributions/${APPLICATION}*.tar ${APPLICATION}.tar

RUN tar xf ${APPLICATION}.tar --strip-components=1
ADD build/distributions/${APPLICATION}*.tar /airbyte

LABEL io.airbyte.version=0.1.0
LABEL io.airbyte.name=airbyte/destination-azure-blob-storage
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ WORKDIR /airbyte

ENV APPLICATION destination-bigquery-denormalized

COPY build/distributions/${APPLICATION}*.tar ${APPLICATION}.tar

RUN tar xf ${APPLICATION}.tar --strip-components=1
ADD build/distributions/${APPLICATION}*.tar /airbyte

LABEL io.airbyte.version=0.1.11
LABEL io.airbyte.name=airbyte/destination-bigquery-denormalized
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ WORKDIR /airbyte

ENV APPLICATION destination-bigquery

COPY build/distributions/${APPLICATION}*.tar ${APPLICATION}.tar

RUN tar xf ${APPLICATION}.tar --strip-components=1
ADD build/distributions/${APPLICATION}*.tar /airbyte

LABEL io.airbyte.version=0.5.1
LABEL io.airbyte.name=airbyte/destination-bigquery
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ FROM airbyte/integration-base-java:dev
WORKDIR /airbyte
ENV APPLICATION destination-cassandra

COPY build/distributions/${APPLICATION}*.tar ${APPLICATION}.tar

RUN tar xf ${APPLICATION}.tar --strip-components=1
ADD build/distributions/${APPLICATION}*.tar /airbyte

LABEL io.airbyte.version=0.1.0
LABEL io.airbyte.name=airbyte/destination-cassandra
4 changes: 1 addition & 3 deletions airbyte-integrations/connectors/destination-csv/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ FROM airbyte/integration-base-java:dev
WORKDIR /airbyte
ENV APPLICATION destination-csv

COPY build/distributions/${APPLICATION}*.tar ${APPLICATION}.tar

RUN tar xf ${APPLICATION}.tar --strip-components=1
ADD build/distributions/${APPLICATION}*.tar /airbyte

LABEL io.airbyte.version=0.2.8
LABEL io.airbyte.name=airbyte/destination-csv
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ FROM airbyte/integration-base-java:dev
WORKDIR /airbyte
ENV APPLICATION destination-databricks

COPY build/distributions/${APPLICATION}*.tar ${APPLICATION}.tar

RUN tar xf ${APPLICATION}.tar --strip-components=1
ADD build/distributions/${APPLICATION}*.tar /airbyte

LABEL io.airbyte.version=0.1.2
LABEL io.airbyte.name=airbyte/destination-databricks
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ FROM airbyte/integration-base-java:dev
WORKDIR /airbyte
ENV APPLICATION destination-dynamodb

COPY build/distributions/${APPLICATION}*.tar ${APPLICATION}.tar

RUN tar xf ${APPLICATION}.tar --strip-components=1
ADD build/distributions/${APPLICATION}*.tar /airbyte

LABEL io.airbyte.version=0.1.0
LABEL io.airbyte.name=airbyte/destination-dynamodb
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ WORKDIR /airbyte

ENV APPLICATION destination-e2e-test

COPY build/distributions/${APPLICATION}*.tar ${APPLICATION}.tar

RUN tar xf ${APPLICATION}.tar --strip-components=1
ADD build/distributions/${APPLICATION}*.tar /airbyte

LABEL io.airbyte.version=0.1.1
LABEL io.airbyte.name=airbyte/destination-e2e-test
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ FROM airbyte/integration-base-java:dev
WORKDIR /airbyte
ENV APPLICATION destination-elasticsearch

COPY build/distributions/${APPLICATION}*.tar ${APPLICATION}.tar

RUN tar xf ${APPLICATION}.tar --strip-components=1
ADD build/distributions/${APPLICATION}*.tar /airbyte

LABEL io.airbyte.version=0.1.0
LABEL io.airbyte.name=airbyte/destination-elasticsearch
4 changes: 1 addition & 3 deletions airbyte-integrations/connectors/destination-gcs/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ FROM airbyte/integration-base-java:dev
WORKDIR /airbyte
ENV APPLICATION destination-gcs

COPY build/distributions/${APPLICATION}*.tar ${APPLICATION}.tar

RUN tar xf ${APPLICATION}.tar --strip-components=1
ADD build/distributions/${APPLICATION}*.tar /airbyte

LABEL io.airbyte.version=0.1.15
LABEL io.airbyte.name=airbyte/destination-gcs
4 changes: 1 addition & 3 deletions airbyte-integrations/connectors/destination-jdbc/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ WORKDIR /airbyte

ENV APPLICATION destination-jdbc

COPY build/distributions/${APPLICATION}*.tar ${APPLICATION}.tar

RUN tar xf ${APPLICATION}.tar --strip-components=1
ADD build/distributions/${APPLICATION}*.tar /airbyte

LABEL io.airbyte.version=0.3.7
LABEL io.airbyte.name=airbyte/destination-jdbc
4 changes: 1 addition & 3 deletions airbyte-integrations/connectors/destination-kafka/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ WORKDIR /airbyte

ENV APPLICATION destination-kafka

COPY build/distributions/${APPLICATION}*.tar ${APPLICATION}.tar

RUN tar xf ${APPLICATION}.tar --strip-components=1
ADD build/distributions/${APPLICATION}*.tar /airbyte

LABEL io.airbyte.version=0.1.2
LABEL io.airbyte.name=airbyte/destination-kafka
4 changes: 1 addition & 3 deletions airbyte-integrations/connectors/destination-keen/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ FROM airbyte/integration-base-java:dev
WORKDIR /airbyte
ENV APPLICATION destination-keen

COPY build/distributions/${APPLICATION}*.tar ${APPLICATION}.tar

RUN tar xf ${APPLICATION}.tar --strip-components=1
ADD build/distributions/${APPLICATION}*.tar /airbyte

LABEL io.airbyte.version=0.2.0
LABEL io.airbyte.name=airbyte/destination-keen
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ FROM airbyte/integration-base-java:dev
WORKDIR /airbyte
ENV APPLICATION destination-kinesis

COPY build/distributions/${APPLICATION}*.tar ${APPLICATION}.tar

RUN tar xf ${APPLICATION}.tar --strip-components=1
ADD build/distributions/${APPLICATION}*.tar /airbyte

LABEL io.airbyte.version=0.1.0
LABEL io.airbyte.name=airbyte/destination-kinesis
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ FROM airbyte/integration-base-java:dev
WORKDIR /airbyte
ENV APPLICATION destination-local-json

COPY build/distributions/${APPLICATION}*.tar ${APPLICATION}.tar

RUN tar xf ${APPLICATION}.tar --strip-components=1
ADD build/distributions/${APPLICATION}*.tar /airbyte

LABEL io.airbyte.version=0.2.8
LABEL io.airbyte.name=airbyte/destination-local-json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ FROM airbyte/integration-base-java:dev
WORKDIR /airbyte
ENV APPLICATION destination-mariadb-columnstore

COPY build/distributions/${APPLICATION}*.tar ${APPLICATION}.tar

RUN tar xf ${APPLICATION}.tar --strip-components=1
ADD build/distributions/${APPLICATION}*.tar /airbyte

LABEL io.airbyte.version=0.1.1
LABEL io.airbyte.name=airbyte/destination-mariadb-columnstore
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ WORKDIR /airbyte

ENV APPLICATION destination-meilisearch

COPY build/distributions/${APPLICATION}*.tar ${APPLICATION}.tar

RUN tar xf ${APPLICATION}.tar --strip-components=1
ADD build/distributions/${APPLICATION}*.tar /airbyte

LABEL io.airbyte.version=0.2.10
LABEL io.airbyte.name=airbyte/destination-meilisearch
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ FROM airbyte/integration-base-java:dev
WORKDIR /airbyte
ENV APPLICATION destination-mongodb-strict-encrypt

COPY build/distributions/${APPLICATION}*.tar ${APPLICATION}.tar

RUN tar xf ${APPLICATION}.tar --strip-components=1
ADD build/distributions/${APPLICATION}*.tar /airbyte

LABEL io.airbyte.version=0.1.0
LABEL io.airbyte.name=airbyte/destination-mongodb-strict-encrypt
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ FROM airbyte/integration-base-java:dev
WORKDIR /airbyte
ENV APPLICATION destination-mongodb

COPY build/distributions/${APPLICATION}*.tar ${APPLICATION}.tar

RUN tar xf ${APPLICATION}.tar --strip-components=1
ADD build/distributions/${APPLICATION}*.tar /airbyte

LABEL io.airbyte.version=0.1.2
LABEL io.airbyte.name=airbyte/destination-mongodb
4 changes: 1 addition & 3 deletions airbyte-integrations/connectors/destination-mqtt/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ WORKDIR /airbyte

ENV APPLICATION destination-mqtt

COPY build/distributions/${APPLICATION}*.tar ${APPLICATION}.tar

RUN tar xf ${APPLICATION}.tar --strip-components=1
ADD build/distributions/${APPLICATION}*.tar /airbyte

LABEL io.airbyte.version=0.1.0
LABEL io.airbyte.name=airbyte/destination-mqtt
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ FROM airbyte/integration-base-java:dev
WORKDIR /airbyte
ENV APPLICATION destination-mssql-strict-encrypt

COPY build/distributions/${APPLICATION}*.tar ${APPLICATION}.tar

RUN tar xf ${APPLICATION}.tar --strip-components=1
ADD build/distributions/${APPLICATION}*.tar /airbyte

LABEL io.airbyte.version=0.1.2
LABEL io.airbyte.name=airbyte/destination-mssql-strict-encrypt
4 changes: 1 addition & 3 deletions airbyte-integrations/connectors/destination-mssql/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ WORKDIR /airbyte

ENV APPLICATION destination-mssql

COPY build/distributions/${APPLICATION}*.tar ${APPLICATION}.tar

RUN tar xf ${APPLICATION}.tar --strip-components=1
ADD build/distributions/${APPLICATION}*.tar /airbyte

LABEL io.airbyte.version=0.1.12
LABEL io.airbyte.name=airbyte/destination-mssql
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ WORKDIR /airbyte

ENV APPLICATION destination-mysql-strict-encrypt

COPY build/distributions/${APPLICATION}*.tar ${APPLICATION}.tar

RUN tar xf ${APPLICATION}.tar --strip-components=1
ADD build/distributions/${APPLICATION}*.tar /airbyte

LABEL io.airbyte.version=0.1.2
LABEL io.airbyte.name=airbyte/destination-mysql-strict-encrypt
4 changes: 1 addition & 3 deletions airbyte-integrations/connectors/destination-mysql/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ WORKDIR /airbyte

ENV APPLICATION destination-mysql

COPY build/distributions/${APPLICATION}*.tar ${APPLICATION}.tar

RUN tar xf ${APPLICATION}.tar --strip-components=1
ADD build/distributions/${APPLICATION}*.tar /airbyte

LABEL io.airbyte.version=0.1.15
LABEL io.airbyte.name=airbyte/destination-mysql
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ WORKDIR /airbyte

ENV APPLICATION destination-oracle-strict-encrypt

COPY build/distributions/${APPLICATION}*.tar ${APPLICATION}.tar

RUN tar xf ${APPLICATION}.tar --strip-components=1
ADD build/distributions/${APPLICATION}*.tar /airbyte

LABEL io.airbyte.version=0.1.1
LABEL io.airbyte.name=airbyte/destination-oracle-strict-encrypt
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ WORKDIR /airbyte

ENV APPLICATION destination-oracle

COPY build/distributions/${APPLICATION}*.tar ${APPLICATION}.tar

RUN tar xf ${APPLICATION}.tar --strip-components=1
ADD build/distributions/${APPLICATION}*.tar /airbyte

LABEL io.airbyte.version=0.1.12
LABEL io.airbyte.name=airbyte/destination-oracle
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ WORKDIR /airbyte

ENV APPLICATION destination-postgres-strict-encrypt

COPY build/distributions/${APPLICATION}*.tar ${APPLICATION}.tar

RUN tar xf ${APPLICATION}.tar --strip-components=1
ADD build/distributions/${APPLICATION}*.tar /airbyte

LABEL io.airbyte.version=0.1.2
LABEL io.airbyte.name=airbyte/destination-postgres-strict-encrypt
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ WORKDIR /airbyte

ENV APPLICATION destination-postgres

COPY build/distributions/${APPLICATION}*.tar ${APPLICATION}.tar

RUN tar xf ${APPLICATION}.tar --strip-components=1
ADD build/distributions/${APPLICATION}*.tar /airbyte

LABEL io.airbyte.version=0.3.13
LABEL io.airbyte.name=airbyte/destination-postgres
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ FROM airbyte/integration-base-java:dev
WORKDIR /airbyte
ENV APPLICATION destination-pubsub

COPY build/distributions/${APPLICATION}*.tar ${APPLICATION}.tar

RUN tar xf ${APPLICATION}.tar --strip-components=1
ADD build/distributions/${APPLICATION}*.tar /airbyte

LABEL io.airbyte.version=0.1.1
LABEL io.airbyte.name=airbyte/destination-pubsub
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ WORKDIR /airbyte

ENV APPLICATION destination-pulsar

COPY build/distributions/${APPLICATION}*.tar ${APPLICATION}.tar

RUN tar xf ${APPLICATION}.tar --strip-components=1
ADD build/distributions/${APPLICATION}*.tar /airbyte

LABEL io.airbyte.version=0.1.0
LABEL io.airbyte.name=airbyte/destination-pulsar
4 changes: 1 addition & 3 deletions airbyte-integrations/connectors/destination-redis/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ FROM airbyte/integration-base-java:dev
WORKDIR /airbyte
ENV APPLICATION destination-redis

COPY build/distributions/${APPLICATION}*.tar ${APPLICATION}.tar

RUN tar xf ${APPLICATION}.tar --strip-components=1
ADD build/distributions/${APPLICATION}*.tar /airbyte

LABEL io.airbyte.version=0.1.0
LABEL io.airbyte.name=airbyte/destination-redis
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ WORKDIR /airbyte

ENV APPLICATION destination-redshift

COPY build/distributions/${APPLICATION}*.tar ${APPLICATION}.tar

RUN tar xf ${APPLICATION}.tar --strip-components=1
ADD build/distributions/${APPLICATION}*.tar /airbyte

LABEL io.airbyte.version=0.3.22
LABEL io.airbyte.name=airbyte/destination-redshift
Loading

0 comments on commit 8ac2c6f

Please sign in to comment.