helper-scripts/common/README.md
This directory contains scripts that are shared across all InfluxDB documentation products.
Updates product version information in documentation configuration files.
Usage:
./update-product-version.sh --product <product> --version <version>
Supported Products:
core - InfluxDB 3 Coreenterprise - InfluxDB 3 Enterpriseclustered - InfluxDB 3 Clusteredcloud-dedicated - InfluxDB 3 Cloud Dedicatedcloud-serverless - InfluxDB Cloud ServerlessExample:
# Update Core to version 3.2.1
./update-product-version.sh --product core --version 3.2.1
# Update Clustered to version 2024.1
./update-product-version.sh --product clustered --version 2024.1
What it updates:
data/products.yml - Main product version configurationShared Docker utility functions used by other scripts.
Available Functions:
check_docker_running() - Verify Docker daemon is runningcontainer_exists() - Check if a container existscontainer_running() - Check if a container is runningpull_image() - Pull Docker image with retry logicload_auth_token() - Load authentication tokens from secret filesUsage in scripts:
source "$(dirname "$0")/../common/lib/docker-utils.sh"
if container_running "influxdb3-core"; then
echo "Container is running"
fi
These scripts are designed to work in both local development and CI/CD environments:
Local Development:
GitHub Actions:
set -e to exit on errorsWhen adding scripts to this directory: