Skip to content

Commit

Permalink
Add Dockerfile definitions
Browse files Browse the repository at this point in the history
Add alpine (musl-based) and ubuntu (glibc-based) descriptions for test
images. To run the testapp in either of them, run:

```
docker-compose run alpine
docker-compose run ubuntu
```
  • Loading branch information
viraptor authored and dormando committed May 9, 2018
1 parent fac3433 commit 9c76ea7
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 0 deletions.
12 changes: 12 additions & 0 deletions devtools/Dockerfile.alpine
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM alpine:latest

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

ADD . /src
WORKDIR /src

RUN ./autogen.sh
RUN ./configure --enable-seccomp
RUN make -j

CMD make test
17 changes: 17 additions & 0 deletions devtools/Dockerfile.arch
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
FROM archlinux/base:latest

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

ADD . /src
WORKDIR /src

RUN aclocal
RUN autoheader
RUN automake --gnu --add-missing
RUN autoconf

RUN ./configure --enable-seccomp
RUN make -j

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

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 make -j

CMD make test
14 changes: 14 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
version: '3'
services:
alpine:
build:
context: .
dockerfile: devtools/Dockerfile.alpine
ubuntu:
build:
context: .
dockerfile: devtools/Dockerfile.ubuntu
arch:
build:
context: .
dockerfile: devtools/Dockerfile.arch

0 comments on commit 9c76ea7

Please sign in to comment.