2015-06-26 15:49:21 +02:00
|
|
|
#
|
|
|
|
# Dockerfile for taskd
|
|
|
|
#
|
|
|
|
|
|
|
|
FROM alpine
|
|
|
|
MAINTAINER kev <noreply@datageek.info>
|
|
|
|
|
|
|
|
ENV TASKDDATA /var/taskd
|
|
|
|
|
|
|
|
RUN apk add --update build-base \
|
|
|
|
cmake \
|
|
|
|
gnutls \
|
|
|
|
gnutls-dev \
|
|
|
|
libstdc++ \
|
|
|
|
&& wget -O- http://downloads.sourceforge.net/project/libuuid/libuuid-1.0.3.tar.gz | tar xz \
|
|
|
|
&& cd libuuid-1.0.3 \
|
|
|
|
&& ./configure --prefix=/usr \
|
|
|
|
&& make install \
|
|
|
|
&& cd .. \
|
|
|
|
&& rm -rf libuuid-1.0.3 \
|
|
|
|
&& wget -O- http://taskwarrior.org/download/taskd-1.1.0.tar.gz | tar xz \
|
|
|
|
&& cd taskd-1.1.0 \
|
|
|
|
&& cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_BUILD_TYPE=release . \
|
|
|
|
&& make install \
|
|
|
|
&& cd pki \
|
|
|
|
&& ./generate \
|
|
|
|
&& mkdir -p $TASKDDATA \
|
|
|
|
&& mv *.pem $TASKDDATA \
|
|
|
|
&& cd ../.. \
|
|
|
|
&& rm -rf taskd-1.1.0 \
|
|
|
|
&& apk del --purge build-base \
|
|
|
|
cmake \
|
|
|
|
gnutls-dev \
|
|
|
|
&& rm -rf /var/cache/apk/*
|
|
|
|
|
|
|
|
RUN taskd init \
|
|
|
|
&& taskd config --force client.cert $TASKDDATA/client.cert.pem \
|
|
|
|
&& taskd config --force client.key $TASKDDATA/client.key.pem \
|
|
|
|
&& taskd config --force server.cert $TASKDDATA/server.cert.pem \
|
|
|
|
&& taskd config --force server.key $TASKDDATA/server.key.pem \
|
|
|
|
&& taskd config --force server.crl $TASKDDATA/server.crl.pem \
|
|
|
|
&& taskd config --force ca.cert $TASKDDATA/ca.cert.pem \
|
2015-06-26 16:06:49 +02:00
|
|
|
&& taskd config --force log /dev/stdout \
|
|
|
|
&& taskd config --force pid.file /run/taskd.pid \
|
2015-06-26 15:49:21 +02:00
|
|
|
&& taskd config --force server 0.0.0.0:53589
|
|
|
|
|
|
|
|
VOLUME $TASKDDATA
|
|
|
|
EXPOSE 53589
|
|
|
|
|
2015-06-26 16:10:41 +02:00
|
|
|
CMD ["taskd", "server"]
|
2015-06-26 15:49:21 +02:00
|
|
|
|