I might have configured this incorrectly, but I can't get dev mode to work as described here: https://docs.openshift.org/latest/using_images/s2i_images/nodejs.html#configuration I added the DEV_MODE env var to the sourceStrategy in the build config: strategy: type: Source sourceStrategy: from: kind: ImageStreamTag namespace: openshift name: 'nodejs:0.10' env: - name: DEV_MODE value: 'true' The container crash loops after deployment. I see the following errors in the log: /usr/libexec/s2i/run: line 9: exec: nodemon: not found Maybe I need nodemon in package.json? (This isn't in the instructions, though.)
seems for the rhel image , we should use nodemon.js in the run script.
moving to enterprise since it's an issue w/ the rhel image that online just happens to use.
fix: https://github.com/openshift/s2i-nodejs/pull/97
Failed due to this bug https://bugzilla.redhat.com/show_bug.cgi?id=1336263
should be verifiable when https://bugzilla.redhat.com/show_bug.cgi?id=1336263 goes to on_qa.
verified with : openshift3/nodejs-010-rhel7 latest ce2a4369aff3 28 hours ago [haoran@cheetah cucushift]$ oc logs nodejs-ex-2-rcjlb Environment: DEV_MODE=true NODE_ENV=development DEBUG_PORT=5858 Launching via nodemon... [nodemon] 1.8.1 [nodemon] to restart at any time, enter `rs` [nodemon] watching: *.* [nodemon] starting `node --debug=5858 server.js` debugger listening on port 5858 Server running on http://0.0.0.0:8080 Ben , feel free to move to ON_QA
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2016:1094