KubeSphere Console can be developed in a docker enviroment by following the steps as below.
Required:
create a volume to store node_modules.
make setupinstall node_modules, and compile lego-ui components.
make install
make yarn-legoBefore start development, please follow the guide to configure the backend services of KubeSphere.
make devNow you can access http://localhost:8000 to view the console using the default account admin / P@88w0rd.
make yarn-testThe project can be built for production by using the following task:
make buildTo build KubeSphere console to an image, run the following task after yarn build:
docker build -t ks-console .# eg. run 'yarn test' in docker: make yarn-test
make yarn-*