forked from airbytehq/airbyte-platform
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
decrease docker images by utilizing multistage building (#12065)
- Loading branch information
1 parent
a4cb56a
commit cd59733
Showing
21 changed files
with
100 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
ARG JDK_IMAGE=airbyte/airbyte-base-java-image:3.2.0 | ||
FROM ${JDK_IMAGE} | ||
ARG JDK_IMAGE=airbyte/airbyte-base-java-image:3.2.1 | ||
|
||
FROM scratch as builder | ||
WORKDIR /app | ||
|
||
USER root | ||
ADD airbyte-app.tar /app | ||
RUN chown -R airbyte:airbyte /app | ||
|
||
FROM ${JDK_IMAGE} | ||
WORKDIR /app | ||
COPY --chown=airbyte:airbyte --from=builder /app /app | ||
USER airbyte:airbyte | ||
|
||
ENTRYPOINT ["/bin/bash", "-c", "airbyte-app/bin/airbyte-bootloader"] |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
ARG JDK_IMAGE=airbyte/airbyte-base-java-image:3.2.0 | ||
FROM ${JDK_IMAGE} | ||
ARG JDK_IMAGE=airbyte/airbyte-base-java-image:3.2.1 | ||
|
||
FROM scratch as builder | ||
WORKDIR /app | ||
|
||
USER root | ||
ADD airbyte-app.tar /app | ||
RUN chown -R airbyte:airbyte /app | ||
|
||
FROM ${JDK_IMAGE} | ||
WORKDIR /app | ||
COPY --chown=airbyte:airbyte --from=builder /app /app | ||
USER airbyte:airbyte | ||
|
||
ENTRYPOINT ["/bin/bash", "-c", "airbyte-app/bin/airbyte-cron"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
ARG JDK_IMAGE=airbyte/airbyte-base-java-image:3.2.0 | ||
FROM ${JDK_IMAGE} AS keycloak-setup | ||
ARG JDK_IMAGE=airbyte/airbyte-base-java-image:3.2.1 | ||
|
||
FROM scratch as builder | ||
WORKDIR /app | ||
|
||
USER root | ||
ADD airbyte-app.tar /app | ||
RUN chown -R airbyte:airbyte /app | ||
|
||
FROM ${JDK_IMAGE} AS keycloak-setup | ||
WORKDIR /app | ||
COPY --chown=airbyte:airbyte --from=builder /app /app | ||
USER airbyte:airbyte | ||
|
||
ENTRYPOINT ["/bin/bash", "-c", "airbyte-app/bin/airbyte-keycloak-setup"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
ARG JDK_IMAGE=airbyte/airbyte-base-java-image:3.2.0 | ||
FROM ${JDK_IMAGE} | ||
ARG JDK_IMAGE=airbyte/airbyte-base-java-image:3.2.1 | ||
|
||
FROM scratch as builder | ||
WORKDIR /app | ||
|
||
USER root | ||
ADD airbyte-app.tar /app | ||
RUN chown -R airbyte:airbyte /app | ||
|
||
FROM ${JDK_IMAGE} | ||
WORKDIR /app | ||
COPY --chown=airbyte:airbyte --from=builder /app /app | ||
USER airbyte:airbyte | ||
|
||
ENTRYPOINT ["/bin/bash", "-c", "airbyte-app/bin/airbyte-metrics-reporter"] |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,17 @@ | ||
ARG JAVA_WORKER_BASE_IMAGE_VERSION=2.1.0 | ||
FROM airbyte/airbyte-base-java-worker-image:${JAVA_WORKER_BASE_IMAGE_VERSION} | ||
ARG JAVA_WORKER_BASE_IMAGE_VERSION=2.2.0 | ||
|
||
FROM scratch as builder | ||
WORKDIR /app | ||
ADD airbyte-app.tar /app | ||
|
||
FROM airbyte/airbyte-base-java-worker-image:${JAVA_WORKER_BASE_IMAGE_VERSION} | ||
ENV APPLICATION airbyte-workers | ||
ENV VERSION ${VERSION} | ||
|
||
EXPOSE 5005 | ||
WORKDIR /app | ||
|
||
USER root | ||
COPY WellKnownTypes.json /app | ||
|
||
# Move worker app | ||
ADD airbyte-app.tar /app | ||
RUN chown -R airbyte:airbyte /app | ||
COPY --chown=airbyte:airbyte WellKnownTypes.json /app | ||
COPY --chown=airbyte:airbyte --from=builder /app /app | ||
USER airbyte:airbyte | ||
|
||
EXPOSE 5005 | ||
|
||
# wait for upstream dependencies to become available before starting server | ||
ENTRYPOINT ["/bin/bash", "-c", "airbyte-app/bin/${APPLICATION}"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
ARG JDK_IMAGE=airbyte/airbyte-base-java-image:3.2.0 | ||
FROM ${JDK_IMAGE} AS server | ||
ARG JDK_IMAGE=airbyte/airbyte-base-java-image:3.2.1 | ||
|
||
FROM scratch as builder | ||
WORKDIR /app | ||
ADD airbyte-app.tar /app | ||
|
||
FROM ${JDK_IMAGE} | ||
EXPOSE 8007 5005 | ||
ENV APPLICATION airbyte-workload-api-server | ||
ENV VERSION ${VERSION} | ||
WORKDIR /app | ||
|
||
# This is automatically unzipped by Docker | ||
USER root | ||
ADD airbyte-app.tar /app | ||
RUN chown -R airbyte:airbyte /app | ||
WORKDIR /app | ||
COPY --chown=airbyte:airbyte --from=builder /app /app | ||
USER airbyte:airbyte | ||
|
||
# wait for upstream dependencies to become available before starting server | ||
ENTRYPOINT ["/bin/bash", "-c", "airbyte-app/bin/${APPLICATION}"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,19 @@ | ||
ARG JAVA_WORKER_BASE_IMAGE_VERSION=2.1.0 | ||
FROM airbyte/airbyte-base-java-worker-image:${JAVA_WORKER_BASE_IMAGE_VERSION} | ||
|
||
ENV APPLICATION airbyte-workload-launcher | ||
ENV VERSION ${VERSION} | ||
ARG JAVA_WORKER_BASE_IMAGE_VERSION=2.2.0 | ||
|
||
FROM scratch as builder | ||
WORKDIR /app | ||
|
||
# This is automatically unzipped by Docker | ||
USER root | ||
ADD airbyte-app.tar /app | ||
RUN chown -R airbyte:airbyte /app | ||
USER airbyte:airbyte | ||
|
||
FROM airbyte/airbyte-base-java-worker-image:${JAVA_WORKER_BASE_IMAGE_VERSION} | ||
|
||
ENV APPLICATION airbyte-workload-launcher | ||
ENV VERSION ${VERSION} | ||
# 8016 is the port micronaut listens on | ||
# 5005 is the remote debug port | ||
EXPOSE 8016 5005 | ||
|
||
# wait for upstream dependencies to become available before starting server | ||
WORKDIR /app | ||
COPY --chown=airbyte:airbyte --from=builder /app /app | ||
USER airbyte:airbyte | ||
|
||
ENTRYPOINT ["/bin/bash", "-c", "airbyte-app/bin/${APPLICATION}"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters