Remove unnecessary environment variables in Step 5.4
This commit is contained in:
parent
f51ac24c72
commit
2657917ebf
1 changed files with 6 additions and 5 deletions
|
@ -557,12 +557,11 @@ sudo systemctl restart docker
|
||||||
# Switch to harbor user
|
# Switch to harbor user
|
||||||
sudo su - harbor
|
sudo su - harbor
|
||||||
|
|
||||||
# Set environment variables
|
# Set DB_PASSWORD environment variable
|
||||||
export HARBOR_HOSTNAME=$YOUR_ACTUAL_IP
|
|
||||||
export HARBOR_ADMIN_PASSWORD="Harbor12345"
|
|
||||||
export DB_PASSWORD=$(openssl rand -base64 32 | tr -d "=+/" | cut -c1-25)
|
export DB_PASSWORD=$(openssl rand -base64 32 | tr -d "=+/" | cut -c1-25)
|
||||||
export CORE_SECRET=$(openssl rand -hex 16)
|
|
||||||
export JOBSERVICE_SECRET=$(openssl rand -hex 16)
|
# IMPORTANT: Save the DB_PASSWORD in your password manager for safekeeping
|
||||||
|
echo "DB_PASSWORD: $DB_PASSWORD"
|
||||||
|
|
||||||
# Download and install Harbor
|
# Download and install Harbor
|
||||||
cd /opt/harbor
|
cd /opt/harbor
|
||||||
|
@ -581,6 +580,8 @@ nano harbor.yml
|
||||||
- `private_key: /etc/ssl/registry/registry.key`
|
- `private_key: /etc/ssl/registry/registry.key`
|
||||||
- `password: <the DB_PASSWORD generated above>`
|
- `password: <the DB_PASSWORD generated above>`
|
||||||
|
|
||||||
|
# Note: The default Harbor admin password is "Harbor12345" and will be changed in Step 5.6
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Install Harbor with Trivy vulnerability scanner
|
# Install Harbor with Trivy vulnerability scanner
|
||||||
./prepare
|
./prepare
|
||||||
|
|
Loading…
Add table
Reference in a new issue