mirror of
https://github.com/goharbor/harbor.git
synced 2024-10-08 02:07:31 +02:00
add shell template
This commit is contained in:
parent
4ce0bc2a29
commit
6c65495d72
@ -20,78 +20,16 @@ for i in "${arr[@]}"; do
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
echo "appname = registry
|
source $tpl_path/ui/app.conf > $ui_path/app.conf
|
||||||
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
|
|
||||||
echo "Generated configuration file: "$ui_path/app.conf
|
echo "Generated configuration file: "$ui_path/app.conf
|
||||||
|
|
||||||
echo "MYSQL_HOST=mysql
|
source $tpl_path/ui/env > $ui_path/env
|
||||||
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
|
|
||||||
echo "Generated configuration file: "$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 "Generated configuration file: "$config_path/db/env
|
||||||
|
|
||||||
echo "version: 0.1
|
source $tpl_path/registry/config.yml > $config_path/registry/config.yml
|
||||||
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
|
|
||||||
echo "Generated configuration file: "$config_path/registry/config.yml
|
echo "Generated configuration file: "$config_path/registry/config.yml
|
||||||
|
|
||||||
is_fail=0
|
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:
|
log:
|
||||||
level: debug
|
level: debug
|
||||||
fields:
|
fields:
|
||||||
@ -32,4 +32,4 @@ notifications:
|
|||||||
url: http://ui/service/notifications
|
url: http://ui/service/notifications
|
||||||
timeout: 500
|
timeout: 500
|
||||||
threshold: 5
|
threshold: 5
|
||||||
backoff: 1000
|
backoff: 1000"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
appname = registry
|
echo "appname = registry
|
||||||
runmode = dev
|
runmode = dev
|
||||||
|
|
||||||
[lang]
|
[lang]
|
||||||
@ -11,6 +11,6 @@ httpport = 80
|
|||||||
[mail]
|
[mail]
|
||||||
host = $email_server
|
host = $email_server
|
||||||
port = $email_server_port
|
port = $email_server_port
|
||||||
username = $email_user_name
|
username = $email_username
|
||||||
password = $email_user_password
|
password = $email_password
|
||||||
from = $email_from
|
from = $email_from"
|
||||||
|
@ -1,14 +1,14 @@
|
|||||||
MYSQL_HOST=mysql
|
echo "MYSQL_HOST=mysql
|
||||||
MYSQL_PORT=3306
|
MYSQL_PORT=3306
|
||||||
MYSQL_USR=root
|
MYSQL_USR=root
|
||||||
MYSQL_PWD=$db_password
|
MYSQL_PWD=$db_password
|
||||||
REGISTRY_URL=http://registry:5000
|
REGISTRY_URL=http://registry:5000
|
||||||
CONFIG_PATH=/etc/ui/app.conf
|
CONFIG_PATH=/etc/ui/app.conf
|
||||||
HARBOR_REG_URL=$hostname
|
HARBOR_REG_URL=$hostname
|
||||||
HARBOR_ADMIN_PASSWORD=$admin_pwd
|
HARBOR_ADMIN_PASSWORD=$harbor_admin_password
|
||||||
HARBOR_URL=$ui_url
|
HARBOR_URL=$hostname
|
||||||
AUTH_MODE=$auth_mode
|
AUTH_MODE=$auth_mode
|
||||||
LDAP_URL=$ldap_url
|
LDAP_URL=$ldap_url
|
||||||
LDAP_BASE_DN=$ldap_basedn
|
LDAP_BASE_DN=$ldap_basedn
|
||||||
SELF_REGISTRATION=$self_registration
|
SELF_REGISTRATION=$self_registration
|
||||||
LOG_LEVEL=debug
|
LOG_LEVEL=debug"
|
||||||
|
Loading…
Reference in New Issue
Block a user