gulp-di | dependency injection framework for the Gulp streaming build | Frontend Framework library
kandi X-RAY | gulp-di Summary
kandi X-RAY | gulp-di Summary
gulp-di is a dependency injection framework for the Gulp streaming build system.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of gulp-di
gulp-di Key Features
gulp-di Examples and Code Snippets
Community Discussions
Trending Discussions on gulp-di
QUESTION
I am hitting issues running a start script (eg npm run gulp-dist
) for my container as specified in my docker compose file. I traced the issue down to a node version compatibility issue which has led me to some confusion.
If I enter the container with docker-compose run workspace bash
and then run node -v
I get back v10.5.0
as expected (and what my script requires).
Yet if in docker-compose I set command: node -v
it prints v4.2.6
when bringing up the container with docker-compose up workspace
.
So I'm wondering where are the commands run that I specify in docker-compose (I thought they were run in the container once it had started). And how do I run a command in the container - I want to specify it in docker-compose as I run a different command in two different docker-compose files (one for dev env, one for production).
Note: My dev machine has node version 11, so I have no idea where four is.
Also, if run docker-compose run workspace bash
and then run the original script, it works fine - it is just failing when run as a docker-compose command.
Here's my dockerfile (sorry, it's big):
...ANSWER
Answered 2019-Jan-14 at 07:54Still don't know what context the commands run in, but made mine work. It was due to node being installed via NVM. Or at least when I installed, as @Noogen suggested, via curl -sL https://deb.nodesource.com/setup_10.x | sudo bash -
I could then run commands against my container and they would have access to the correct node version. I had to settled for a lower node version (not 10.5.0 as I could specify with NVM) but in the end it worked so no worries.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install gulp-di
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page