-
Notifications
You must be signed in to change notification settings - Fork 276
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Run platform images as non-root (#11750)
Co-authored-by: Cole Snodgrass <[email protected]> Co-authored-by: Davin Chia <[email protected]>
- Loading branch information
1 parent
d74befe
commit 901401a
Showing
43 changed files
with
402 additions
and
158 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,12 +1,16 @@ | ||
ARG JDK_IMAGE=airbyte/airbyte-base-java-image:3.0.1 | ||
ARG JDK_IMAGE=airbyte/airbyte-base-java-image:3.1.0 | ||
FROM ${JDK_IMAGE} AS server | ||
EXPOSE 8006 5005 | ||
ENV APPLICATION airbyte-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 | ||
USER airbyte:airbyte | ||
|
||
# wait for upstream dependencies to become available before starting server | ||
ENTRYPOINT ["/bin/bash", "-c", "airbyte-app/bin/${APPLICATION}"] |
This file was deleted.
Oops, something went wrong.
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,5 +1,11 @@ | ||
ARG JDK_IMAGE=airbyte/airbyte-base-java-image:3.0.1 | ||
ARG JDK_IMAGE=airbyte/airbyte-base-java-image:3.1.0 | ||
FROM ${JDK_IMAGE} | ||
|
||
WORKDIR /app | ||
|
||
USER root | ||
ADD airbyte-app.tar /app | ||
RUN chown -R airbyte:airbyte /app | ||
USER airbyte:airbyte | ||
|
||
ENTRYPOINT ["/bin/bash", "-c", "airbyte-app/bin/airbyte-bootloader"] |
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,4 +1,4 @@ | ||
ARG ALPINE_IMAGE=alpine:3.13 | ||
ARG ALPINE_IMAGE=alpine:3.18 | ||
FROM ${ALPINE_IMAGE} AS seed | ||
|
||
WORKDIR /app | ||
|
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
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,5 +1,11 @@ | ||
ARG JDK_IMAGE=airbyte/airbyte-base-java-image:3.0.1 | ||
ARG JDK_IMAGE=airbyte/airbyte-base-java-image:3.1.0 | ||
FROM ${JDK_IMAGE} | ||
|
||
WORKDIR /app | ||
|
||
USER root | ||
ADD airbyte-app.tar /app | ||
RUN chown -R airbyte:airbyte /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,5 +1,11 @@ | ||
ARG JDK_IMAGE=airbyte/airbyte-base-java-image:3.0.1 | ||
ARG JDK_IMAGE=airbyte/airbyte-base-java-image:3.1.0 | ||
FROM ${JDK_IMAGE} AS keycloak-setup | ||
|
||
WORKDIR /app | ||
|
||
USER root | ||
ADD airbyte-app.tar /app | ||
RUN chown -R airbyte:airbyte /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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
ARG JDK_IMAGE=airbyte/airbyte-base-java-image:3.0.1 | ||
ARG JDK_IMAGE=airbyte/airbyte-base-java-image:3.1.0 | ||
FROM ${JDK_IMAGE} | ||
|
||
WORKDIR /app | ||
|
||
USER root | ||
ADD airbyte-app.tar /app | ||
RUN chown -R airbyte:airbyte /app | ||
USER airbyte:airbyte | ||
|
||
ENTRYPOINT ["/bin/bash", "-c", "airbyte-app/bin/airbyte-metrics-reporter"] |
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
Oops, something went wrong.