Change unit test to use Zig from vendor website

(because Zig 0.11 is no longer available from Alpine edge repos)
This commit is contained in:
Felix Kollmann 2024-05-01 16:07:15 +02:00
parent 7ab8ae7304
commit 3d192ec030

View File

@ -1,8 +1,12 @@
FROM alpine:3.19 as builder
# install Zig 0.11 from Alpine edge repo: https://pkgs.alpinelinux.org/package/edge/testing/x86_64/zig
RUN echo "@testing https://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories
RUN apk add --no-cache zig@testing~=0.11.0
# install Zig 0.11 from the original source (it is no longer available via Alpine edge repos)
ADD https://ziglang.org/download/0.11.0/zig-linux-x86_64-0.11.0.tar.xz /tmp/zig.tar.xz
WORKDIR /opt/zig
RUN tar xf /tmp/zig.tar.xz --strip-components 1
RUN ln -s /opt/zig/zig /usr/local/bin/zig
# install dependencies
RUN apk add --no-cache zeromq-dev