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

Dockerfile: fail fast if mbuffer is not compatible/fetchable [#589] #635

Merged
merged 6 commits into from
Mar 13, 2024
Merged
Changes from 5 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
8 changes: 6 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,14 @@ FROM docker.io/library/alpine:${ALPINE_VERSION} as runtime
ARG PERL_VERSION=5.38.2-r0

RUN \
# mbuffer is not in main currently, and community keys expire over time,
# so gotta bump ALPINE_VERSION above regularly (and likely PERL_VERSION
# as dictated by the newer OS release). Request its package first to fail
# fast in such case. Note that while "--allow-untrusted" might be an option,
# shared libraries referenced by the binary make an older distro outdated.
apk add --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/community/ mbuffer && \
# nano is for the interactive "edit" command in znapzendzetup if preferred over vi
apk add --no-cache zfs curl bash autoconf automake nano perl=${PERL_VERSION} openssh && \
# mbuffer is not in main currently
apk add --no-cache --repository http://dl-3.alpinelinux.org/alpine/edge/community/ mbuffer && \
ln -s /dev/stdout /var/log/syslog && \
ln -s /usr/bin/perl /usr/local/bin/perl

Expand Down
Loading