Skip to content

Commit

Permalink
build: make binary name a Dockerfile "ARG" (GreptimeTeam#3254)
Browse files Browse the repository at this point in the history
* build: make binary name a Dockerfile "ARG"

* Update Dockerfile
  • Loading branch information
MichaelScofield authored Jan 29, 2024
1 parent d43c638 commit fc25b7c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions docker/ci/ubuntu/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -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"]

0 comments on commit fc25b7c

Please sign in to comment.