1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-11-28 09:08:50 +02:00
dockerfiles/taskd/Dockerfile

53 lines
1.6 KiB
Docker
Raw Normal View History

2015-06-26 15:49:21 +02:00
#
# Dockerfile for taskd
#
FROM alpine
2017-05-08 01:05:07 +02:00
MAINTAINER kev <noreply@easypi.pro>
2015-06-26 15:49:21 +02:00
ENV TASKDDATA /var/taskd
RUN apk add --update build-base \
cmake \
gnutls \
gnutls-dev \
2020-10-20 12:10:05 +02:00
gnutls-utils \
2015-06-26 15:49:21 +02:00
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