fix: bring back GIT revision to our prod images (#3537)

This was likely broken since #3313 and leads to IOx reporting `UKNOWN`
instead of a proper GIT revision. Having the latter one available can be
very useful for debugging a binary or if you look through log files (we
print the IOx version and revision during server startup).

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
pull/24376/head
Marco Neumann 2022-01-26 10:12:43 +00:00 committed by GitHub
parent 1c2681c24e
commit 7feb10dd30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -6,7 +6,7 @@ FROM rust:${RUST_VERSION}-slim-bullseye as build
USER root
RUN apt update \
&& apt install --yes binutils build-essential pkg-config libssl-dev clang lld \
&& apt install --yes binutils build-essential pkg-config libssl-dev clang lld git \
&& rm -rf /var/lib/{apt,dpkg,cache,log}
# Build influxdb_iox

View File

@ -2,4 +2,5 @@
target/
tests/
docker/
!.git/
!docker/entrypoint.sh