From 6d931083f11e1b9a316effeb2fc8dddb243f3fbf Mon Sep 17 00:00:00 2001 From: Brandon Pfeifer <bpfeifer@influxdata.com> Date: Fri, 18 Apr 2025 14:25:29 -0400 Subject: [PATCH] fix(influxdb3-core,influxdb3-enterprise): handle "serve" command --- influxdb/3.0-core/entrypoint.sh | 4 ++++ influxdb/3.0-enterprise/entrypoint.sh | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/influxdb/3.0-core/entrypoint.sh b/influxdb/3.0-core/entrypoint.sh index ea30f1c..ff7cecc 100755 --- a/influxdb/3.0-core/entrypoint.sh +++ b/influxdb/3.0-core/entrypoint.sh @@ -3,6 +3,10 @@ set -euo pipefail args=("${@}") +if [[ "${args[0]:-}" == serve ]] ; then + args=(influxdb3 "${args[@]}") +fi + if [[ "${args[0]:-}" =~ ^- ]] ; then args=(influxdb3 serve "${args[@]}") fi diff --git a/influxdb/3.0-enterprise/entrypoint.sh b/influxdb/3.0-enterprise/entrypoint.sh index ea30f1c..ff7cecc 100755 --- a/influxdb/3.0-enterprise/entrypoint.sh +++ b/influxdb/3.0-enterprise/entrypoint.sh @@ -3,6 +3,10 @@ set -euo pipefail args=("${@}") +if [[ "${args[0]:-}" == serve ]] ; then + args=(influxdb3 "${args[@]}") +fi + if [[ "${args[0]:-}" =~ ^- ]] ; then args=(influxdb3 serve "${args[@]}") fi -- GitLab