From 5c8c9cc6e77a1ad25662adb273b74fbd6cf223ce Mon Sep 17 00:00:00 2001 From: continuist Date: Sun, 29 Jun 2025 02:24:31 -0400 Subject: [PATCH] Improve Harbor environment variable step --- CI_CD_PIPELINE_SETUP_GUIDE.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/CI_CD_PIPELINE_SETUP_GUIDE.md b/CI_CD_PIPELINE_SETUP_GUIDE.md index a108568..3ff8a08 100644 --- a/CI_CD_PIPELINE_SETUP_GUIDE.md +++ b/CI_CD_PIPELINE_SETUP_GUIDE.md @@ -495,14 +495,11 @@ echo "Your IP address is: $YOUR_ACTUAL_IP" sed -i "s/YOUR_CI_CD_IP/$YOUR_ACTUAL_IP/g" harbor.yml sed -i "s/YOUR_CI_CD_IP/$YOUR_ACTUAL_IP/g" docker-compose.yml -# Replace placeholder application name in configuration files -sed -i "s/APP_NAME/ACTUAL_APP_NAME/g" docker-compose.yml - # Exit SERVICE_USER shell exit ``` -**Important**: This step replaces all instances of `YOUR_CI_CD_IP` with your actual CI/CD Linode IP address and all instances of `APP_NAME` with the actual application name in the Harbor configuration files. +**Important**: This step replaces all instances of `YOUR_CI_CD_IP` with your actual CI/CD Linode IP address in the Harbor configuration files. #### 5.3 Set Harbor Environment Variables @@ -510,13 +507,16 @@ exit # Set environment variables for Harbor export HARBOR_HOSTNAME=$YOUR_ACTUAL_IP export HARBOR_ADMIN_PASSWORD="Harbor12345" -export DB_PASSWORD="your-db-password" + +# Generate secure database password for Harbor +export DB_PASSWORD=$(openssl rand -base64 32 | tr -d "=+/" | cut -c1-25) # Generate secure secrets for Harbor export CORE_SECRET=$(openssl rand -hex 16) export JOBSERVICE_SECRET=$(openssl rand -hex 16) echo "Generated secrets:" +echo "DB_PASSWORD: $DB_PASSWORD" echo "CORE_SECRET: $CORE_SECRET" echo "JOBSERVICE_SECRET: $JOBSERVICE_SECRET"