Juice-shop: Running via Azure Container Instance

Created on 27 May 2019  路  9Comments  路  Source: bkimminich/juice-shop

Hi

I just created an Azure container instance to run juice shop, the issue is it will start and stop and will be Terminated.

What I am doing wrong?

I see these in the logs

> [email protected] start /juice-shop
> node app

info: All dependencies in ./package.json are satisfied (OK)
info: Detected Node.js version v10.15.3 (OK)
info: Required file index.html is present (OK)
info: Required file main.js is present (OK)
info: Required file polyfills.js is present (OK)
info: Required file runtime.js is present (OK)
info: Required file vendor.js is present (OK)
info: Configuration default validated (OK)
warn: Dependencies in ./frontend/package.json are not rightly satisfied (NOT OK)
warn: @angular-devkit/build-angular: not installed!
warn: @angular/animations: not installed!
warn: @angular/cdk: not installed!
warn: @angular/cli: not installed!
warn: @angular/common: not installed!
warn: @angular/compiler: not installed!
warn: @angular/compiler-cli: not installed!
warn: @angular/core: not installed!
warn: @angular/flex-layout: not installed!
warn: @angular/forms: not installed!
warn: @angular/http: not installed!
warn: @angular/material: not installed!
warn: @angular/platform-browser: not installed!
warn: @angular/platform-browser-dynamic: not installed!
warn: @angular/router: not installed!
warn: @fortawesome/fontawesome-svg-core: not installed!
warn: @fortawesome/free-brands-svg-icons: not installed!
warn: @fortawesome/free-regular-svg-icons: not installed!
warn: @fortawesome/free-solid-svg-icons: not installed!
warn: @nguniversal/express-engine: not installed!
warn: @ngx-translate/core: not installed!
warn: @ngx-translate/http-loader: not installed!
warn: angularx-qrcode: not installed!
warn: core-js: not installed!
warn: flag-icon-css: not installed!
warn: hammerjs: not installed!
warn: ng-simple-slideshow: not installed!
warn: ng2-bar-rating: not installed!
warn: ng2-file-upload: not installed!
warn: ngx-clipboard: not installed!
warn: ngx-cookie: not installed!
warn: ngx-spinner: not installed!
warn: rxjs: not installed!
warn: socket.io-client: not installed!
warn: typescript: not installed!
warn: zone.js: not installed!
warn: Invoke npm install to install missing packages
error: Exiting due to unsatisfied dependencies!
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: `node app`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/juicer/.npm/_logs/2019-05-27T18_43_11_958Z-debug.log 

image

image

bug docker

Most helpful comment

Fix build is on the way... If DroidEdit didn't mess up the code style, then all should be fine now! 馃槈

All 9 comments

You did not run npm install before starting the application. I recommend to use the Docker @ Azure approach described in the README if you keep having issues with manual installation.

Same thing happens when the docker image is run locally...

@bkimminich I think we should stop trying to stop validating frontend dependencies...

Validating that the html & js bundle should be enough.

You did not run npm install before starting the application. I recommend to use the Docker @ Azure approach described in the README if you keep having issues with manual installation.

No, (I am new to docker) I thought it will do it by it self or it comes with installed packages

Yeah, I just tried locally with Docker and ran into the same trap. I'll fix this asap and release v8.6.1 which should be fine on Docker again.

Fix build is on the way... If DroidEdit didn't mess up the code style, then all should be fine now! 馃槈

@bkimminich FYI, I am able to host the juice shop docker with "App Services" in Azure and no issue

Fix build is on the way... If DroidEdit didn't mess up the code style, then all should be fine now! 馃槈

Incredibly fast

Fix build is on the way... If DroidEdit didn't mess up the code style, then all should be fine now! 馃槈

I confirm the issue is solved

image

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bkimminich picture bkimminich  路  5Comments

toptuto picture toptuto  路  7Comments

bkimminich picture bkimminich  路  6Comments

bkimminich picture bkimminich  路  6Comments

bkimminich picture bkimminich  路  5Comments