Skip to content

Instantly share code, notes, and snippets.

@jrabbit
Last active August 29, 2015 14:22
Show Gist options
  • Save jrabbit/8f6be85c0ba73517106d to your computer and use it in GitHub Desktop.
Save jrabbit/8f6be85c0ba73517106d to your computer and use it in GitHub Desktop.
# Taskd on docker
FROM debian:latest
MAINTAINER Jack Laxson <[email protected]>
#Depends: libc6 (>= 2.14), libgcc1 (>= 1:4.1.1), libgnutls-deb0-28 (>= 3.3.0), libstdc++6 (>= 4.9), libuuid1 (>= 2.16)
RUN apt-get update && apt-get install -y libc6 libgcc1 libgnutls-deb0-28 libstdc++6 libuuid1 init-system-helpers
#Technically optional
# gnutls for cert gen unless you want to hand install them for clients
RUN apt-get install -y gnutls-bin
#TODO: change to gpg verification
ADD http://jack.stdnt.hampshire.edu/taskd_1.1.0-1_amd64.deb /tmp/taskd_1.1.0-1_amd64.deb
RUN echo "dc2b720c2f67addadf8c15f25819e09e4be11eb7 */tmp/taskd_1.1.0-1_amd64.deb" | sha1sum -c - && dpkg -i /tmp/taskd_1.1.0-1_amd64.deb
# Do the certs
COPY pki/*.pem /var/lib/taskd/
ENV TASKDDATA=/var/lib/taskd
RUN taskd init --data /var/lib/taskd
# make config
RUN taskd config --data /var/lib/taskd --force client.cert $TASKDDATA/client.cert.pem && \
taskd config --force client.key $TASKDDATA/client.key.pem --data /var/lib/taskd && \
taskd config --force server.cert $TASKDDATA/server.cert.pem --data /var/lib/taskd && \
taskd config --force server.key $TASKDDATA/server.key.pem --data /var/lib/taskd && \
taskd config --force server.crl $TASKDDATA/server.crl.pem --data /var/lib/taskd && \
taskd config --force ca.cert $TASKDDATA/ca.cert.pem --data /var/lib/taskd && \
taskd config debug.tls 3
# do it live
RUN taskd config server 0.0.0.0:53589
EXPOSE 53589
CMD taskd server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment