Skip to content

Commit

Permalink
Dockerfile - allow override of config opts
Browse files Browse the repository at this point in the history
  • Loading branch information
Guido Iaquinti authored and dormando committed Jul 5, 2020
1 parent e86a585 commit 9f2d28e
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
4 changes: 3 additions & 1 deletion devtools/Dockerfile.alpine
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
FROM alpine:latest

ARG CONFIGURE_OPTS="--enable-seccomp"

RUN apk update && apk add --no-cache musl-dev libevent-dev libseccomp-dev linux-headers gcc make automake autoconf perl-test-harness-utils

ADD . /src
WORKDIR /src

RUN ./autogen.sh
RUN ./configure --enable-seccomp
RUN ./configure ${CONFIGURE_OPTS}
RUN make -j

CMD make test
4 changes: 3 additions & 1 deletion devtools/Dockerfile.arch
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
FROM archlinux/base:latest

ARG CONFIGURE_OPTS="--enable-seccomp"

RUN pacman -Sy && pacman --noconfirm -S gcc automake autoconf libevent libseccomp git make perl
RUN ln -s /usr/bin/core_perl/prove /usr/bin/prove

Expand All @@ -11,7 +13,7 @@ RUN autoheader
RUN automake --gnu --add-missing
RUN autoconf

RUN ./configure --enable-seccomp
RUN ./configure ${CONFIGURE_OPTS}
RUN make -j

CMD make test
4 changes: 3 additions & 1 deletion devtools/Dockerfile.fedora
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
FROM fedora:latest

ARG CONFIGURE_OPTS="--enable-seccomp"

RUN dnf install -y perl automake autoconf libseccomp-devel libevent-devel gcc make git

ADD . /src
WORKDIR /src

RUN aclocal && autoheader && automake --foreign --add-missing && autoconf
RUN ./configure --enable-seccomp
RUN ./configure ${CONFIGURE_OPTS}
RUN make -j

CMD make test
4 changes: 3 additions & 1 deletion devtools/Dockerfile.ubuntu
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
FROM ubuntu:latest

ARG CONFIGURE_OPTS="--enable-seccomp"

RUN apt-get update && apt-get install -y build-essential automake1.11 autoconf libevent-dev libseccomp-dev git

ADD . /src
WORKDIR /src

RUN ./autogen.sh
RUN ./configure --enable-seccomp
RUN ./configure ${CONFIGURE_OPTS}
RUN make -j

CMD make test

0 comments on commit 9f2d28e

Please sign in to comment.