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

  1. docker pull bevanamit/tradebullz:builder

  2. docker container run --name tbz --entrypoint=/bin/bash bevanamit/tradebullz:builder

  3. Install npm related things nvm install 10.14.1 npm link @angular/[email protected] apt-get install -y build-essential

  4. 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

  1. Fresh env, without cloning nvm install 10.14.1

  2. cloning bash /opt/repos/tradebullz-platform/pull_dependencies.sh

  3. from webapp dir npm install

  4. npm install -g @angular/[email protected]

  5. in /opt/repos/tradebullz-platform/dependency_src/tradebull-web-ui/webapp/node_modules/@angular/cli/bin/postinstall node script.js

  6. npm install @angular/cli@~10.2.0 ---- didnt work

  7. npm config set /root/.nvm/versions/node/v10.14.1/bin/node true

  8. npm install -g @angular/cli@~10.2.0

  9. npm cache clean --force

  10. npm cache verify

npm install --save ansi-colors

  1. clean env
  2. apt-get purge --auto-remove nodejs
  3. 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]
  4. 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 ..