Improve Harbor environment variable step
Some checks are pending
Some checks are pending
This commit is contained in:
parent
bfad7cf669
commit
5c8c9cc6e7
1 changed files with 5 additions and 5 deletions
|
@ -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"
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue