Skip to content
This repository was archived by the owner on Apr 28, 2025. It is now read-only.

Commit a406a1f

Browse files
committed
Add tanka to build-image
Signed-off-by: Jack Baldry <[email protected]>
1 parent d5d9591 commit a406a1f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

build-image/Dockerfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,18 @@ RUN git clone https://github.com/jsonnet-bundler/jsonnet-bundler /jsonnet-bundle
1515
git checkout v0.2.0 && \
1616
make install
1717

18+
# Build tanka
19+
FROM golang:1.14.1-alpine3.11 as tk-builder
20+
ARG TANKA_VERSION=0.11.1
21+
ARG TANKA_CHECKSUM="3b253ca7d7bf01189604c10a8f7cead20a553ddc04c813f0f836d80338cfad71 /usr/bin/tk"
22+
RUN apk add --no-cache curl
23+
RUN curl -fSL -o "/usr/bin/tk" "https://github.com/grafana/tanka/releases/download/v${TANKA_VERSION}/tk-linux-amd64"
24+
RUN echo "${TANKA_CHECKSUM}" | sha256sum -c || (printf "wanted: %s\n got: %s\n" "${TANKA_CHECKSUM}" "$(sha256sum /usr/bin/tk)"; exit 1)
25+
RUN chmod +x /usr/bin/tk
26+
1827
FROM alpine:3.11
1928
RUN apk add --no-cache git make libgcc libstdc++ zip
2029
COPY --from=jsonnet-builder /usr/bin/jsonnetfmt /usr/bin
2130
COPY --from=jsonnet-builder /usr/bin/jsonnet /usr/bin
2231
COPY --from=jb-builder /go/bin/jb /usr/bin
32+
COPY --from=tk-builder /usr/bin/tk /usr/bin

0 commit comments

Comments
 (0)