Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add example of dependency wrapping #48

Open
briceburg opened this issue Nov 16, 2016 · 0 comments
Open

add example of dependency wrapping #48

briceburg opened this issue Nov 16, 2016 · 0 comments
Milestone

Comments

@briceburg
Copy link
Member

briceburg commented Nov 16, 2016

dex can run more than applications -- it can run arbitrary commands within a container containing dependeices; e.g.

$ mkdir -p test/{a..c}
$ ls test/
a  b  c

# run ls within a container
$depswrap ls test/
a  b  c

node example

$ node -v
bash: node: command not found

$ depswrap node -v
v6.7.0

$ depswrap npm install 
test@ /dex/workspace/home/nesta/tmp/test
`-- [email protected]

# local machine gets node_modules
$ ls -l node_modules
total 4
drwxr-xr-x 5 nesta nesta 4096 Nov 16 11:06 json-lint
@briceburg briceburg added this to the docs milestone Feb 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant