# The IP address or hostname to access admin UI and registry service. # DO NOT use localhost or 127.0.0.1, because Harbor needs to be accessed by external clients. hostname:registry.hwchiu.com
# http related config http: # port for http, default is 80. If https enabled, this port will redirect to https port port:80
# https related config https: # https port for harbor, default is 443 port:443 # The path of cert and key files for nginx certificate:/etc/letsencrypt/live/registry.hwchiu.com/fullchain.pem private_key:/etc/letsencrypt/live/registry.hwchiu.com/privkey.pem ....
$ ./prepare --help prepare base dir is set to /home/ubuntu/harbor Usage: main.py prepare [OPTIONS]
Options: --conf TEXT the path of Harbor configuration file --with-notary the Harbor instance is to be deployed with notary --with-clair the Harbor instance is to be deployed with clair --with-trivy the Harbor instance is to be deployed with Trivy --with-chartmuseum the Harbor instance is to be deployed with chart repository supporting
--help Show this message and exit. $ ./prepare --with-trivy --with-chartmuseum prepare base dir is set to /home/ubuntu/harbor Generated configuration file: /config/log/logrotate.conf Generated configuration file: /config/log/rsyslog_docker.conf Generated configuration file: /config/nginx/nginx.conf Generated configuration file: /config/core/env Generated configuration file: /config/core/app.conf Generated configuration file: /config/registry/config.yml Generated configuration file: /config/registryctl/env Generated configuration file: /config/registryctl/config.yml Generated configuration file: /config/db/env Generated configuration file: /config/jobservice/env Generated configuration file: /config/jobservice/config.yml loaded secret from file: /data/secret/keys/secretkey Generated configuration file: /config/trivy-adapter/env Generated configuration file: /config/chartserver/env Generated configuration file: /compose_location/docker-compose.yml Clean up the input dir
$ docker login --username admin --password Harbor12345 https://registry.hwchiu.com WARNING! Using --password via the CLI is insecure. Use --password-stdin. WARNING! Your password will be stored unencrypted in /home/ubuntu/.docker/config.json. Configure a credential helper to remove this warning. See https://docs.docker.com/engine/reference/commandline/login/#credentials-store