|
1 | 1 | # Build jsonnet
|
2 |
| -FROM alpine:3.13 AS jsonnet-builder |
| 2 | +FROM alpine:3.17 AS jsonnet-builder |
3 | 3 | RUN apk add --no-cache git make g++
|
4 | 4 | RUN git clone https://github.com/google/jsonnet && \
|
5 |
| - git -C jsonnet checkout v0.15.0 && \ |
| 5 | + git -C jsonnet checkout v0.20.0 && \ |
6 | 6 | make -C jsonnet 2LDFLAGS=-static && \
|
7 | 7 | cp jsonnet/jsonnet /usr/bin && \
|
8 | 8 | cp jsonnet/jsonnetfmt /usr/bin
|
9 | 9 |
|
10 | 10 | # Build jb
|
11 |
| -FROM alpine:3.13 AS jb-builder |
12 |
| -ARG JSONNET_BUNDLER_VERSION=0.4.0 |
13 |
| -ARG JSONNET_BUNDLER_CHECKSUM="433edab5554a88a0371e11e93080408b225d41c31decf321c02b50d2e44993ce /usr/bin/jb" |
| 11 | +FROM alpine:3.17 AS jb-builder |
| 12 | +ARG JSONNET_BUNDLER_VERSION=0.5.1 |
| 13 | +ARG JSONNET_BUNDLER_CHECKSUM="f5bccc94d28fbbe8ad1d46fd4f208619e45d368a5d7924f6335f4ecfa0605c85 /usr/bin/jb" |
14 | 14 | RUN apk add --no-cache curl
|
15 | 15 | RUN curl -fSL -o "/usr/bin/jb" "https://github.com/jsonnet-bundler/jsonnet-bundler/releases/download/v${JSONNET_BUNDLER_VERSION}/jb-linux-amd64"
|
16 | 16 | RUN echo "${JSONNET_BUNDLER_CHECKSUM}" | sha256sum -c || (printf "wanted: %s\n got: %s\n" "${JSONNET_BUNDLER_CHECKSUM}" "$(sha256sum /usr/bin/jb)"; exit 1)
|
17 | 17 | RUN chmod +x /usr/bin/jb
|
18 | 18 |
|
19 | 19 | # Build tanka
|
20 |
| -FROM alpine:3.13 AS tk-builder |
21 |
| -ARG TANKA_VERSION=0.21.0 |
22 |
| -ARG TANKA_CHECKSUM="cd60a005f84fd99763f26d07d4cb626e7585a62800aae97234d8187129eed1ec /usr/bin/tk" |
| 20 | +FROM alpine:3.17 AS tk-builder |
| 21 | +ARG TANKA_VERSION=0.24.0 |
| 22 | +ARG TANKA_CHECKSUM="82c8c533c29eefea0af9c28f487203b19dec84ce2624702f99196e777f946ddc /usr/bin/tk" |
23 | 23 | RUN apk add --no-cache curl
|
24 | 24 | RUN curl -fSL -o "/usr/bin/tk" "https://github.com/grafana/tanka/releases/download/v${TANKA_VERSION}/tk-linux-amd64"
|
25 | 25 | RUN echo "${TANKA_CHECKSUM}" | sha256sum -c || (printf "wanted: %s\n got: %s\n" "${TANKA_CHECKSUM}" "$(sha256sum /usr/bin/tk)"; exit 1)
|
26 | 26 | RUN chmod +x /usr/bin/tk
|
27 | 27 |
|
28 | 28 | # Build mixtool
|
29 |
| -FROM golang:1.15-alpine AS mixtool-builder |
30 |
| -RUN GO111MODULE=on go get github.com/monitoring-mixins/mixtool/cmd/mixtool@ae18e31161ea10545b9c1ac0d23c10122f2c12b5 |
| 29 | +FROM golang:1.20-alpine AS mixtool-builder |
| 30 | +RUN GO111MODULE=on go install github.com/monitoring-mixins/mixtool/cmd/mixtool@ae18e31161ea10545b9c1ac0d23c10122f2c12b5 |
31 | 31 |
|
32 |
| -FROM alpine:3.13 |
33 |
| -RUN apk add --no-cache git make libgcc libstdc++ zip findutils sed |
| 32 | +FROM alpine:3.17 |
| 33 | +RUN apk add --no-cache git make libgcc libstdc++ zip findutils sed yq |
34 | 34 | COPY --from=jsonnet-builder /usr/bin/jsonnetfmt /usr/bin
|
35 | 35 | COPY --from=jsonnet-builder /usr/bin/jsonnet /usr/bin
|
36 | 36 | COPY --from=jb-builder /usr/bin/jb /usr/bin
|
37 | 37 | COPY --from=tk-builder /usr/bin/tk /usr/bin
|
38 | 38 | COPY --from=mixtool-builder /go/bin/mixtool /usr/bin
|
39 | 39 |
|
40 |
| -# Install yq. |
41 |
| -# TODO We can install it via apk once alpine 3.14 or above will be released. Previous versions don't package v4. |
42 |
| -RUN wget -O /usr/bin/yq https://github.com/mikefarah/yq/releases/download/v4.9.3/yq_linux_amd64 && \ |
43 |
| - chmod +x /usr/bin/yq |
0 commit comments