From 7feb10dd309d1717605b3b9d98c4f7c457b88ee9 Mon Sep 17 00:00:00 2001 From: Marco Neumann Date: Wed, 26 Jan 2022 10:12:43 +0000 Subject: [PATCH] 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> --- Dockerfile | 2 +- Dockerfile.dockerignore | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index af88cc42c9..9404c39ac9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/Dockerfile.dockerignore b/Dockerfile.dockerignore index 864b76d6cb..af68fcfe99 100644 --- a/Dockerfile.dockerignore +++ b/Dockerfile.dockerignore @@ -2,4 +2,5 @@ target/ tests/ docker/ +!.git/ !docker/entrypoint.sh