From d76ea59f4c9dcdaace382568d2a4037ccce1ccba Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Wed, 7 Jun 2017 10:02:48 +0200 Subject: feat image: Add Dockerfile for CI pipeline image Adds a simple Docker image that can be used in CI pipelines to deploy `kontemplate`-based environments. This image contains kontemplate and all of its dependencies (including pass as an optional dependency). --- image/Dockerfile | 14 ++++++++++++++ image/README.md | 12 ++++++++++++ image/hashes | 2 ++ 3 files changed, 28 insertions(+) create mode 100644 image/Dockerfile create mode 100644 image/README.md create mode 100644 image/hashes (limited to 'image') diff --git a/image/Dockerfile b/image/Dockerfile new file mode 100644 index 000000000000..90a3385dd00d --- /dev/null +++ b/image/Dockerfile @@ -0,0 +1,14 @@ +FROM alpine:3.6 + +ADD hashes /root/hashes +ADD https://storage.googleapis.com/kubernetes-release/release/v1.6.4/bin/linux/amd64/kubectl /usr/bin/kubectl +ADD https://github.com/tazjin/kontemplate/releases/download/v1.0.2/kontemplate-1.0.2-f79b261-linux-amd64.tar.gz /tmp/kontemplate.tar.gz + +# Pass release version is 1.7.1 +ADD https://raw.githubusercontent.com/zx2c4/password-store/38ec1c72e29c872ec0cdde82f75490640d4019bf/src/password-store.sh /usr/bin/pass + +RUN sha256sum -c /root/hashes && \ + apk add -U bash tree gnupg && \ + chmod +x /usr/bin/kubectl /usr/bin/pass && \ + tar xzvf /tmp/kontemplate.tar.gz && \ + mv kontemplate /usr/bin/kontemplate diff --git a/image/README.md b/image/README.md new file mode 100644 index 000000000000..fe04765401be --- /dev/null +++ b/image/README.md @@ -0,0 +1,12 @@ +Kontemplate Docker image +======================== + +This builds a simple Docker image available on the Docker Hub as `tazjin/kontemplate`. + +Builds are automated based on the Dockerfile contained here. + +It contains both `kontemplate` and `kubectl` and can be used as part of container-based +CI pipelines. + +`pass` and its dependencies are also installed to enable the use of the `passLookup` +template function if desired. diff --git a/image/hashes b/image/hashes new file mode 100644 index 000000000000..cf08300aca51 --- /dev/null +++ b/image/hashes @@ -0,0 +1,2 @@ +156e5592ed3ae6c9aff12fbbed17141ed7b3ede26ed169001df5b1211435f033 /tmp/kontemplate.tar.gz +a91c6b028bb3f737898ff003f7f3a3f2d242ea52e89ade1f6ca3ab99170119e5 /usr/bin/kubectl -- cgit 1.4.1