Skip to content
Permalink
Browse files

build docker only when unit-tests succeed

  • Loading branch information...
pjstevns committed Mar 17, 2019
1 parent 57893d3 commit 6f3ba237ab9dca20dc77e3324a95c17b64d8ca8e
Showing with 4 additions and 7 deletions.
  1. +3 −6 Dockerfile
  2. +1 −1 docker/etc/dbmail/dbmail.conf
@@ -3,12 +3,9 @@ FROM alpine:edge AS build-image
ADD . /app
COPY docker/etc/ /etc/
WORKDIR /app
RUN apk add --no-cache libc-dev libzdb-dev gcc curl make gmime-dev=2.6.20-r0 libmhash-dev libsieve-dev libevent-dev bsd-compat-headers
RUN ./configure --prefix=/usr --with-sieve=/usr --sysconfdir=/etc/dbmail \
--localstatedir=/tmp --with-logdir=/tmp --enable-static=yes --enable-shared=no

RUN make && make install

RUN apk add --no-cache libc-dev libzdb-dev gcc curl make gmime-dev=2.6.20-r0 libmhash-dev libsieve-dev libevent-dev bsd-compat-headers check-dev pkgconf
RUN ./configure --prefix=/usr --with-sieve=/usr --sysconfdir=/etc/dbmail --enable-static=no \
--enable-shared=yes --with-check=/usr && make && CK_FORK=no make check && make install

FROM alpine:edge
COPY docker/etc/ /etc/
@@ -9,7 +9,7 @@
#
# database connection URI

dburi = sqlite:///var/tmp/dbmail.db
dburi = sqlite:///tmp/dbmail.db

#
# Supported drivers are sql, ldap.

0 comments on commit 6f3ba23

Please sign in to comment.
You can’t perform that action at this time.