mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-20 17:49:10 +00:00
tools/alpine: Build our own wireguard-tools package
Currently, there is a conflict in musl versions between stable (used for tools/alpine) and edge (where wireguard-tools is). This cased the tools/alpine build to fail. With this commit we build our own wireguard-tools package, using the APKBUILD file from edge, against the libraries libraries from stable. We then add the wireguard-tools package to the mirror. Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
This commit is contained in:
parent
018f3602c0
commit
e0e490d4c6
@ -12,8 +12,18 @@ RUN cat /tmp/packages.$(uname -m) >> /tmp/packages && \
|
|||||||
mkdir -p /mirror/$(uname -m) && \
|
mkdir -p /mirror/$(uname -m) && \
|
||||||
apk fetch --recursive -o /mirror/$(uname -m) $(apk info; cat /tmp/packages)
|
apk fetch --recursive -o /mirror/$(uname -m) $(apk info; cat /tmp/packages)
|
||||||
|
|
||||||
# add the tools for WireGuard, since the kernel module is now included, but from edge/testing
|
# It's tricky to mix edge/testing packages which sometimes leads to dependency conflicts.
|
||||||
RUN apk fetch --recursive -o /mirror/$(uname -m) -X http://dl-cdn.alpinelinux.org/alpine/edge/testing -U wireguard-tools
|
# wireguard-tools currently is only in edge, so here we build our own package using the
|
||||||
|
# APKBUILD file from edge.
|
||||||
|
RUN apk add alpine-sdk libmnl-dev curl && \
|
||||||
|
adduser -D builder && \
|
||||||
|
addgroup builder abuild && \
|
||||||
|
mkdir -p /wireguard && \
|
||||||
|
chmod 0777 /wireguard && \
|
||||||
|
cd /wireguard && \
|
||||||
|
curl -fsSLo APKBUILD https://git.alpinelinux.org/cgit/aports/plain/testing/wireguard-tools/APKBUILD && \
|
||||||
|
su -c "abuild-keygen -a -n && abuild -r" builder && \
|
||||||
|
cp /home/builder/packages/$(uname -m)/wireguard-tools-[0-9]*.apk /mirror/$(uname -m)
|
||||||
|
|
||||||
# install abuild for signing
|
# install abuild for signing
|
||||||
RUN apk add --no-cache abuild
|
RUN apk add --no-cache abuild
|
||||||
|
Loading…
Reference in New Issue
Block a user