summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlejandro Colomar <alx@kernel.org>2024-02-28 12:07:22 +0100
committerAlejandro Colomar <alx@kernel.org>2024-03-04 01:43:25 +0100
commite59a39663d6175d98a529f5668871c3e19e6818b (patch)
tree27f57cb46827defb469545db45a5c1b967f77af1
parenta14936cf2e7219230b00609036546c1108fe4ba3 (diff)
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>
-rw-r--r--share/containers/alpine.dockerfile22
-rw-r--r--share/containers/debian.dockerfile12
-rw-r--r--share/containers/fedora.dockerfile23
3 files changed, 47 insertions, 10 deletions
diff --git a/share/containers/alpine.dockerfile b/share/containers/alpine.dockerfile
index 07d496c3..8c48e865 100644
--- a/share/containers/alpine.dockerfile
+++ b/share/containers/alpine.dockerfile
@@ -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
diff --git a/share/containers/debian.dockerfile b/share/containers/debian.dockerfile
index 09492939..3dd05ac0 100644
--- a/share/containers/debian.dockerfile
+++ b/share/containers/debian.dockerfile
@@ -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
diff --git a/share/containers/fedora.dockerfile b/share/containers/fedora.dockerfile
index 85e8b480..c701d9e7 100644
--- a/share/containers/fedora.dockerfile
+++ b/share/containers/fedora.dockerfile
@@ -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