KubeSphere Console can be developed in a docker enviroment by following the steps as below.
Required:
create a volume to store node_modules.
make setup
install node_modules, and compile lego-ui components.
make install
Before start development, please follow the guide to configure the backend services of KubeSphere.
make dev
Now you can access http://localhost:8000 to view the console using the default account admin / P@88w0rd.
make yarn-test
The project can be built for production by using the following task:
make build
To 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-*