TBZ Build notes - theheapdump/kite-webapp GitHub Wiki
Manually executing ng build from webapp dir is working fine... When I check ng command outside of the webapp dir it is fine... When running from the build.sh the ng command is not recognized... Tried multiple ways... Not sure what's wrong... I will have the base image uploaded to docker repo and will share the pull command for the same... I am having a clean image without npm and angular related any package installed...
requirements on how to use the image
-
docker pull bevanamit/tradebullz:builder
-
docker container run --name tbz --entrypoint=/bin/bash bevanamit/tradebullz:builder
-
Install npm related things nvm install 10.14.1 npm link @angular/[email protected] apt-get install -y build-essential
-
Run build.sh production package
/root/.nvm/versions/node/v10.14.1/bin/ng
npm install --save-dev @angular-devkit/build-angular
Fresh evening 29.06.2021
-
Fresh env, without cloning nvm install 10.14.1
-
cloning bash /opt/repos/tradebullz-platform/pull_dependencies.sh
-
from webapp dir npm install
-
npm install -g @angular/[email protected]
-
in /opt/repos/tradebullz-platform/dependency_src/tradebull-web-ui/webapp/node_modules/@angular/cli/bin/postinstall node script.js
-
npm install @angular/cli@~10.2.0 ---- didnt work
-
npm config set /root/.nvm/versions/node/v10.14.1/bin/node true
-
npm install -g @angular/cli@~10.2.0
-
npm cache clean --force
-
npm cache verify
npm install --save ansi-colors
- clean env
- apt-get purge --auto-remove nodejs
- Install npm and others [ nvm install 10.14.1, npm install -g @angular/cli OR npm link @angular/cli, apt-get install -y build-essential]
- Try building bash /opt/repos/tradebullz-platform/pull_dependencies.sh RUN bash /opt/repos/tradebullz-platform/build.sh production package
npm uninstall -g @angular/cli
npm cache verify
npm link @angular/[email protected]
npm install -g @angular/[email protected]
new clean env apt-get purge --auto-remove nodejs nvm install 10.14.1 npm link @angular/[email protected] apt-get install vim apt-get install -y build-essential
added cd webapp before and after ng build cd ..