Skip to content

Commit

Permalink
Fix path to binary in Dockerfile for querytee (grafana#5537)
Browse files Browse the repository at this point in the history
* Fix path to binary in Dockerfile for querytee

The Dockerfile referenced an incorrect path of the querytee binary
causing the build of the querytee image to fail.

```
$ make loki-querytee-image
docker build -t grafana/loki-querytee:main-84c97ce -f cmd/querytee/Dockerfile .
Sending build context to Docker daemon  650.6MB
...
Step 7/8 : COPY --from=build /src/loki/cmd/querytee/loki-querytee /usr/bin/querytee
COPY failed: stat src/loki/cmd/querytee/loki-querytee: file does not exist
make: *** [Makefile:526: loki-querytee-image] Error 1
```

Signed-off-by: Christian Haudum <[email protected]>

* Add querytee binary to Docker ignore file

Signed-off-by: Christian Haudum <[email protected]>
  • Loading branch information
chaudum authored Mar 4, 2022
1 parent c8bdb37 commit 474adc0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ cmd/loki-canary/loki-canary
clients/cmd/fluent-bit/out_grafana_loki.so
clients/cmd/fluent-bit/out_grafana_loki.h
cmd/migrate/migrate
cmd/querytee/querytee
/loki
/promtail
/logcli
Expand All @@ -36,4 +37,4 @@ coverage.txt
# terraform
.terraform*
*.tfstate*
*.tfvars
*.tfvars
2 changes: 1 addition & 1 deletion cmd/querytee/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ RUN make clean && make BUILD_IN_CONTAINER=false loki-querytee

FROM alpine:3.13
RUN apk add --update --no-cache ca-certificates
COPY --from=build /src/loki/cmd/querytee/loki-querytee /usr/bin/querytee
COPY --from=build /src/loki/cmd/querytee/querytee /usr/bin/querytee
ENTRYPOINT [ "/usr/bin/querytee" ]

0 comments on commit 474adc0

Please sign in to comment.