|
|
|
|
@ -6,7 +6,7 @@ |
|
|
|
|
# on how to publish a new build image. |
|
|
|
|
|
|
|
|
|
# Install helm (https://helm.sh/) and helm-docs (https://github.com/norwoodj/helm-docs) for generating Helm Chart reference. |
|
|
|
|
FROM golang:1.22.2-bookworm as helm |
|
|
|
|
FROM golang:1.22.5-bookworm as helm |
|
|
|
|
ARG TARGETARCH |
|
|
|
|
ARG HELM_VER="v3.2.3" |
|
|
|
|
RUN curl -L "https://get.helm.sh/helm-${HELM_VER}-linux-$TARGETARCH.tar.gz" | tar zx && \ |
|
|
|
|
@ -38,7 +38,7 @@ RUN apk add --no-cache curl && \ |
|
|
|
|
FROM alpine:3.18.6 as docker |
|
|
|
|
RUN apk add --no-cache docker-cli docker-cli-buildx |
|
|
|
|
|
|
|
|
|
FROM golang:1.22.2-bookworm as drone |
|
|
|
|
FROM golang:1.22.5-bookworm as drone |
|
|
|
|
ARG TARGETARCH |
|
|
|
|
RUN curl -L "https://github.com/drone/drone-cli/releases/download/v1.7.0/drone_linux_$TARGETARCH".tar.gz | tar zx && \ |
|
|
|
|
install -t /usr/local/bin drone |
|
|
|
|
@ -48,35 +48,35 @@ RUN curl -L "https://github.com/drone/drone-cli/releases/download/v1.7.0/drone_l |
|
|
|
|
# Error: |
|
|
|
|
# github.com/fatih/faillint@v1.5.0 requires golang.org/x/tools@v0.0.0-20200207224406-61798d64f025 |
|
|
|
|
# (not golang.org/x/tools@v0.0.0-20190918214920-58d531046acd from golang.org/x/tools/cmd/goyacc@58d531046acdc757f177387bc1725bfa79895d69) |
|
|
|
|
FROM golang:1.22.2-bookworm as faillint |
|
|
|
|
FROM golang:1.22.5-bookworm as faillint |
|
|
|
|
RUN GO111MODULE=on go install github.com/fatih/faillint@v1.12.0 |
|
|
|
|
RUN GO111MODULE=on go install golang.org/x/tools/cmd/goimports@v0.7.0 |
|
|
|
|
|
|
|
|
|
FROM golang:1.22.2-bookworm as delve |
|
|
|
|
FROM golang:1.22.5-bookworm as delve |
|
|
|
|
RUN GO111MODULE=on go install github.com/go-delve/delve/cmd/dlv@latest |
|
|
|
|
|
|
|
|
|
# Install ghr used to push binaries and template the release |
|
|
|
|
# This collides with the version of go tools used in the base image, thus we install it in its own image and copy it over. |
|
|
|
|
FROM golang:1.22.2-bookworm as ghr |
|
|
|
|
FROM golang:1.22.5-bookworm as ghr |
|
|
|
|
RUN GO111MODULE=on go install github.com/tcnksm/ghr@9349474 |
|
|
|
|
|
|
|
|
|
# Install nfpm (https://nfpm.goreleaser.com) for creating .deb and .rpm packages. |
|
|
|
|
FROM golang:1.22.2-bookworm as nfpm |
|
|
|
|
FROM golang:1.22.5-bookworm as nfpm |
|
|
|
|
RUN GO111MODULE=on go install github.com/goreleaser/nfpm/v2/cmd/nfpm@v2.11.3 |
|
|
|
|
|
|
|
|
|
# Install gotestsum |
|
|
|
|
FROM golang:1.22.2-bookworm as gotestsum |
|
|
|
|
FROM golang:1.22.5-bookworm as gotestsum |
|
|
|
|
RUN GO111MODULE=on go install gotest.tools/gotestsum@v1.8.2 |
|
|
|
|
|
|
|
|
|
# Install tools used to compile jsonnet. |
|
|
|
|
FROM golang:1.22.2-bookworm as jsonnet |
|
|
|
|
FROM golang:1.22.5-bookworm as jsonnet |
|
|
|
|
RUN GO111MODULE=on go install github.com/jsonnet-bundler/jsonnet-bundler/cmd/jb@v0.5.1 |
|
|
|
|
RUN GO111MODULE=on go install github.com/monitoring-mixins/mixtool/cmd/mixtool@16dc166166d91e93475b86b9355a4faed2400c18 |
|
|
|
|
RUN GO111MODULE=on go install github.com/google/go-jsonnet/cmd/jsonnet@v0.20.0 |
|
|
|
|
|
|
|
|
|
FROM aquasec/trivy as trivy |
|
|
|
|
|
|
|
|
|
FROM golang:1.22.2-bookworm |
|
|
|
|
FROM golang:1.22.5-bookworm |
|
|
|
|
RUN apt-get update && \ |
|
|
|
|
apt-get install -qy \ |
|
|
|
|
musl gnupg ragel \ |
|
|
|
|
|