mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-23 09:08:26 +01:00
add shell template
This commit is contained in:
parent
4ce0bc2a29
commit
6c65495d72
@ -20,78 +20,16 @@ for i in "${arr[@]}"; do
|
||||
fi
|
||||
done
|
||||
|
||||
echo "appname = registry
|
||||
runmode = dev
|
||||
|
||||
[lang]
|
||||
types = en-US|zh-CN
|
||||
names = en-US|zh-CN
|
||||
|
||||
[dev]
|
||||
httpport = 80
|
||||
|
||||
[mail]
|
||||
host = $email_server
|
||||
port = $email_server_port
|
||||
username = $email_username
|
||||
password = $email_password
|
||||
from = $email_from" > $ui_path/app.conf
|
||||
source $tpl_path/ui/app.conf > $ui_path/app.conf
|
||||
echo "Generated configuration file: "$ui_path/app.conf
|
||||
|
||||
echo "MYSQL_HOST=mysql
|
||||
MYSQL_PORT=3306
|
||||
MYSQL_USR=root
|
||||
MYSQL_PWD=$db_password
|
||||
REGISTRY_URL=http://registry:5000
|
||||
CONFIG_PATH=/etc/ui/app.conf
|
||||
HARBOR_REG_URL=$hostname
|
||||
HARBOR_ADMIN_PASSWORD=$harbor_admin_password
|
||||
HARBOR_URL=$hostname
|
||||
AUTH_MODE=$auth_mode
|
||||
LDAP_URL=$ldap_url
|
||||
LDAP_BASE_DN=$ldap_basedn
|
||||
SELF_REGISTRATION=$self_registration
|
||||
LOG_LEVEL=debug" > $ui_path/env
|
||||
source $tpl_path/ui/env > $ui_path/env
|
||||
echo "Generated configuration file: "$ui_path/env
|
||||
|
||||
echo "MYSQL_ROOT_PASSWORD=$db_password" > $config_path/db/env
|
||||
source $tpl_path/db/env > $config_path/db/env
|
||||
echo "Generated configuration file: "$config_path/db/env
|
||||
|
||||
echo "version: 0.1
|
||||
log:
|
||||
level: debug
|
||||
fields:
|
||||
service: registry
|
||||
storage:
|
||||
cache:
|
||||
layerinfo: inmemory
|
||||
filesystem:
|
||||
rootdirectory: /storage
|
||||
maintenance:
|
||||
uploadpurging:
|
||||
enabled: false
|
||||
delete:
|
||||
enabled: true
|
||||
http:
|
||||
addr: :5000
|
||||
secret: placeholder
|
||||
debug:
|
||||
addr: localhost:5001
|
||||
auth:
|
||||
token:
|
||||
issuer: registry-token-issuer
|
||||
realm: $ui_url/service/token
|
||||
rootcertbundle: /etc/registry/root.crt
|
||||
service: token-service
|
||||
|
||||
notifications:
|
||||
endpoints:
|
||||
- name: harbor
|
||||
disabled: false
|
||||
url: http://ui/service/notifications
|
||||
timeout: 500
|
||||
threshold: 5
|
||||
backoff: 1000" > $config_path/registry/config.yml
|
||||
source $tpl_path/registry/config.yml > $config_path/registry/config.yml
|
||||
echo "Generated configuration file: "$config_path/registry/config.yml
|
||||
|
||||
is_fail=0
|
||||
|
@ -1 +1 @@
|
||||
MYSQL_ROOT_PASSWORD=$db_password
|
||||
echo "MYSQL_ROOT_PASSWORD=$db_password"
|
||||
|
@ -1,4 +1,4 @@
|
||||
version: 0.1
|
||||
echo "version: 0.1
|
||||
log:
|
||||
level: debug
|
||||
fields:
|
||||
@ -32,4 +32,4 @@ notifications:
|
||||
url: http://ui/service/notifications
|
||||
timeout: 500
|
||||
threshold: 5
|
||||
backoff: 1000
|
||||
backoff: 1000"
|
||||
|
@ -1,4 +1,4 @@
|
||||
appname = registry
|
||||
echo "appname = registry
|
||||
runmode = dev
|
||||
|
||||
[lang]
|
||||
@ -11,6 +11,6 @@ httpport = 80
|
||||
[mail]
|
||||
host = $email_server
|
||||
port = $email_server_port
|
||||
username = $email_user_name
|
||||
password = $email_user_password
|
||||
from = $email_from
|
||||
username = $email_username
|
||||
password = $email_password
|
||||
from = $email_from"
|
||||
|
@ -1,14 +1,14 @@
|
||||
MYSQL_HOST=mysql
|
||||
echo "MYSQL_HOST=mysql
|
||||
MYSQL_PORT=3306
|
||||
MYSQL_USR=root
|
||||
MYSQL_PWD=$db_password
|
||||
REGISTRY_URL=http://registry:5000
|
||||
CONFIG_PATH=/etc/ui/app.conf
|
||||
HARBOR_REG_URL=$hostname
|
||||
HARBOR_ADMIN_PASSWORD=$admin_pwd
|
||||
HARBOR_URL=$ui_url
|
||||
HARBOR_ADMIN_PASSWORD=$harbor_admin_password
|
||||
HARBOR_URL=$hostname
|
||||
AUTH_MODE=$auth_mode
|
||||
LDAP_URL=$ldap_url
|
||||
LDAP_BASE_DN=$ldap_basedn
|
||||
SELF_REGISTRATION=$self_registration
|
||||
LOG_LEVEL=debug
|
||||
LOG_LEVEL=debug"
|
||||
|
Loading…
Reference in New Issue
Block a user