How to Build
Components in Dayu system are dependent on docker containers. Thus, if you need to customize dayu system you should build specified images.
The official images of Dayu system is at dockerhub/dayuhub.
set meta information of building
# configure buildx buildkitd (default as empty, example at hack/resource/buildkitd_template.toml)# http registry can be configured in buildkitd.tomlvim hack/resource/buildkitd.toml
# configure buildx driver-opt (default as empty, example at hack/resource/driver_opts_template.toml)# proxy can be configured in driver_opts.tomlvim hack/resource/driver_opts.toml
# set docker meta info# default REG is docker.io# default REPO is dayuhub# default TAG is v1.0export REG=xxxexport REPO=xxxexport TAG=xxx
build all images
make all
build specified images
# xxx/yyy/zzz/... refers to component name, you can choose components for building.make build WHAT=xxx,yyy,zzz...
If you change configuration files (buildkitd.toml/driver_opts.toml), you should delete buildx creator before make. You are also recommended to try to delete buildx creator when you encounter error in docker building to fix the error.
# view all buildx creator.docker buildx ls
# delete dayu-buildx, it will be re-generated when make.docker buildx stop dayu-buildxdocker buildx rm dayu-buildx