Closed kadel closed 5 years ago
Why no hot reload for nodejs?
Why no hot reload for nodejs?
It was not reliable, so I decided to go step be step. First Introduce these scripts. Make sure that this works, and only after that start working on hot-reload.
There are no examples yet right @kadel ? I'm assuming integration tests would beadde upstream within https://github.com/openshift/odo
yes, there are even few tests running on Travis here, is something would be horribly broken we should see it. I've also tested this with https://github.com/openshift/odo/pull/1974 and everything should be ok
looks good - doesn't change build performance for me but I understand this is to make a place for new scripts that are coming later, right?
looks good - doesn't change build performance for me but I understand this is to make a place for new scripts that are coming later, right?
yes, that is correct
Tests will be failing as the https://github.com/openshift/odo/pull/1974 is required for successful tests
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: mik-dass
The full list of commands accepted by this bot can be found here.
The pull request process is described here
Changes in this PR are automatically built on quay.io
quay.io/tkral/odo-supervisord-image:dev-scripts
for easier testing.To use this image just set env variable
ODO_BOOTSTRAPPER_IMAGE
To revert back to normal image
This update allows odo to define it's own
assemble
andrun
scripts that are more "inner-loop friendly" than those in s2i builder images. Inner-loop scripts aredev-assemble
anddev-run
similar to s2i scripts, and they are distributed using InitContainer similar to how odo injects supervisord into builder images.language-scripts/image-mappings.json
is a JSON file that controls what scripts should be used in a given image.Small go program
getlanguage
is used to return language name based on mappings in the image-mappings.json file. This information is then used to execute dev-* scripts instead of build-in s2i scripts inside the image. If image name is not in the mapping file, the regular s2i scripts are executed.image-mappings.json
This means that in images that are named as
rhscl/nodejs-8-rhel7
,rhoar-nodejs/nodejs-8
,rhoar-nodejs/nodejs-10
the scripts inlanguage-scripts/nodejs
will be executed instead of s2i scripts build into the images.This effects only image specified in image-mappings.json, every other image works as before.