Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upSet loglevel to notice when installing npm packages #36
Conversation
|
LGTM, thanks |
Set loglevel to notice when installing npm packages
|
@Starefossen according to docker-library/official-images#543 (comment) the same can be achieved using an environment variable. Do you think we should: (a) just revert this change and leave it to the user to set (b) set |
|
I have submitted a new PR which reverts this one and adds |
Close: nodejs#57 Related: nodejs/docker-iojs#36 Signed-off-by: Hans Kristian Flaatten <hans.kristian.flaatten@dnt.no>
Close: nodejs#57 Related: nodejs/docker-iojs#36 Signed-off-by: Hans Kristian Flaatten <hans.kristian.flaatten@dnt.no>
Close: nodejs#57 Related: nodejs/docker-iojs#36 Signed-off-by: Hans Kristian Flaatten <hans.kristian.flaatten@dnt.no>
Close: nodejs#57 Related: nodejs/docker-iojs#36 Signed-off-by: Hans Kristian Flaatten <hans.kristian.flaatten@dnt.no>
Close: nodejs#57 Related: nodejs/docker-iojs#36 Signed-off-by: Hans Kristian Flaatten <hans.kristian.flaatten@dnt.no>
This PR sets
--logleveltonoticewhen installing npm packages in theONBUILDimage.Rationale:
Packages breaks from time to time. By default npm has
--loglevelset towarningwhen installing, and if the install fails for some reason the entire log is written tonpm-debug.log. If you have not mounted/usr/src/appas a volume this file is now inside of the container which just exited.In order to view the log you will have to copy the file from the docker container onto you host using the
docker cpcommand. In my opinion this creates unnecessary overhead, and may not be entirely intuitive to novices.