Comments (2)
The fix for this, that I haven't gotten around to implementing, and would love a pull request for, is to allow the config file for a container (the node file in the docs) to specify extra command line arguments for both the command inside npm and for docker. The trick is to make this work nicely with extra arguments or DOCKER_ARGS specified on the command line itself.
You could then stack things by doing something like the following for your ./bin/npm file
#!/usr/bin/env bash
EXTRA_DOCKER_ARGS = -v~/.npmuser:/src/.npmuser
EXTRA_ARGS = --userconfig=/src/.npmuser
. <path to command file>/node
Of course, this is shell, so getting the quoting and paths right will be way harder than it needs to be but that is the price of portability.
from containit.
No, I've had exactly the same complaint when I publish. But I've only needed to do that infrequently so far, so haven't spent time on a good solution. I don't think that pulling in credentials from the user's home directory by default would be the right answer, but an explicit opt-in via environment variable to do that might be OK.
If you have any better solutions for the credentials problem, please feel free to suggest ideas.
from containit.
Related Issues (2)
- docker-compose HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from containit.