tests/docker: Add dockerfile for Alpine Linux

Alpine Linux[1] is a security-oriented, lightweight Linux distribution
based on musl libc and busybox.

It it popular among Docker guests and embedded applications.

Adding it to test against different libc.

[1]: https://alpinelinux.org/

Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Message-Id: <20210118063808.12471-9-jiaxun.yang@flygoat.com>
[thuth: Dropped some unnecessary packages, replaced build-base with its deps]
Signed-off-by: Thomas Huth <thuth@redhat.com>
This commit is contained in:
Jiaxun Yang 2021-01-18 14:38:07 +08:00 committed by Thomas Huth
parent eb8b1a797a
commit 8df04b04ed

View File

@ -0,0 +1,55 @@
FROM alpine:edge
RUN apk update
RUN apk upgrade
# Please keep this list sorted alphabetically
ENV PACKAGES \
alsa-lib-dev \
bash \
binutils \
coreutils \
curl-dev \
g++ \
gcc \
git \
glib-dev \
glib-static \
gnutls-dev \
gtk+3.0-dev \
libaio-dev \
libcap-ng-dev \
libjpeg-turbo-dev \
libnfs-dev \
libpng-dev \
libseccomp-dev \
libssh-dev \
libusb-dev \
libxml2-dev \
lzo-dev \
make \
mesa-dev \
mesa-egl \
mesa-gbm \
meson \
ncurses-dev \
ninja \
perl \
pulseaudio-dev \
python3 \
py3-sphinx \
shadow \
snappy-dev \
spice-dev \
texinfo \
usbredir-dev \
util-linux-dev \
vde2-dev \
virglrenderer-dev \
vte3-dev \
xfsprogs-dev \
zlib-dev \
zlib-static
RUN apk add $PACKAGES