-
Notifications
You must be signed in to change notification settings - Fork 133
How to Build Distros of Dashboard
Suhaha edited this page Jul 23, 2021
·
5 revisions
- Prepare distro resources
/distro_resource
|- distribution.go // All distribution texts
|- favicon.ico // Browser tab icon
|- logo-icon-light.svg // Logo on the top of sidebar
|- logo.svg // Logo on the signin page
distrobution.go
// +build dashboard_distro
package distro
var Resource = map[string]string{
"tidb": "TiDB",
"tikv": "TiKV",
"tiflash": "TiFlash",
"pd": "PD",
}
- Replace distro resources
cd tidb-dashboard
DISTRIBUTION_DIR=path/to/distro_resource scripts/replace_distro_resource.sh
- Dev & Build
Dev
# server
DISTRO_BUILD_TAG=1 make server
make run
# ui
cd ui
yarn
DISTRO_BUILD_TAG=1 yarn start
Build
DISTRO_BUILD_TAG=1 make server
DISTRO_BUILD_TAG=1 make ui