share/containers/: Specify one argument per line
Reviewed-by: "Serge E. Hallyn" <serge@hallyn.com> Cc: Iker Pedrosa <ipedrosa@redhat.com> Signed-off-by: Alejandro Colomar <alx@kernel.org>
This commit is contained in:
@@ -2,13 +2,29 @@ ARG OS_IMAGE="alpine:latest"
|
||||
|
||||
FROM "${OS_IMAGE}" AS build
|
||||
|
||||
RUN apk add autoconf automake build-base byacc cmocka-dev expect gettext-dev \
|
||||
git libbsd-dev libeconf-dev libtool libxslt pkgconf
|
||||
RUN apk add \
|
||||
autoconf \
|
||||
automake \
|
||||
build-base \
|
||||
byacc \
|
||||
cmocka-dev \
|
||||
expect \
|
||||
gettext-dev \
|
||||
git \
|
||||
libbsd-dev \
|
||||
libeconf-dev \
|
||||
libtool \
|
||||
libxslt \
|
||||
pkgconf
|
||||
|
||||
COPY ./ /usr/local/src/shadow/
|
||||
WORKDIR /usr/local/src/shadow/
|
||||
|
||||
RUN ./autogen.sh --without-selinux --disable-man --disable-nls --with-yescrypt
|
||||
RUN ./autogen.sh \
|
||||
--without-selinux \
|
||||
--disable-man \
|
||||
--disable-nls \
|
||||
--with-yescrypt
|
||||
RUN make -kj4 || true
|
||||
RUN make
|
||||
RUN make check
|
||||
|
||||
@@ -9,12 +9,20 @@ RUN export DEBIAN_PRIORITY=critical \
|
||||
RUN apt-get update -y \
|
||||
&& apt-get dist-upgrade -y
|
||||
RUN apt-get build-dep shadow -y
|
||||
RUN apt-get install libltdl-dev libbsd-dev libcmocka-dev pkgconf -y
|
||||
RUN apt-get install \
|
||||
libltdl-dev \
|
||||
libbsd-dev \
|
||||
libcmocka-dev \
|
||||
pkgconf \
|
||||
-y
|
||||
|
||||
COPY ./ /usr/local/src/shadow/
|
||||
WORKDIR /usr/local/src/shadow/
|
||||
|
||||
RUN ./autogen.sh --without-selinux --enable-man --with-yescrypt
|
||||
RUN ./autogen.sh \
|
||||
--without-selinux \
|
||||
--enable-man \
|
||||
--with-yescrypt
|
||||
RUN make -kj4 || true
|
||||
RUN make
|
||||
RUN make check
|
||||
|
||||
@@ -2,16 +2,29 @@ ARG OS_IMAGE="fedora:latest"
|
||||
|
||||
FROM "${OS_IMAGE}" AS build
|
||||
|
||||
RUN dnf install -y dnf-plugins-core libcmocka-devel systemd-devel
|
||||
RUN dnf install -y \
|
||||
dnf-plugins-core \
|
||||
libcmocka-devel \
|
||||
systemd-devel
|
||||
RUN dnf builddep -y shadow-utils
|
||||
|
||||
COPY ./ /usr/local/src/shadow/
|
||||
WORKDIR /usr/local/src/shadow/
|
||||
|
||||
RUN ./autogen.sh --enable-shadowgrp --enable-man --with-audit \
|
||||
--with-sha-crypt --with-bcrypt --with-yescrypt --with-selinux \
|
||||
--without-libpam --enable-shared --without-libbsd \
|
||||
--with-group-name-max-length=32 --enable-lastlog --enable-logind=no
|
||||
RUN ./autogen.sh \
|
||||
--enable-shadowgrp \
|
||||
--enable-man \
|
||||
--with-audit \
|
||||
--with-sha-crypt \
|
||||
--with-bcrypt \
|
||||
--with-yescrypt \
|
||||
--with-selinux \
|
||||
--without-libpam \
|
||||
--enable-shared \
|
||||
--without-libbsd \
|
||||
--with-group-name-max-length=32 \
|
||||
--enable-lastlog \
|
||||
--enable-logind=no
|
||||
RUN make -kj4 || true
|
||||
RUN make
|
||||
RUN make check
|
||||
|
||||
Reference in New Issue
Block a user