Skip to content

Commit

Permalink
Add jsonnet tools to build image (#6255)
Browse files Browse the repository at this point in the history
Signed-off-by: Marco Pracucci <marco@pracucci.com>
  • Loading branch information
pracucci committed May 26, 2022
1 parent a795b93 commit 58718a5
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .drone/drone.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ local manifest(apps) = pipeline('manifest') {
dockerfile: 'loki-build-image/Dockerfile',
username: { from_secret: docker_username_secret.name },
password: { from_secret: docker_password_secret.name },
tags: ['0.20.4'],
tags: ['0.21.0'],
dry_run: false,
},
},
Expand Down
4 changes: 2 additions & 2 deletions .drone/drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ steps:
from_secret: docker_password
repo: grafana/loki-build-image
tags:
- 0.20.4
- 0.21.0
username:
from_secret: docker_username
when:
Expand Down Expand Up @@ -1167,6 +1167,6 @@ kind: secret
name: deploy_config
---
kind: signature
hmac: e3f0cead040a655e51244d5d71377a4ba506d7f63fae440593f6e7d14018a1e3
hmac: cb6f2957ccaf19841b99a76ec820fe1d3b32df4f20ea34b651afda4d27c9f1a6

...
8 changes: 8 additions & 0 deletions loki-build-image/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,12 @@ RUN GO111MODULE=on go get github.com/tcnksm/ghr
FROM golang:1.17.9 as nfpm
RUN GO111MODULE=on go get github.com/goreleaser/nfpm/v2/cmd/nfpm@v2.11.3

# Install tools used to compile jsonnet.
FROM golang:1.17.9 as jsonnet
RUN GO111MODULE=on go get \
github.com/jsonnet-bundler/jsonnet-bundler/cmd/jb@v0.4.0 \
github.com/monitoring-mixins/mixtool/cmd/mixtool@bca3066

FROM golang:1.17.9-buster
RUN apt-get update && \
apt-get install -qy \
Expand All @@ -81,6 +87,8 @@ COPY --from=faillint /go/bin/faillint /usr/bin/faillint
COPY --from=delve /go/bin/dlv /usr/bin/dlv
COPY --from=ghr /go/bin/ghr /usr/bin/ghr
COPY --from=nfpm /go/bin/nfpm /usr/bin/nfpm
COPY --from=jsonnet /go/bin/jb /usr/bin/jb
COPY --from=jsonnet /go/bin/mixtool /usr/bin/mixtool

# Install some necessary dependencies.
# Forcing GO111MODULE=on is required to specify dependencies at specific versions using the go mod notation.
Expand Down

0 comments on commit 58718a5

Please sign in to comment.