From be9de687297053dbc368c219b6a3894dbff7bec3 Mon Sep 17 00:00:00 2001 From: shuiyisong Date: Thu, 18 Jul 2024 12:48:10 +0800 Subject: [PATCH] chore: directly clone target branch instead of checkout later --- nginx-log-metrics/build_vector/Dockerfile | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/nginx-log-metrics/build_vector/Dockerfile b/nginx-log-metrics/build_vector/Dockerfile index b9ab3a8..16668ee 100644 --- a/nginx-log-metrics/build_vector/Dockerfile +++ b/nginx-log-metrics/build_vector/Dockerfile @@ -5,12 +5,9 @@ FROM rust:1.79 as builder RUN apt-get update && apt-get install -y cmake pkg-config libssl-dev protobuf-compiler libsasl2-dev # Clone the Vector source code -RUN git clone --depth 1 https://github.com/shuiyisong/vector.git /vector +RUN git clone --depth 1 -b chore/greptime_log_ingester https://github.com/shuiyisong/vector.git /vector WORKDIR /vector -# Switch to your custom branch -RUN git checkout chore/greptime_log_ingester - # Build Vector RUN cargo build --release --no-default-features --features=default-greptimedb-custom,sinks-console,sources-prometheus-scrape,sources-prometheus-scrape