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

[OPS-8056] xz sure why not #292

Open
wants to merge 16 commits into
base: main
Choose a base branch
from
Open
Changes from 2 commits
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
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
8 changes: 4 additions & 4 deletions alpine-base-s6/Dockerfile.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ LABEL org.label-schema.schema-version="1.0" \
org.label-schema.distribution="Alpine Linux" \
org.label-schema.distribution-version=$UPSTREAM

RUN apk add --no-cache --purge -uU curl && \
RUN apk add --no-cache --purge -uU xz curl && \
S6VERSION=$(curl -sSL https://api.github.com/repos/just-containers/s6-overlay/releases/latest | awk '/tag_name/{print $4;exit}' FS='[""]' | sed -e 's_v__') && \
S6ARCH=$(uname -m | sed 's/x86_64/amd64/') && \
S6ARCH=$(uname -m) && \
echo "Installing s6 version: $S6VERSION for $S6ARCH" && \
curl -o /tmp/s6-overlay.tar.gz -jkSL https://github.com/just-containers/s6-overlay/releases/download/v${S6VERSION}/s6-overlay-${S6ARCH}.tar.gz && \
tar xzf /tmp/s6-overlay.tar.gz -C / && \
curl -o /tmp/s6-overlay.tar.xz -jkSL https://github.com/just-containers/s6-overlay/releases/download/v${S6VERSION}/s6-overlay-${S6ARCH}-${S6VERSION}.tar.xz && \
orakili marked this conversation as resolved.
Show resolved Hide resolved
tar xJf /tmp/s6-overlay.tar.xz -C / && \
rm -rf /var/cache/apk/* /tmp/*

ENTRYPOINT ["/init"]
Expand Down