From fc25b7c4ffd20946c29bbc5f23d253c0275e7ec3 Mon Sep 17 00:00:00 2001 From: LFC <990479+MichaelScofield@users.noreply.github.com> Date: Mon, 29 Jan 2024 16:00:40 +0800 Subject: [PATCH] build: make binary name a Dockerfile "ARG" (#3254) * build: make binary name a Dockerfile "ARG" * Update Dockerfile --- docker/ci/ubuntu/Dockerfile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docker/ci/ubuntu/Dockerfile b/docker/ci/ubuntu/Dockerfile index d11746cf3a..8b09b39819 100644 --- a/docker/ci/ubuntu/Dockerfile +++ b/docker/ci/ubuntu/Dockerfile @@ -2,6 +2,9 @@ FROM ubuntu:22.04 # The root path under which contains all the dependencies to build this Dockerfile. ARG DOCKER_BUILD_ROOT=. +# The binary name of GreptimeDB executable. +# Defaults to "greptime", but sometimes in other projects it might be different. +ARG TARGET_BIN=greptime RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \ ca-certificates \ @@ -16,8 +19,8 @@ RUN python3 -m pip install -r /etc/greptime/requirements.txt ARG TARGETARCH -ADD $TARGETARCH/greptime /greptime/bin/ +ADD $TARGETARCH/$TARGET_BIN /greptime/bin/ ENV PATH /greptime/bin/:$PATH -ENTRYPOINT ["greptime"] +ENTRYPOINT ["$TARGET_BIN"]