Skip to content

REQUEST: arm64 archive not just aarch64 #617

@SamuelMarks

Description

@SamuelMarks

Please provide a small Dockerfile that demonstrates your issue.

There's a special TARGETARCH I can use so I can avoid explicitly doing --build-arg ARCH=$(uname -m):

FROM ubuntu
ARG S6_OVERLAY_VERSION='3.2.0.3'
ARG TARGETARCH
RUN apt-get update && apt-get install -y nginx xz-utils && \
    echo "daemon off;" >> /etc/nginx/nginx.conf
CMD ["/usr/sbin/nginx"]

ADD https://github.com/just-containers/s6-overlay/releases/download/v"${S6_OVERLAY_VERSION}"/s6-overlay-noarch.tar.xz /tmp
RUN tar -C / -Jxpf /tmp/s6-overlay-noarch.tar.xz
ADD https://github.com/just-containers/s6-overlay/releases/download/v"${S6_OVERLAY_VERSION}"/s6-overlay-"${TARGETARCH}".tar.xz /tmp
RUN tar -C / -Jxpf /tmp/s6-overlay-"${TARGETARCH}".tar.xz
ENTRYPOINT ["/init"]

TARGETARCH normalises as both aarch64 and arm64 are the same, see: https://github.com/BretFisher/multi-platform-docker-build/blob/main/README.md#the-problem-with-downloading-binaries-in-dockerfiles

To avoid breaking anyones scripts can you just copy s6-overlay-aarch64.tar.xz & its checksum to s6-overlay-arm64.tar.xz and release it on GitHub Releases?

Thanks

EDIT: This issue will be closed by #561

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions