Skip to content

Latest commit

 

History

History
61 lines (39 loc) · 1.08 KB

development-with-docker.md

File metadata and controls

61 lines (39 loc) · 1.08 KB

Development with Docker

KubeSphere Console can be developed in a docker enviroment by following the steps as below.

Required:

Set up

create a volume to store node_modules.

make setup

Install dependencies

install node_modules, and compile lego-ui components.

make install

Start KubeSphere Console for development

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.

Run tests

make yarn-test

Build KubeSphere Console for production

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 .

Run npm scripts in docker

# eg. run 'yarn test' in docker: make yarn-test
make yarn-*