auth
2015-06-29
auth/authd/Dockerfile
Create Docker image for authd. Create a Dockerfile for authd, which will wrap the compiled Go binary up into a tiny little Docker image. Create an authd/build-docker.sh script that will build the statically-linked binary in a Docker container, so the authd Docker image can use it. We had to include ca-certificates.crt in the Dockerfile, as well, so we could communicate over SSL with things. A wrapper.sh file is included that will pull the JWT_SECRET environment variable out of a kubernetes secrets file, which is a handy wrapper to have. Finally, we added the authd/docker-authd binary to the .hgignore.
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/authd/Dockerfile Mon Jun 29 23:50:15 2015 -0400 1.3 @@ -0,0 +1,12 @@ 1.4 +FROM busybox 1.5 + 1.6 +ADD docker-authd /bin/authd/authd 1.7 +ADD templates /bin/authd/templates 1.8 +ADD wrapper.sh /bin/authd/run.sh 1.9 +ADD ca-certificates.crt /etc/ssl/certs/ 1.10 + 1.11 +WORKDIR /bin/authd 1.12 + 1.13 +EXPOSE 9000 1.14 + 1.15 +CMD ["./run.sh"]