Skip to content

Commit d76ea59

Browse files
committed
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).
1 parent 9923b1e commit d76ea59

File tree

3 files changed

+28
-0
lines changed

3 files changed

+28
-0
lines changed

image/Dockerfile

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
FROM alpine:3.6
2+
3+
ADD hashes /root/hashes
4+
ADD https://storage.googleapis.com/kubernetes-release/release/v1.6.4/bin/linux/amd64/kubectl /usr/bin/kubectl
5+
ADD https://github.com/tazjin/kontemplate/releases/download/v1.0.2/kontemplate-1.0.2-f79b261-linux-amd64.tar.gz /tmp/kontemplate.tar.gz
6+
7+
# Pass release version is 1.7.1
8+
ADD https://raw.githubusercontent.com/zx2c4/password-store/38ec1c72e29c872ec0cdde82f75490640d4019bf/src/password-store.sh /usr/bin/pass
9+
10+
RUN sha256sum -c /root/hashes && \
11+
apk add -U bash tree gnupg && \
12+
chmod +x /usr/bin/kubectl /usr/bin/pass && \
13+
tar xzvf /tmp/kontemplate.tar.gz && \
14+
mv kontemplate /usr/bin/kontemplate

image/README.md

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
Kontemplate Docker image
2+
========================
3+
4+
This builds a simple Docker image available on the Docker Hub as `tazjin/kontemplate`.
5+
6+
Builds are automated based on the Dockerfile contained here.
7+
8+
It contains both `kontemplate` and `kubectl` and can be used as part of container-based
9+
CI pipelines.
10+
11+
`pass` and its dependencies are also installed to enable the use of the `passLookup`
12+
template function if desired.

image/hashes

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
156e5592ed3ae6c9aff12fbbed17141ed7b3ede26ed169001df5b1211435f033 /tmp/kontemplate.tar.gz
2+
a91c6b028bb3f737898ff003f7f3a3f2d242ea52e89ade1f6ca3ab99170119e5 /usr/bin/kubectl

0 commit comments

Comments
 (0)