Skip to content

Commit

Permalink
use ADD to reduce docker image sizes (#7537)
Browse files Browse the repository at this point in the history
* use ADD to reduce docker image sizes

* switch to full paths
  • Loading branch information
jrhizor authored Nov 2, 2021
1 parent 7cf31ea commit b1f5c23
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
6 changes: 6 additions & 0 deletions .bumpversion.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ serialize =

[bumpversion:file:.env]

[bumpversion:file:airbyte-server/Dockerfile]

[bumpversion:file:airbyte-workers/Dockerfile]

[bumpversion:file:airbyte-scheduler/app/Dockerfile]

[bumpversion:file:airbyte-webapp/package.json]

[bumpversion:file:airbyte-webapp/package-lock.json]
Expand Down
6 changes: 2 additions & 4 deletions airbyte-scheduler/app/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ ENV APPLICATION airbyte-scheduler

WORKDIR /app

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

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

# wait for upstream dependencies to become available before starting server
ENTRYPOINT ["/bin/bash", "-c", "bin/${APPLICATION}"]
ENTRYPOINT ["/bin/bash", "-c", "${APPLICATION}-0.30.23-alpha/bin/${APPLICATION}"]
6 changes: 2 additions & 4 deletions airbyte-server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ ENV APPLICATION airbyte-server

WORKDIR /app

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

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

# wait for upstream dependencies to become available before starting server
ENTRYPOINT ["/bin/bash", "-c", "bin/${APPLICATION}"]
ENTRYPOINT ["/bin/bash", "-c", "${APPLICATION}-0.30.23-alpha/bin/${APPLICATION}"]
8 changes: 3 additions & 5 deletions airbyte-workers/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,8 @@ RUN curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.17.14/
RUN chmod +x ./kubectl
RUN mv ./kubectl /usr/local/bin

# Move and run worker
COPY build/distributions/${APPLICATION}*.tar ${APPLICATION}.tar

RUN tar xf ${APPLICATION}.tar --strip-components=1
# Move worker app
ADD build/distributions/${APPLICATION}-0.30.23-alpha.tar /app

# wait for upstream dependencies to become available before starting server
ENTRYPOINT ["/bin/bash", "-c", "bin/${APPLICATION}"]
ENTRYPOINT ["/bin/bash", "-c", "${APPLICATION}-0.30.23-alpha/bin/${APPLICATION}"]

0 comments on commit b1f5c23

Please sign in to comment.