diff --git a/docker/ci/ubuntu/Dockerfile b/docker/ci/ubuntu/Dockerfile index d11746cf3a41..8b09b39819d2 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"]