Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update ui build to avoid yarn build fail after make.
we are building ui-dist in make using docker image of nodejs after building dist it put those dist in build or build-external folder. These folders are created by docker run under root user. After make if we try to build it locally by yarn build it tries to delete build folder from $USER user thats why we are getting permission error. ```bash shovan@probot:~/Desktop/workspace/src/github.com/weaveworks/scope/client$ ls -l total 420 drwxr-xr-x 7 shovan shovan 4096 Jun 12 15:46 app drwxr-xr-x 2 root root 4096 Jun 13 00:42 build drwxr-xr-x 2 root root 4096 Jun 13 00:37 build-external -rw-r--r-- 1 shovan shovan 608 Jun 12 15:46 Dockerfile drwxr-xr-x 1016 shovan shovan 36864 Jun 13 00:36 node_modules -rw-r--r-- 1 shovan shovan 4642 Jun 13 00:29 package.json -rw-r--r-- 1 shovan shovan 1764 Jun 12 15:46 README.md -rw-r--r-- 1 shovan shovan 2623 Jun 12 15:46 server.js drwxr-xr-x 5 shovan shovan 4096 Jun 12 16:14 test -rw-r--r-- 1 shovan shovan 4239 Jun 12 15:46 webpack.local.config.js -rw-r--r-- 1 shovan shovan 3856 Jun 13 00:27 webpack.production.config.js -rw-r--r-- 1 shovan shovan 334991 Jun 12 15:46 yarn.lock ``` Fix - This PR will add 2 more target in package.json for build inside docker `yarn run build-docker` and `yarn run build-external-docker` in targerts of makefile it uses these to to build using node docker image and copy build files in `build` and `build-external` folder. Folders `build` and `build-external` will be created by $USER user so we will not get permission error in local yarn build after make. Signed-off-by: Shovan Maity <[email protected]>
- Loading branch information