Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

airbyte-mc: arm64 support, pin mc version with verifying checksum #345

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 16 additions & 3 deletions docker/airbyte-mc/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,23 @@
ARG ALPINE_IMAGE_VERSION=3.18

FROM alpine:${ALPINE_IMAGE_VERSION}

ARG AMD64_URL=https://dl.min.io/client/mc/release/linux-amd64/archive/mc.RELEASE.2024-03-25T16-41-14Z
ARG AMD64_SHA256SUM=e8e7732b119eadf6515af8ac814e944587352b5aeaa6e64c21f126ef763129e3
ARG ARM64_URL=https://dl.min.io/client/mc/release/linux-arm64/archive/mc.RELEASE.2024-03-25T16-41-14Z
ARG ARM64_SHA256SUM=065a8fe157792c08e2759d7c4672a945a97ca701431cd61b0029bed80148286c

RUN adduser -u 1000 -s /bin/sh -D airbyte

RUN wget https://dl.min.io/client/mc/release/linux-amd64/mc && \
mv mc /usr/bin/mc && \
chmod +x /usr/bin/mc
RUN if [ "$(uname -m)" = "aarch64" ]; then \
DOWNLOAD_URL=${ARM64_URL} ; \
DOWNLOAD_SHA256SUM=${ARM64_SHA256SUM} ; \
else \
DOWNLOAD_URL=${AMD64_URL} ; \
DOWNLOAD_SHA256SUM=${AMD64_SHA256SUM} ; \
fi \
&& wget -O /usr/bin/mc $DOWNLOAD_URL \
&& chmod +x /usr/bin/mc \
&& echo "${DOWNLOAD_SHA256SUM} /usr/bin/mc" | sha256sum -c

USER airbyte:airbyte
Loading